The veneer automatic configuration method
Technical field
The present invention relates to the collocation method of plate, particularly the method for automatic configuration of veneer in mobile communication system, fixed communications and the data communication system.
The background skill originally
In general, the equipment that uses in mobile communication system, fixed communications and data communication system mostly is the system of multimachine frame unit cascade.
Fig. 1 illustrates the physical arrangement of communication facilities.
As shown in Figure 1, the machine frame unit is the physical frame shelf structure of carrying veneer.System board is the circuit board that bus is carried out central authorities' control.Veneer is any one circuit board that removes system board in the system, is the unit of the needed hardware and software of carrying communication system.The veneer that does not have load software is the physical property veneer, and the veneer that has loaded software is functional veneer.According to the software difference that loads, functional veneer has been realized different functions, as: media gateway (Media Gateway), and signaling gateway (Singnalling Gateway).Different functional veneers is finished same service jointly in a communication system, as: the SGSN of 3G (sending the universal grouping wireless business supporting node of calling).Same type service can be according to configuration varying number and dissimilar functional veneers.
After the automatic configuration of veneer is the single board starting of physical property, obtain specific configuration file, load different software according to configuration file and become functional veneer.By the automatic configuration of veneer, operator only need change configuration file, just can make identical physical equipment finish different function services.
The following describes existing veneer automatic configuration method.
Real-time replacement kernel (Take over) technology that existing a kind of veneer automatic configuration method is based on Linux realizes the automatic configuration of veneer.
Fig. 2 shows the flow process of this existing veneer method of automatic configuration.
As shown in Figure 2, system board moves the veneer Configuration Manager on the hardware environment of compatible CompactPCI (small external device interconnection), after the veneer Configuration Manager starts, generate the toy data base of all single board information on this frame according to the configuration file of preserving, wait for the kernel start-up routine reporting message or the file that on veneer, move then.The veneer of compatible CompactPCI standard is at the back operation kernel start-up routine that powers on, the kernel start-up routine is very little, it is a simple linux kernel, after the startup, can check the hardware information of veneer earlier, perhaps give the veneer Configuration Manager of system board, perhaps use RCP (remote copy protocol) technology to write in the specific file of Linux on the system board (sharp Knicks) file system by IP (Internet Protocol) network with Izvestia.When the veneer Configuration Manager of system board receive message or detect specific file be created after, this module is according to content in the toy data base of content of receiving and preservation single board information, and control kernel start-up routine loads and move another real linux kernel file that comprises application with the real-time replacement Kernel Technology of Linux on veneer.Thereby realize the automatic discovery and the configuration of veneer.
In the method, exist rely on Linux replace in real time Kernel Technology and start-up time long two shortcomings.Replace Kernel Technology in real time and be used for switching to the linux kernel that another is moving from a linux kernel that is moving, the necessary framework of this technology is on the Linux platform, so Linux becomes a key factor of this method of restriction to the support of hardware; The replacement Kernel Technology also is restraining factors to the support of linux version in real time; This method has two places will prolong the single board starting time on start-up time, and first veneer has started the kernel start-up routine fully before loading real kernel, is equivalent to veneer and has experienced twice startup fully; The 2nd Linux replaces the time that Kernel Technology consumes in real time.
Existing another kind of veneer method of automatic configuration is based on the automatic configuration that improved BOOTP (BOOT strapping Protocol) agreement realizes veneer.
System board operation veneer Configuration Manager after the veneer Configuration Manager starts, generates the toy data base of all single board information on this frame according to the configuration file of preserving.The simultaneity factor plate is configured to bootp server.The BOOTP protocol procedure that is modified on the veneer can send the BOOTP request after startup, after system board receives the request of BOOTP, can check whether MAC (media interviews control) address of containing among the BOOTP is present in the configuration.If be present in the configuration, then the IP that last time used with this MAC echoes and should give veneer; If this MAC Address is not present in the configuration, then from the IP address pool that system board disposes as bootp server, take out an address response.Except the IP address, response is simultaneously given in the information of veneer and is also comprised subnet mask, default route, kernel image file name, tftp server address and configuration filename.The veneer or the main frame of other operation bootp server program also may return the BOOTP response, but owing to do not comprise the above-mentioned information of responding simultaneously in these BOOTP responses, therefore the BOOTP protocol procedure that can be modified on the veneer abandons.After veneer is obtained correct response, can arrive the kernel reflection and the configuration file of TFTP (ordinary file transfer protocol (FTP)) the server retrieves appointment of appointment in the response, and according to these file starts.Can send Cisco (Cisco) after single board starting is finished and find that agreement (CDP) offers system board and confirm that configuration finishes, this moment this veneer found fully automatically and automatically configuration finish.
The shortcoming of this method is in (1) BOOTP request not contain extra information except that MAC Address, therefore need the MAC of each piece veneer need be configured in the repository when configuration, will additionally increase the difficulty of configuration like this.(2) the bootp server process of necessary operational development on the system board.
In sum, prior art has the shortcoming of startup and setup time growing and being not easy to dispose.
Summary of the invention
Therefore, the purpose of this invention is to provide veneer automatic configuration method in a kind of communication system, repository set up easy operating, after repository is set up, the veneer of insertion system can initiatively be found and discern to system board, and according to repository veneer is disposed automatically.
In order to realize above-mentioned and other advantage, according to purpose of the present invention, provide a kind of method of reporting the veneer type of hardware, comprising: system board has found that initiatively veneer inserts; System board reads the hardware information of veneer by the CompactPCI configuration space, comprises supplier information and facility information, and these information are cured in the veneer after single plate hardware is finished.
According to an aspect of the present invention, provide a kind of method of automatic configuration of veneer of compatible CompactPCI standard, described method comprises: veneer is inserted in the machine frame; System board obtains the hardware information that inserts veneer; System board finds the configuration information of the veneer of coupling in the veneer configuration database according to the information of obtaining; System board writes the configuration information of these veneers that obtain in the SROM space of veneer by the CompactPCI space; Veneer is finished automatic configuration according to the information that writes in the SROM space.
According to an aspect of the present invention, a kind of method of reporting the single plate hardware type of compatible CompactPCI standard is provided, whether this method: detecting has veneer to insert if comprising, if there is veneer to insert, the Board Power up that give to insert determines that by the token of grabbing veneer SROM the single plate hardware initialization finishes; Take token by force, read the variable of the veneer that writes in advance by the supplier that hardware is provided, in the single board information database, retrieve the start-up parameter of veneer then according to these variablees by the CompactPCI space to SROM; Arrive veneer SROM by CompactPCI spatial configuration start-up parameter; " start-up parameter is ready " zone bit among the veneer SROM is set.
Following detailed description by the reference accompanying drawing will be seen that above and other objects of the present invention, feature, each side and advantage.
Description of drawings
The following drawings provides further understanding of the present invention, constitutes the part of instructions, and embodiments of the invention are described, explains the principle of the invention with explanatory note.
Fig. 1 illustrates the physical arrangement of communication facilities.
Fig. 2 illustrates a kind of flow process of existing veneer method of automatic configuration.
Fig. 3 illustrates the flow process according to veneer method of automatic configuration of the present invention.
Embodiment
3 describe the preferred embodiments of the present invention in detail with reference to the accompanying drawings.Fig. 3 illustrates the flow process according to veneer method of automatic configuration of the present invention.
According to the present invention, in the machine frame of a compatible CompactPCI hardware specification, after inserting veneer, system start-up, operation high availability administration module (HAM) on system board, generate the small-sized veneer configuration database of all single board information on this frame according to the configuration file of preserving, wait for information then from veneer.All single board information that are configured of management by methods that HAM is provided with configuration file or OMC (operation maintenance center).System board can be by the compatible CompactPCI standard inserted the type of hardware of veneer find IP address, subnet mask, default route, kernel image file name, ftp server address and the configuration filename etc. of this veneer correspondence, wherein the IP address is an address realm, and system board will choose automatically not that the IP of usefulness distributes.
In case veneer inserts in the frame, system board will detect plate and insert, and system board can be given Board Power up, grabs the token of veneer SROM simultaneously, in the hope of obtaining by the right of CompactPCI configuration space to veneer SROM writing information.The token of SROM only after veneer is powered on and carries out the SROM initialization, just can be released.
Specifically describe the process that system board HAM carries out below.The process that system board HAM carries out is as follows:
Whether have veneer insert, if there is veneer to insert, then give the Board Power up that inserts if detecting, determine that by the token of grabbing veneer SROM the single plate hardware initialization finishes;
Take by force behind the SROM token, read the variable of the veneer that writes in advance by the supplier that hardware is provided by the CompactPCI space, as Device ID, Vendor ID, Sub Device ID and Sub Vendor ID, in the veneer configuration database, retrieve the start-up parameter of veneer then according to these variablees;
Start-up parameter by CompactPCI spatial configuration veneer arrives veneer SROM;
" start-up parameter is ready " zone bit among the veneer SROM is set;
Discharge the SROM token.
Veneer must start according to the start-up parameter among the SROM.
The process of BSP (running simultaneously in a large number) the initialization SROM of specific descriptions veneer is as follows below:
(1) removes " start-up parameter is ready " zone bit in the SROM space;
(2) discharge the SROM token, wait for a period of time;
(3) grab the SROM token, just judge " start-up parameter is ready " zone bit,, then jump to (2) if zone bit is not set up and continue in case obtain the SROM token; If zone bit is set up, jumps to (4) and continue;
(4) load kernel reflection and application program according to start-up parameter;
(5) startup finishes.
Next, with reference to accompanying drawing 3, the flow process of the automatic configuration of veneer is described.
At first, veneer is inserted in the machine frame.System board starts, and operation high availability administration module generates the veneer configuration database according to the configuration file of preserving in the system board on system board.Then, whether system board detects has veneer to insert, if there is veneer to insert, then gives the Board Power up that inserts.Behind the Board Power up, veneer is removed " start-up parameter is ready " zone bit in the SROM space, and veneer discharges the SROM token simultaneously, and waits for a period of time.Meanwhile, whether system board is finished with definite single plate hardware initialization by the token of grabbing veneer SROM.System board is taken by force behind the SROM token, reads the variable of the veneer that is write in advance by the supplier that hardware is provided by the CompactPCI space, retrieves the start-up parameter of veneer then in the veneer configuration database according to these variablees.System board writes by the CompactPCI space in the SROM space of veneer by the start-up parameter of the veneer that will be retrieved, and the start-up parameter of veneer is configured to veneer SROM.Then, system board is provided with " start-up parameter is ready " zone bit among the veneer SROM, and after " start-up parameter is ready " zone bit was provided with among the veneer SROM, system board discharged the SROM token.After this, veneer is grabbed the SROM token, just judge whether " start-up parameter the is ready " zone bit among the veneer SROM is set up in case obtain the SROM token, if this zone bit is not set up, then system board continues to wait for, if zone bit is set up, then veneer loads kernel reflection and application program according to start-up parameter, thereby finishes automatic configuration.
From foregoing description as can be seen, compared with prior art, toggle speed of the present invention is fast, and veneer only is initialised once; Unrestricted in the veneer of particular type; It is convenient to add configuration newly, only need unified interpolation once if use MAC Address, then need every veneer to add once at a kind of veneer of type of hardware.
According to the present invention, can dispose automatically veneer according to the type of hardware that veneer is provided, make the veneer of same type can finish different functions.
Above-mentioned declarative description the method for automatic configuration of veneer of the present invention, but scope of the present invention is not limited to detail and the exemplary embodiments representing and illustrate here.Reach accompanying drawing and claim according to the above description, those skilled in the art is to be understood that under not breaking away from by following claim and their situation that is equal to the spirit and scope of the present invention that limited, can makes various changes, modifications and variations to it.