A cloud-based signal-level simulation platform method based on cloud+end architecture
Through the cloudization method of the signal-level simulation platform based on the cloud + terminal architecture, the problem of insufficient resource control granularity and flexibility of the traditional radar system simulation platform is solved, and high reliability and scalability are improved.
Patent Information
- Application Number
- CN202310464135.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-04-26
AI Technical Summary
Traditional all-digital signal-level simulation platforms for radar systems have problems with low resource control granularity, low system flexibility, and poor reliability and scalability when the platform scale expands and the structure becomes complex.
Adopting the cloudization method of signal-level simulation platform based on cloud + terminal architecture, through hardware virtualization, stateless processing and architecture conversion, the resource management and tools of the simulation platform are designed to be virtualized, configurable and based on B/S architecture. This enables resource sharing, isolation and expansion.
It improves the reliability, scalability and management flexibility of the simulation platform, improves resource control granularity and platform transparency, and solves the problems of resource waste and maintenance costs.
Smart Images

Figure CN116502437B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of signal-level simulation, and in particular relates to a cloud-based signal-level simulation platform method based on a cloud+end architecture. Background Art
[0002] In modern complex electromagnetic environment, radar system plays a pivotal role. Various signals are characterized by huge quantity, complex system and diverse types. This environment has a great impact on the actual capability of radar system. In order to meet the use requirements in modern high-tech environment and improve the adaptability of radar in complex electromagnetic environment, it is necessary to simulate complex electromagnetic environment realistically and conduct various tests on information system, including different simulation tests, to ensure its adaptability to complex electromagnetic environment to the greatest extent.
[0003] At present, the mainstream approach to meet the needs of radar system testing at home and abroad is to build indoor simulation tests, which are divided into semi-physical simulation tests and full-digital simulation tests. Compared with semi-physical simulation tests, full-digital simulation tests have great advantages in terms of difficulty in environment construction, full elements of scenario construction, number of repeated tests, and construction funding costs. It is convenient to deeply analyze the effect of the system against complex environments from a mechanism perspective, carry out traversal tests in various typical scenarios, and truly understand the boundary bottom line of the radar system. With the development of information technology and computer simulation technology, as well as changes in usage requirements, the full-digital signal-level simulation platform of the radar system is required to have the ability of high utilization of simulation resources, high distribution, good interoperability and scalability. In order to solve practical problems, the architecture of the simulation platform has gradually evolved from the traditional single-body mode to the distributed architecture mode and the cloud + terminal architecture mode.
[0004] The development of a single-mode simulation system is simple, and the development environment usually uses the existing IDE (Integrated Development Environment), which integrates tools such as code editors, compilers, debuggers, and graphical user interfaces, and has a single operating environment. However, there are many difficult problems: ① Due to the lack of a fault isolation mechanism, the stability and reliability of the system are poor; ② Due to the large differences in resource requirements of different modules, the system has poor life cycle management of each module, resulting in a high possibility of resource waste; ③ Single-mode simulation systems often use a unified technical platform, and it becomes difficult to introduce new frameworks and development languages; ④ With the continuous increase in simulation business, the entire system contains many modules, and code maintenance and management become difficult; ⑤ When the scale of the simulation system becomes larger, system application updates and compilations take a long time, resulting in reduced maintainability and flexibility of the application and increased maintenance costs.
[0005] The simulation system based on the distributed architecture model vertically divides the application according to the business, physically decouples the complex business in breadth, and then horizontally divides the application according to the function to logically decouple the complex business in depth. However, the distributed architecture still has certain limitations, which are as follows: ① Due to internal demand changes and bug fixes, it is difficult for the service provider to notify all service consumers in time after modifying the interface, resulting in poor service compatibility; ② In the traditional distributed architecture environment, it is still difficult to efficiently delimit, locate, and log the problem; ③ Remote calls between services through APIs will increase additional latency and performance loss, and are seriously affected by the network; ④ Different distributed architectures have their own protocols, without a unified design style, and it is difficult to implement a universal client library.
[0006] Therefore, the traditional radar system full-digital signal-level simulation platform has problems such as low resource control granularity and system flexibility, as well as weak reliability and scalability when the platform scale expands and the structure becomes more complex. Summary of the invention
[0007] The purpose of the present invention is to provide a cloud-based signal-level simulation platform method based on a cloud + terminal architecture to solve the problems of low resource control granularity and system flexibility, as well as poor reliability and expansion capability of a traditional fully digital signal-level simulation platform for a radar system when the platform scale is expanded and the structure is complicated.
[0008] To achieve the above object, the present invention adopts the following technical solutions:
[0009] On the one hand, this specification provides a cloud-based signal-level simulation platform method based on a cloud+end architecture, including:
[0010] Step 102, virtualizing the hardware resources required for simulation calculations on the simulation platform to obtain a number of resource spaces;
[0011] Step 104, performing stateless processing on the simulation tool in the simulation platform to obtain a stateless simulation tool;
[0012] Step 106, converting the architecture program of the simulation platform into a B / S architecture program to obtain a cloud-based simulation platform architecture program;
[0013] Step 108, based on the resource space, the stateless simulation tool and the cloud-based simulation platform architecture program, obtain a cloud-based simulation platform.
[0014] On the other hand, the present specification provides a signal level simulation platform cloud device based on cloud + terminal architecture, including:
[0015] The hardware virtualization module is used to virtualize the hardware resources needed for simulation calculations on the simulation platform to obtain a number of resource spaces;
[0016] A stateless processing module performs stateless processing on the simulation tool in the above simulation platform to obtain a stateless simulation tool;
[0017] An architecture conversion module converts the architecture program of the above simulation platform into a B / S architecture program to obtain a cloud-based simulation platform architecture program;
[0018] The platform cloud module is used to obtain a cloud-based simulation platform based on the above resource space, stateless simulation tool and the above cloud-based simulation platform architecture program.
[0019] Based on the above technical solution, this specification can achieve the following technical effects:
[0020] This method uses virtualization technology to comprehensively abstract all hardware device resources to form a resource pool of different resources, thereby virtualizing and managing hardware resources to achieve sharing, reuse and isolation control. By performing stateless processing on the platform's simulation tools, the complexity caused by mutual calls between simulation services is reduced, and the abstraction of service basic components is achieved. By converting the traditional single-body architecture C / S to B / S architecture, the program is migrated to the Linux environment to ensure the high availability, strong reliability and expansion of the simulation platform, improve the control granularity of simulation resources, improve platform transparency and system management flexibility, and solve the problems of low resource control granularity and system flexibility, as well as low reliability and expansion capability of the traditional radar system full-digital signal-level simulation platform when the platform scale is expanded and the structure is complicated. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a flow chart of a signal-level simulation platform cloudification method based on a cloud+end architecture in one embodiment of the present invention.
[0022] Figure 2 It is a flow chart of a signal-level simulation platform cloudification method based on a cloud+end architecture in one embodiment of the present invention.
[0023] Figure 3 It is a flow chart of a signal-level simulation platform cloudification method based on a cloud+end architecture in one embodiment of the present invention.
[0024] Figure 4 It is a flow chart of a signal-level simulation platform cloudification method based on a cloud+end architecture in one embodiment of the present invention.
[0025] Figure 5 It is a flow chart of a signal-level simulation platform cloudification method based on a cloud+end architecture in one embodiment of the present invention.
[0026] Figure 6 It is a structural diagram of a cloud device for a signal-level simulation platform based on a cloud+end architecture in one embodiment of the present invention.
[0027] Figure 7 It is a schematic structural diagram of an electronic device in one embodiment of the present invention. DETAILED DESCRIPTION
[0028] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description and claims. It should be noted that the drawings are all in very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.
[0029] It should be noted that, in order to clearly explain the content of the present invention, the present invention specifically cites multiple embodiments to further illustrate different implementations of the present invention, wherein the multiple embodiments are enumerated rather than exhaustive. In addition, for the sake of brevity of explanation, the contents mentioned in the previous embodiments are often omitted in the subsequent embodiments. Therefore, the contents not mentioned in the subsequent embodiments can refer to the previous embodiments accordingly.
[0030] Example 1
[0031] Please refer to Figure 1 , Figure 1 The following is a signal level simulation platform cloudification method based on a cloud + terminal architecture provided by this embodiment. In this embodiment, the method includes:
[0032] Step 102, virtualizing the hardware resources required for simulation calculations on the simulation platform to obtain a number of resource spaces;
[0033] In this embodiment, one implementation of step 102 is:
[0034] Step 202, based on the Linux kernel, create several resource control groups and several resource spaces;
[0035] Specifically, based on the Linux environment, corresponding resource control groups and resource spaces are created. The resource control group is mainly used to control the system resources within the control group, and the resource space is mainly used to view the resources within the space, thereby isolating the system resources and ensuring that the resources between spaces do not affect each other.
[0036] Step 204, based on the resource control group, obtain corresponding resource restriction parameters;
[0037] Specifically, a corresponding memory resource limit parameter is set for each resource control group. When a service process exceeds the resource limit defined by its resource control group, the operating system will terminate the service process.
[0038] Step 206: Perform resource isolation on the system resources of the simulation platform based on the resource space.
[0039] Specifically, different system resources are placed in different resource spaces, so that programs in different resource spaces can enjoy an independent set of system resources to achieve resource isolation.
[0040] In this embodiment, a specific implementation of step 102 is:
[0041] Create a memory resource control group: Based on the Linux environment, create a corresponding resource control group and set its corresponding memory resource limit parameters.
[0042] Put the service process into the resource control group, get the process ID after running the service, and then enter the ID into
[0043] In the / sys / fs / cgroup / memory / foo / cgroup.procs file, the memory limit of the process can be achieved to the limit parameters of the memory resource control group. When the process exceeds the resource limit defined by its resource control group, the operating system will terminate the process.
[0044] Create other types of resource control groups, such as CPU resource control groups.
[0045] Create a resource space. The resource space encapsulates system resources in an abstract form at the kernel level. By placing system resources in different resource spaces, the purpose of resource isolation is achieved. Programs in different resource spaces can enjoy independent system resources. Create network resource space, file system resource space, process resource space, user resource space, and host domain resource space respectively.
[0046] The service process ID is injected into each resource space to achieve mutual isolation of each process, which cannot access the resources of other processes.
[0047] Based on this, this embodiment uses the container lightweight virtualization technology of the operating system kernel to comprehensively abstract all hardware device resources to form resource pools of different resources. Hardware resource virtualization includes virtual pooling management of hardware resources such as GPU, CPU, memory, storage, network, etc. used for simulation calculations to achieve sharing, reuse and isolation control, thereby providing computing, storage, network and other hardware resources for simulation services, and providing sharing, reuse and isolation control. The CPU control granularity can be down to the milli-core level, the memory control granularity can be up to MB, and the GPU control granularity can be up to MB.
[0048] Step 104, performing stateless processing on the simulation tool in the simulation platform to obtain a stateless simulation tool;
[0049] In this embodiment, one implementation of step 104 is:
[0050] Step 302, modifying program parameters to obtain configurable program parameters;
[0051] Specifically, modify the parameters in the program so that all parameters in the program are configurable and cannot be hard-coded into the program code. All parameters need to be read through the parameter passing method when the program is started. For example, similar to the following method:
[0052] . / simulation-demo param1 param2 param3
[0053] If the program needs to communicate with other programs, you need to configure the program's IP address or domain name and port, for example:
[0054] . / simulation-demo1 --demo2-address=192.168.2.1 --demo2-port=80
[0055] If a configuration file is required, the source of that file must also be parameterized, for example:
[0056] . / simulation-demo --config=config.json
[0057] Step 304, compile and package all dependent libraries of the above simulation tool to obtain dependent library executable programs;
[0058] Specifically, all dependent libraries are packaged and compiled into an executable program, so that the program can run normally after changing the operating environment and modifying the corresponding parameters.
[0059] Step 306, based on the server program of the simulation platform, obtaining a modified startup method of the server program;
[0060] Specifically, all server-side programs must be able to be started through the command line. If there is a graphical interface, the front-end and back-end need to be separated, and the front-end must be visualized in the portal. For example, all programs must be able to ensure idempotent startup and persist the current state. When the stateless application process is stuck or exits abnormally, it can continue to run after restarting.
[0061] In this embodiment, after step 306, the following steps are further included:
[0062] Modify the data storage method. All data must be persisted in a timely manner, whether it is placed in a database, message queue, shared memory or shared video memory. Data cannot be stored in local memory for a long time.
[0063] Step 308, obtaining a stateless simulation tool based on the configurable program parameters, the dependent library executable program, the startup method and the simulation tool data.
[0064] Based on this, this embodiment moves the state of the simulation tool outward, saves the session data, file data, and structured data in a unified storage device at the back end, so that the simulation tool only contains business logic. Pre-tools such as combat situation design and test design, and post-tools such as analysis and evaluation, and test review in the radar system signal-level simulation platform are all stateless objects, and can freely select a variety of service support components, which can reduce the complexity brought by mutual calls between simulation services, shield implementation details, and realize the abstraction of service basic components, no perception of simulation applications, and no intrusive modification of any program.
[0065] Step 106, converting the architecture program of the simulation platform into a B / S architecture program to obtain a cloud-based simulation platform architecture program;
[0066] In this embodiment, one implementation of step 106 is:
[0067] Step 402, based on the standard compiler, obtain the B / S architecture program whose compilation environment is migrated to Linux;
[0068] Specifically, when migrating programs from Windows to Linux, development and compilation on Windows generally use IDEs such as VC / VS, which do a lot of extra work, such as packaging some data types, which are somewhat different from standard C / C++. Now, if you need to migrate to Linux, you need to use a standard C / C++ compiler to compile.
[0069] Step 404, based on the file name of the architecture program, obtain the standard file name of the B / S architecture program;
[0070] Specifically, the ext2 file system is case-sensitive to file names. When compiling on this file system, avoid #include statements in the source file. In the VC / VS environment, the #include statements automatically generated by the IDE have all file names in lowercase. Therefore, you need to pay attention to this issue from the beginning and strictly use the case-sensitive file name format to avoid errors such as header files not being found when compiling under Linux.
[0071] Step 406, remove all data types, keywords, and dependent libraries that are unique to the VS / VC environment in the B / S architecture program;
[0072] Specifically, remove all VS-specific data types, such as __int16, __int32, and __int64, which may not be supported by other compilers. Also avoid using extended data types such as WORD, DWORD, INT, and UINT in VC / VS that are not included in the Linux system. Copy the statements that define these data in windows.h and basetypes.h to the header file, and then include the header file under Linux; remove unique keywords: avoid using keywords with two underscores in VC, such as __asm. If it cannot be avoided, use #ifdef and #endif to write two versions for Linux and Windows; remove unique dependent libraries: remove windows.h and other Windows-specific dependent libraries.
[0073] Step 408, based on the B / S architecture program, modify the program design structure and user operation interface of the architecture program to obtain a cloud-based simulation platform architecture program.
[0074] Specifically, the programming structure needs to be modified first. When using multiple threads, pipelines, or porting Windows graphical interface programs, the programming structure needs to be considered. The typical application implementation architecture generally includes the presentation layer, business layer, and data access layer. The presentation layer consists of modules that process HTTP requests, the business layer implements business logic, and the data access layer contains modules that access infrastructure. The business layer encapsulates business logic with one or more APIs. After separating the presentation layer and the business layer from the front and back ends, the presentation layer makes remote calls to the business layer. In the modification of the programming structure, the number of threads used by the application should be minimized, and the input and output modules should be separated; then the user operation interface should be modified, and all functional modules that require a visual interface should uniformly adopt the front and back end separation technology, and the front-end visual interface should be written in JavaScript. Those that need to display a graphical interface to the user are collectively referred to as clients, that is, B / C ends; programs that do not display a graphical interface are called servers, that is, S ends. Separate the graphical rendering part and change it to B end, and all others are servers. These servers are in the same process or multiple processes. The internal communication of the server is controlled by the server itself, and the cloud platform does not intervene or monitor. The B-side uses the Javascript programming language, and the front-end frameworks are React, Vue, etc. The server provides HTTP restful standard interface, and transmits data to the B-side through the http interface. The B-side is responsible for rendering
[0075] Based on this, this embodiment changes the visual interface of the C-end in the traditional monolithic C / S architecture from Qt and other interface frameworks to a visual interface written by Web technologies such as React, and transforms the interactive communication mode between the S-end and the front-end, including transforming the traditional TCP / UDP mode into the Http restful standard mode.
[0076] Step 108, based on the resource space, the stateless simulation tool and the cloud-based simulation platform architecture program, obtain a cloud-based simulation platform.
[0077] In this embodiment, after step 108, the following steps are further included:
[0078] Step 502, modifying the communication mode of the cloud-based simulation platform to a communication mode based on the http protocol;
[0079] In this embodiment, one implementation of step 502 is:
[0080] Modify the communication protocol of the above cloud-based simulation platform to HTTP restful interface format;
[0081] Specifically, after the program is cloudified, the communication method between services needs to be changed from RPC to HTTP restful interface interaction. For example, the client uses ajax and the server uses http libraries such as feign-client for communication.
[0082] Change the communication address of the above cloud-based simulation platform to domain name communication.
[0083] Specifically, when traditional programs interact, they basically use IP addresses to communicate, and usually the IP address is fixed when they are started. However, after the service is on the cloud, the IP address of each service is not fixed, and the service registration mechanism is adopted after the service is on the cloud. Each service will be assigned a fixed domain name, so the communication of the program needs to be changed to domain name communication.
[0084] Based on this, this embodiment improves the communication methods such as Http protocol, RPC protocol, long link, etc. that the traditional distributed signal simulation platform relies on, restricts cookies, and constrains the front-end request interface to ensure the usability and scalability of the cloud-based simulation platform.
[0085] Step 504, splitting the services of the cloud-based simulation platform to obtain a number of microservices;
[0086] In this embodiment, one implementation of step 504 is:
[0087] Initialize the basic library in the common library;
[0088] Specifically, the basic library is very important for the microservice architecture. Generally, in a new project, after the initial requirements are discussed and in the early stage of coding, the public library will be initialized first. For example, the initialization of some DB connection pools is slightly different in different projects. The HTTP and other connection pool codes are basically reusable, and the rest of the public libraries can be directly dragged into the new project to start using. Put all the public libraries in common, which includes basic libraries such as log, config, errors, as well as connection pool initialization for DBs such as Redis, Mongo, MySQL, and http connection pool initialization. Here, either FeignClient or the user's own secondary encapsulation based on the HTTP interface that comes with the programming language is used. In addition, there are basic libraries such as Trace for tracking requests to facilitate log queries.
[0089] Split the above services based on code responsibilities to obtain several microservices;
[0090] Specifically, the fundamental decomposition of services is the decomposition and abstraction of some code responsibilities, which is mainly a modular idea. For example, a simulation project has functions such as radar simulation and sea clutter simulation. These simulation models all need to collect and report data; therefore, radar simulation can be extracted into a separate service for separate deployment, sea clutter simulation can also be extracted into a service, and data collection and reporting can also be independently made into a service.
[0091] Based on the above microservices, obtain the corresponding service interface.
[0092] Specifically, the interface definition between components is then completed. All services in the simulation project need to provide interfaces, and the outermost layer is the Controller layer. The Controller is the access layer, which uniformly handles all API requests, http or https. The access layer can do lightweight data processing and does not do stateful data storage. It is a stateless service, and the final data processing is passed to the corresponding backend service.
[0093] Finally, based on the defined inter-component interfaces and initialized common libraries, team members divide the components and start writing code in parallel and independently. After completing the code writing task, they can perform unit testing based on the components and then wait for joint debugging with other components.
[0094] Based on this, this embodiment adopts a loosely coupled microservice architecture, adheres to the principles of high cohesion and low coupling, and comprehensively considers factors such as business areas, functional stability, application performance, technology, granularity of simulation services, transaction boundaries, databases, and shared services and components, and splits the simulation platform into a series of microservices.
[0095] Step 506: Building a portal of the cloud-based simulation platform, where the portal is used to provide the aforementioned microservices.
[0096] One implementation of step 506 in this embodiment is:
[0097] Based on JavaScript language and front-end framework, build a unified simulation platform portal;
[0098] Specifically, a unified simulation portal web page is built using JavaScript language based on front-end frameworks such as React and Vue.
[0099] Integrate the above-mentioned microservices with the above-mentioned portal to obtain the corresponding access address;
[0100] Specifically, based on the pre-integrated simulation service, the corresponding interface is exposed on the back end, and the front end calls the interface to integrate the simulation service on the server side into the simulation portal, and provides the corresponding access address and function integration.
[0101] Based on the portal and the microservices, a corresponding relationship between user permissions and the microservices is obtained.
[0102] Specifically, for each type of simulation service that the simulation portal can provide, different users have different permissions, such as viewing, editing, deleting, etc., and a role-based permission control system is established, that is, each user is assigned a corresponding role, such as administrator, simulation test personnel, etc., and at the same time, the permissions of the roles are restricted instead of directly controlling the permissions of the users.
[0103] Based on this, this embodiment builds a front-end simulation portal so that the cloud-based simulation platform provides simulation services in the form of a portal. The simulation portal is a unified entrance for simulation users to conduct full-digital simulation experiments, and its main form is a Web-based application page. The simulation service is centrally implemented on the cloud server, and the user interaction function is extended to any authorized terminal connected to the cloud server. The unified portal provides simulation test services for the ubiquitously connected simulation user group. This realizes an overall portal with intensive functions and intensive management.
[0104] In this embodiment, before step 108, the following steps are also included:
[0105] Standardized management of components used to develop the above simulation platforms.
[0106] Specifically, the method for standardized management of the components for developing the above-mentioned simulation platform is to deploy the components of the above-mentioned simulation platform, and based on the above-mentioned components, obtain a number of corresponding specifications, and then automatically test, automatically deploy, preset and release the above-mentioned components.
[0107] For example, a specific implementation of this step is:
[0108] First, deploy all relevant components
[0109] Code library: save the code of each project
[0110] CI / CD components: execute code pull, build, deploy, and test pipelines
[0111] Demand Management Module: Perform demand management
[0112] Second, formulate standards
[0113] Code repository specifications: including branch and tag naming specifications, branch management specifications (management process, hotfix process, branch strategy), and code submission specifications.
[0114] Taking branch development and trunk release as an example, the management process specifications will involve code base preparation, development integration, acceptance testing, and release links. The purpose of each branch, the roles involved in each link, and the operating procedures of the roles are all specified in detail.
[0115] Third, CI / CD process specifications
[0116] Naming standards: components, media warehouses, build definitions, build product aliases, release definitions. Pipeline standards: development pipeline, user acceptance test pipeline and rollback pipeline, release pipeline and rollback pipeline, hotfix pipeline.
[0117] Design and define common pipelines such as development and testing pipelines, user acceptance testing pipelines, and release pipelines, corresponding to development and testing environments, user acceptance environments, and production environments. After multiple executions of the development and testing pipelines, the business system forms a stable version and is delivered to the user acceptance testing pipeline. After passing the user acceptance test, it is transferred to the release pipeline for release and online release; this process also involves the maintenance of code branches and tags. This ultimately forms a closed loop of R&D and operation and maintenance
[0118] Fourth, analysis and planning
[0119] View dependencies between components (application discovery and delivery intelligence) and improve speed, planning and collaboration (workflow management).
[0120] Fifth, code and construction
[0121] Fast delivery, cloud-native development, build hybrid applications faster, build once and deploy everywhere (consistent management and coordination), free choice of SCM (software configuration management, automatic configuration and change control).
[0122] 6. Automatic testing
[0123] Shift testing left, containerized testing, unit testing.
[0124] 7. Provisioning, deployment, and release
[0125] Automate deployments (with fast feedback, continuous delivery, and audit trails), provision multi-cloud environments, and distribute applications synchronously.
[0126] Based on this, this embodiment uses DevOps technology to achieve unified management of development code submission, code checking, authorization verification, image management, automatic deployment, and release in the process of developing the simulation platform and operating and maintaining management, which will reduce human interaction to a minimum and improve the development and operation efficiency of the simulation platform.
[0127] Therefore, this method has the following beneficial effects:
[0128] (1) Improved reliability: The cloud + terminal architecture can manage the entire life cycle of simulation services, provide real-time monitoring of simulation service operation status, real-time monitoring of resource usage, health checks, and automatic elastic scaling, ensuring stable and reliable operation of simulation applications;
[0129] (2) Improved scalability: The cloud + terminal architecture provides complete service registration, discovery mechanism, policy routing, and security authentication functions for simulation services. It can freely select a variety of service support components, reduce the complexity caused by mutual calls between simulation services, shield implementation details, and realize the abstraction of service basic components, simulation application unawareness, and no intrusive modification of any program;
[0130] (3) Fine-grained resource control: The cloud + terminal architecture model uses resource virtualization technology to provide computing, storage, network and other hardware resources for simulation services, and provides sharing, reuse and isolation control. The CPU control granularity can be down to milli-core level, the memory control granularity can be down to MB, and the GPU control granularity can be down to MB.
[0131] (5) Improved platform transparency: The cloud + terminal architecture provides all-round monitoring for the radar system signal-level simulation platform, including monitoring of the simulation platform infrastructure, cloud resources, simulation services, simulation applications, and middleware databases. By real-time monitoring of the platform and simulation application running status, the observability of the platform and simulation application services is improved, thereby enhancing platform transparency.
[0132] (6) Enhanced system management flexibility: The cloud + terminal architecture can isolate the development environment, test environment, and production environment for simulation services. Flexible visual configuration can be performed on the simulation portal to quickly build the resource environment required for simulation services. It can also control the roles of simulation personnel and simulation service permissions, and provide authentication services.
[0133] In summary, this method uses virtualization technology to comprehensively abstract all hardware device resources to form a resource pool of different resources, thereby virtualizing the management of hardware resources to achieve sharing, reuse and isolation control. By making the platform's simulation tools stateless, the complexity brought by mutual calls between simulation services is reduced, and the abstraction of service basic components is achieved. By converting the traditional single-body architecture C / S to B / S architecture, the program is migrated to the Linux environment to ensure the high availability, strong reliability and expansion of the simulation platform, improve the control granularity of simulation resources, improve platform transparency and system management flexibility, and solve the problems of low resource control granularity and system flexibility, as well as poor reliability and expansion capabilities of the traditional radar system full-digital signal-level simulation platform when the platform scale is expanded and the structure is complicated.
[0134] Example 2
[0135] Please refer to Figure 6 , Figure 6 The present embodiment provides a signal level simulation platform cloud device based on a cloud + terminal architecture, including:
[0136] The hardware virtualization module is used to virtualize the hardware resources needed for simulation calculations on the simulation platform to obtain a number of resource spaces;
[0137] A stateless processing module performs stateless processing on the simulation tool in the above simulation platform to obtain a stateless simulation tool;
[0138] An architecture conversion module converts the architecture program of the above simulation platform into a B / S architecture program to obtain a cloud-based simulation platform architecture program;
[0139] The platform cloud module is used to obtain a cloud-based simulation platform based on the above resource space, stateless simulation tool and the above cloud-based simulation platform architecture program.
[0140] Optionally, also include:
[0141] A communication modification module, used to modify the communication mode of the above-mentioned cloud-based simulation platform to a communication mode based on the http protocol;
[0142] A service splitting module is used to split the services of the above-mentioned cloud-based simulation platform to obtain several microservices;
[0143] The portal building module is used to build the portal of the cloud-based simulation platform, and the portal is used to provide the above-mentioned several microservices.
[0144] Optionally, also include:
[0145] Develop an operation and maintenance module to standardize the management of components used to develop the above simulation platform.
[0146] Optionally, the hardware virtualization module further includes:
[0147] A creation unit is used to create several resource control groups and several resource spaces based on the Linux kernel;
[0148] A parameter restriction unit, used to obtain corresponding resource restriction parameters based on the resource control group;
[0149] A resource isolation unit is used to isolate the system resources of the simulation platform based on the resource space.
[0150] Optionally, the stateless processing module includes:
[0151] A parameter modification unit, used for modifying program parameters to obtain configurable program parameters;
[0152] A dependency library packaging unit is used to package and compile all dependency libraries of the above-mentioned simulation tool to obtain a dependency library executable program;
[0153] A startup modification unit, used for obtaining a modified startup method of the server program based on the server program of the simulation platform;
[0154] The stateless unit is used to obtain a stateless simulation tool based on the configurable program parameters, the dependent library executable program, the startup method and the data of the simulation tool.
[0155] Optionally, the architecture conversion module includes:
[0156] The environment migration unit is used to obtain the compilation environment and migrate it to the B / S architecture program on Linux based on the standard compiler;
[0157] A file name modification unit, used to obtain a standard file name of the B / S architecture program based on the file name of the architecture program;
[0158] The removal unit is used to remove all data types, keywords, and dependent libraries that are unique to the VS / VC environment in the above B / S architecture program;
[0159] The cloud unit is used to modify the program design structure and user operation interface of the above-mentioned architecture program based on the above-mentioned B / S architecture program to obtain the cloud-based simulation platform architecture program.
[0160] Optionally, the communication modification module includes:
[0161] A communication protocol modification unit, used to modify the communication protocol of the above-mentioned cloud-based simulation platform into an HTTP restful interface form;
[0162] The communication address modification unit is used to modify the communication address of the above-mentioned cloud-based simulation platform to the domain name communication address.
[0163] Optionally, the service splitting module includes:
[0164] Initialization unit, used to initialize the basic library in the common library;
[0165] The service splitting unit is used to split the above services based on code responsibilities to obtain several microservices;
[0166] The interface definition unit is used to obtain the corresponding service interface based on the above-mentioned microservices.
[0167] Optionally, the portal building module includes:
[0168] The portal building unit is used to build a portal for a unified simulation platform based on JavaScript language and front-end framework;
[0169] An address integration unit, used to integrate the above-mentioned several microservices with the above-mentioned portal to obtain corresponding access addresses;
[0170] The portal restriction unit is used to obtain the corresponding relationship between the user authority and the above-mentioned several microservices based on the above-mentioned portal and the above-mentioned several microservices.
[0171] Based on this, this device uses virtualization technology to comprehensively abstract all hardware device resources to form a resource pool of different resources, thereby virtualizing the management of hardware resources to achieve sharing, reuse and isolated control. By making the platform's simulation tools stateless, the complexity brought by mutual calls between simulation services is reduced, and the abstraction of service basic components is achieved. By converting the traditional single-body architecture C / S to B / S architecture, the program is migrated to the Linux environment to ensure the high availability, strong reliability and expansion of the simulation platform, improve the control granularity of simulation resources, improve platform transparency and system management flexibility, and solve the problems of low resource control granularity and system flexibility, as well as poor reliability and expansion capabilities of the traditional radar system full-digital signal-level simulation platform when the platform scale expands and the structure becomes complex.
[0172] Example 3
[0173] Please refer to Figure 7, this embodiment provides an electronic device, which includes a processor, an internal bus, a network interface, a memory and a non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a cloud-based signal-level simulation platform method based on the cloud + terminal architecture at the logical level. Of course, in addition to software implementation methods, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0174] The network interface, processor and memory can be connected to each other through a bus system. The above bus can be divided into an address bus, a data bus, a control bus, etc.
[0175] The memory is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include a read-only memory and a random access memory, and provides instructions and data to the processor.
[0176] The processor is used to execute the program stored in the above memory, and specifically perform:
[0177] Step 102, virtualizing the hardware resources required for simulation calculations on the simulation platform to obtain a number of resource spaces;
[0178] Step 104, performing stateless processing on the simulation tool in the simulation platform to obtain a stateless simulation tool;
[0179] Step 106, converting the architecture program of the simulation platform into a B / S architecture program to obtain a cloud-based simulation platform architecture program;
[0180] Step 108, based on the resource space, the stateless simulation tool and the cloud-based simulation platform architecture program, obtain a cloud-based simulation platform.
[0181] The processor may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of the processor hardware or by instructions in the form of software.
[0182] Based on the same invention, the embodiment of this specification also provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes Figures 1 to 5 The corresponding embodiment provides a cloud-based signal-level simulation platform method based on a cloud+end architecture.
[0183] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-readable storage media containing computer-usable program code.
[0184] In addition, for the above-mentioned specific implementation of the device, since it is basically similar to the method implementation, the description is relatively simple, and the relevant parts can refer to the partial description of the method implementation. Moreover, it should be noted that in each module of the device of the present application, the components therein are logically divided according to the functions to be implemented, but the present application is not limited thereto, and the components can be re-divided or combined as needed.
[0185] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other. Each embodiment focuses on the differences between it and other embodiments.
[0186] The above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the specific order or sequential order shown in the process depicted in the drawings is not necessarily required to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0187] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A cloud-based signal-level simulation platform method based on a cloud+end architecture, characterized in that: include: Virtualize the hardware resources needed for simulation calculations on the simulation platform to obtain a number of resource spaces; Performing stateless processing on the simulation tool in the simulation platform to obtain a stateless simulation tool; The step of performing stateless processing on the simulation tool in the simulation platform to obtain the stateless simulation tool comprises: Modify the program parameters to obtain configurable program parameters; Pack and compile all dependent libraries of the simulation tool to obtain dependent library executable programs; Based on the server program of the simulation platform, obtaining a modified startup method of the server program; Based on the configurable program parameters, the dependent library executable program, the startup mode and the data of the simulation tool, a stateless simulation tool is obtained; Converting the architecture program of the simulation platform into a B / S architecture program to obtain a cloud-based simulation platform architecture program; Based on the resource space, the stateless simulation tool and the cloud-based simulation platform architecture program, a cloud-based simulation platform is obtained; Modifying the communication mode of the cloud-based simulation platform to a communication mode based on the http protocol; Splitting the services of the cloud-based simulation platform to obtain a number of microservices; The step of splitting the services of the cloud-based simulation platform to obtain a plurality of microservices includes: Initialize the basic library in the common library; Split the service based on code responsibilities to obtain several microservices; Based on the several microservices, obtain the corresponding service interface Building a portal of the cloud-based simulation platform, wherein the portal is used to provide the plurality of microservices; The step of building a portal for the cloud-based simulation platform includes: Based on JavaScript language and front-end framework, build a unified simulation platform portal; Integrate the several microservices with the portal to obtain corresponding access addresses; Based on the portal and the plurality of microservices, a correspondence between user permissions and the plurality of microservices is obtained.
2. The method according to claim 1, characterized in that Before obtaining the cloud-based simulation platform, the method further includes: Standardized management is performed on components used to develop the simulation platform.
3. The method according to claim 1, characterized in that The step of virtualizing the hardware resources required for the simulation platform to perform simulation calculations to obtain a plurality of resource spaces comprises: Based on the Linux kernel, create several resource control groups and several resource spaces; Based on the resource control group, obtaining corresponding resource restriction parameters; Resource isolation is performed on system resources of the simulation platform based on the resource space.
4. The method according to claim 1, characterized in that: The step of converting the architecture program of the simulation platform into a B / S architecture program to obtain the cloud-based simulation platform architecture program includes: Based on the standard compiler, obtain the B / S architecture program that migrates the compilation environment to Linux; Based on the file name of the architecture program, obtain the standard file name of the B / S architecture program; Remove all data types, keywords, and dependent libraries that are unique to the VS / VC environment in the B / S architecture program; Based on the B / S architecture program, the program design structure and user operation interface of the architecture program are modified to obtain a cloud-based simulation platform architecture program.
5. The method according to claim 1, characterized in that The step of modifying the communication mode of the cloud-based simulation platform to a communication mode based on the http protocol includes: Modify the communication protocol of the cloud-based simulation platform to an HTTP restful interface format; The communication address of the cloud-based simulation platform is modified to domain name communication.
6. The method according to claim 2, characterized in that The method of standardized management of the components used to develop the simulation platform is to deploy the components of the simulation platform, obtain a number of corresponding specifications based on the components, and then automatically test, automatically deploy, preset and publish the components.
