Distributed automatic upgrading method based on 5G millimeter wave gNB system
Technical Field
The invention relates to the technical field of communication, in particular to a distributed automatic upgrading method based on a 5G millimeter wave gNB system.
Background
The mobile communication technology has the characteristics of mobility, freedom, no limitation of time and place and the like, and the life and behavior modes of people are being changed profoundly. With the deep development of the internet, the mobile internet, mobile multimedia and the like have become the development direction of mobile services, and rich data services need a platform with high-speed broadband and Quality of Service (QoS) guarantee.
Technical service services have become a major revenue growth point for telecommunications equipment providers and the industry. In some equipment provider's financial reports, the contribution of both global services and support solutions may exceed 50% of group revenue. The distributed automatic upgrade of the 5G millimeter wave gbb system belongs to one of the main works of the 5G mobile communication network service and support solution. With the gradual increase of the construction of the 5G network, the workload of upgrading the 5G millimeter wave gNB system is expected to increase in a blowout manner by predicting that the 5G network will completely enter the golden development stage from the early stage in 2021.
Investigation finds that 5G millimeter wave gNB system upgrade needs to solve the following outstanding problems:
1) in the current upgrading work, the manual operation links are too many. When the distributed networking is carried out, the batch upgrading is carried out, and the workload is huge. A large amount of manpower and time are required to be consumed, and the relative cost is high;
2) the accuracy of the operation details cannot be effectively guaranteed. Human errors cannot be avoided, and human faults frequently occur;
3) the technical requirements on related engineering technicians are too high, and the skill transfer work difficulty is high;
4) the steps of upgrading work processing are complicated, the details are more, and the efficiency is low.
Disclosure of Invention
The invention aims to provide a simple and easy-to-operate distributed automatic upgrading method based on a 5G millimeter wave gNB system, aiming at the defects of the prior art.
In order to solve the problems, the technical scheme adopted by the invention is as follows:
a distributed automatic upgrading method based on a 5G millimeter wave gNB system comprises the following steps:
s1, storing the current environment variable PWD;
s2, setting user authority for verification, and entering the next step if the user authority passes the verification;
s3, setting and checking the network, if the network check is wrong, printing the wrong and quitting the upgrading process, otherwise, entering the next step;
s4, downloading the version file 1, if the downloading fails, printing the error and exiting the upgrading process, otherwise, entering the next step;
s5, checking the integrity of the version file 1, if the integrity check of the file 1 fails, printing error and exiting the upgrading process, otherwise, entering the next step;
s6, downloading the version file 2, if the downloading fails, printing the error and exiting the upgrading process, otherwise, entering the next step;
s7, checking the integrity of the version file 2, if the integrity check of the file 2 fails, printing error and exiting the upgrading process, otherwise, entering the next step;
s8, installing the version file 1 and saving the printing log in the installing process;
s9, installing the version file 2 and saving the printing log in the installing process;
s10, synchronizing the file system, if the file system fails to synchronize, printing error and quitting the upgrading process, otherwise, entering the next step;
s11, uploading log to FTPServer in the installation process;
s12, synchronizing the file system, if the file system fails to synchronize, printing the file system in error and quitting the upgrading process, otherwise, entering the next step;
s13, printing log of the installation process;
and S14, restarting the system.
The further technical scheme is that in the step S8, the log file name naming mode is file 1 name + gNB site id, so that logs of different sites can be distinguished conveniently.
The further technical scheme is that in the step S9, the log file name naming mode is file 2 name + gNB site id, so that logs of different sites can be distinguished conveniently.
The FTPServer is an ftp server for placing an upgrading version for upgrading.
According to a further technical scheme, all 5G millimeter wave gNB systems to be upgraded are used as clients (generally linux operating systems), and correct upgrade versions are downloaded from the FTPServer by executing ftp commands through automatic upgrade scripts.
A further technical scheme is that any one of remote tool software supporting an SSH protocol (Secure Shell) such as Xshell6 and TeraTerm is installed on the FTPServer, and any one of the 5G millimeter wave gNB systems is accessed to perform upgrading operation in an SSH manner through the LAN.
Adopt the produced beneficial effect of above-mentioned technical scheme to lie in: by adopting the distributed automatic upgrading method of the 5G millimeter wave gNB system, the distributed upgrading of a single gNB system is performed for nearly 2 hours, the time is reduced to less than 8 minutes, and the upgrading difficulty is nearly popular operation and easy to understand. The problems of difficulty and high cost in supporting work caused by installation and upgrading in development, debugging, testing, opening and maintenance of a 5G millimeter wave gNB system are solved; almost full-automatic upgrading mode greatly reduces manual workload and artificial faults and greatly improves engineering entry force.
The debugging efficiency is improved, and the implementation cost of the distributed automatic upgrading method of the 5G millimeter wave gNB system is only 1/15. If the test bureau, the experimental bureau, the research and development project, the operator, the generation and maintenance partner and the like are popularized along with the enlargement of the network scale in the later period, the batch operation effect is better. Has profound meaning.
Drawings
Fig. 1 is a schematic diagram of the networking of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
The networking schematic diagram of the invention is shown in figure 1, and a C-S mode is adopted to meet the requirement of distributed networking upgrading. The invention discloses a distributed automatic upgrading method based on a 5G millimeter wave gNB system, which comprises the following steps:
s1, the current environment variable PWD is saved.
And S2, setting user authority for verification, and entering the next step if the user authority passes the verification so as to avoid the authority problem and prevent the command from entering.
And S3, setting and checking the network, if the network is checked to be wrong, printing the wrong and exiting the upgrading process, and if not, entering the next step.
And S4, downloading the version file 1, if the downloading fails, printing the file in error and exiting the upgrading process, otherwise, entering the next step.
And S5, checking the integrity of the version file 1, if the integrity check of the file 1 fails, printing the error and exiting the upgrading process, otherwise, entering the next step.
And S6, downloading the version file 2, if the downloading fails, printing the file in error and exiting the upgrading process, otherwise, entering the next step.
And S7, checking the integrity of the version file 2, if the integrity check of the file 2 fails, printing the error and exiting the upgrading process, otherwise, entering the next step.
S8, installing the version file 1 and storing the printed log in the installing process, wherein the log file name naming mode is file 1 name + gNB site id, so that logs of different sites can be distinguished conveniently.
S9, installing the version file 2 and storing the printing log in the installing process, wherein the log file name naming mode is file 2 name + gNB site id, so that logs of different sites can be distinguished conveniently.
And S10, synchronizing the file system, if the file system synchronization fails, printing the file system in error and exiting the upgrading process, otherwise, entering the next step.
And S11, uploading log of the installation process to the FTPServer.
And S12, synchronizing the file system, if the file system synchronization fails, printing the file system in error and exiting the upgrading process, otherwise, entering the next step.
S13, print log of the installation process.
And S14, restarting the system.
Wherein the FTPServer is an ftp server for upgrading and used for placing an upgraded version.
All 5G millimeter wave gNB systems to be upgraded are used as clients (generally linux operating systems), and correct upgrade versions are downloaded from the FTPServer by executing ftp commands through automatic upgrade scripts.
Any one of remote tool software supporting SSH protocol (Secure Shell) such as Xshell6 and TeraTerm is installed on the FTPServer, and any one of 5G millimeter wave gNB systems is accessed to perform upgrading operation in an SSH mode through LAN.
In summary, an ftp server is required to be built in the LAN for file transfer in an ftp manner for the upgrade environment preparation work. In addition, SSH protocol remote tool software supporting TCP/IP is required to be installed on the FTPServer.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.