Simulation method for supporting multiple board cards in distributed equipment based on Docker containerization technology

Through Docker containerization technology, a variety of boards for distributed devices are simulated, which solves the problems of high testing costs and poor scalability in traditional testing, and realizes a fast, scalable and portable simulation environment, reducing hardware resource requirements.

CN119806730APending Publication Date: 2025-04-11BEIJING SCISTOR TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411848752.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

Traditional distributed equipment has high cost of functional testing, poor scalability and low resource utilization, making it difficult to quickly simulate equipment programs to verify business functions.

Method used

Using Docker containerization technology, by creating Docker container images, networks and instances, simulate multiple boards and cards in distributed devices and realize inter-board communication.

Benefits of technology

It provides a consistent operation environment to ensure consistency in simulation results, rapid deployment and scaling, reduce costs, improve development efficiency, and have portability and version control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806730A_ABST
    Figure CN119806730A_ABST
Patent Text Reader

Abstract

The invention discloses a simulation method for supporting multiple board cards in distributed equipment based on a Docker containerization technology, and belongs to the field of data communication distributed equipment testing. The method specifically comprises the following steps: firstly, installing a Docker on a linux server, and creating a Docker container mirror image containing a library required for running distributed equipment software; then, a Docker container network is created, so that the container instances can communicate based on the same container network. Next, enabling each board card in the distributed equipment to correspond to a container instance, running a plurality of container instances based on the created container mirror image, assigning an IP address for each container instance, and connecting the container instances to a Docker container network; and finally, the program of each board card is correspondingly copied to the respective container instance and runs, so that the running of the complete distributed equipment can be simulated. By using the same mirror image and the same container network, a consistent operation environment is provided, and the consistency of equipment simulation results in different machines and environments is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of data communication distributed equipment testing, and specifically is a simulation method for supporting multiple boards in distributed equipment based on Docker containerization technology. Background Art

[0002] In modern network communications and data processing, functional verification of network devices is crucial. Traditional distributed device functional testing usually relies on actual physical devices, which has problems such as high cost, poor scalability and low resource utilization. There is an urgent need for a data communication device simulation solution to facilitate developers to quickly simulate device program operation and verify business functions.

[0003] Docker containerization technology provides the advantages of lightweight, fast startup, easy migration and rich ecosystem, which makes Docker an ideal choice for supporting distributed device software multi-board program simulation. Containerization technology can quickly create container instances based on images, more efficiently utilize resources, reduce operation and maintenance costs, and improve developer work efficiency. Summary of the invention

[0004] The present invention proposes a simulation method that supports multiple boards in distributed devices based on Docker containerization technology. The method can simulate the simulation of multiple boards in distributed devices, as well as inter-board communication between multiple boards, and can ensure the data processing efficiency and accuracy during the simulation process, providing a new technical solution for the simulation of data communication distributed equipment systems.

[0005] The simulation method based on Docker containerization technology supports multiple boards in distributed devices. The specific steps are as follows:

[0006] Step 1: Install Docker on the Linux server and create a Docker container image that contains the libraries required to run the distributed device software;

[0007] The specific process is:

[0008] First, create a directory named mkdir to store the Dockerfile file. Then use the vimDockerfile command to modify the container configuration information according to actual needs. Finally, use sudo docker build -t container image name to build the image.

[0009] Step 2: Use the docker network create command statement to create a Docker container network to facilitate communication between container instances.

[0010] The command statement is "docker network create --subnet=container network IP segment container network name"

[0011] Step 3: Assign each board in the distributed device to a container instance, run multiple container instances based on the created container image, and assign an IP address to each container instance to connect to the Docker container network;

[0012] The complete command statement is: "docker run-it --name container instance name --network container network name --ip container IP address -d container image file name / bin / bash";

[0013] The docker run command is used to create and run a container instance. --name is the name of the container instance, which identifies different distributed device boards. --network means connecting the container to the Docker container network. --ip is the container-specific IP address, that is, the inter-board communication address between boards. -d is the image file specified for the container. / bin / bash is a parameter for entering the container view.

[0014] Step 4: Use the docker cp command to copy the program of each board to its own container instance and run it to simulate the operation of a complete distributed device.

[0015] The complete command statement is: "docker cp program container instance name: / program running path".

[0016] The advantages of the present invention are:

[0017] 1) A simulation method based on Docker containerization technology to support multiple boards in distributed devices. By using the same image, a consistent operating environment is provided to ensure the consistency of device simulation results in different machines and environments.

[0018] 2) A simulation method based on Docker containerization technology to support multiple boards in distributed devices. By running multiple container instances with specific IP addresses under the same container network, it realizes the simulation of multiple boards in distributed devices and realizes the function of inter-board communication between boards.

[0019] 3) A simulation method based on Docker containerization technology to support multiple boards in distributed devices has the following advantages:

[0020] Fast deployment: Containers can be started and stopped quickly, which is very useful for scenarios where developers need to frequently start and shut down simulation environments during development.

[0021] Easy to expand: Containers can be easily expanded horizontally, and more container instances can be added to cope with the increase in the types and number of boards of distributed devices;

[0022] Portability: Containers can be seamlessly migrated between different host machines and cloud platforms, providing good portability;

[0023] Version control and rollback: Container images can be version controlled, making it easier for developers to track changes and roll back to previous versions;

[0024] Cost-effectiveness: Compared with functional verification based on traditional equipment, containers can reduce the demand for hardware resources and thus reduce costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 This is a flow chart of a simulation method for supporting multiple boards in distributed devices based on Docker containerization technology of the present invention;

[0026] Figure 2 The present invention is a schematic diagram of a simulation system that supports multiple boards in distributed devices based on Docker containerization technology. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and implementation examples.

[0028] The present invention provides a simulation method based on Docker containerization technology to support multiple boards in distributed devices, such as Figure 1 As shown, the specific steps are as follows:

[0029] Step 1: Install Docker on the Linux server and create a Docker container image that contains the libraries required to run the distributed device software;

[0030] The specific process is:

[0031] First, create a directory named mkdir to store the Dockerfile file. Then use the vimDockerfile command to modify the container configuration information according to actual needs. Finally, use sudo docker build -t container image name to build the image.

[0032] Step 2: Use the docker network create command statement to create a custom Docker container network to facilitate communication between container instances.

[0033] The command statement is "docker network create --subnet=container network IP segment container network name"

[0034] Step 3: Assign each board in the distributed device to a container instance, run multiple container instances based on the created container image, and assign an IP address to each container instance to connect to the Docker container network;

[0035] The complete command statement is: "docker run-it --name container instance name --network container network name --ip container IP address -d container image file name / bin / bash";

[0036] The docker run command is used to create and run a container instance. --name is the name of the container instance, which identifies different distributed device boards. --network means connecting the container to the Docker container network. --ip is the container-specific IP address, that is, the inter-board communication address between boards. -d is the image file specified for the container. / bin / bash is a parameter for entering the container view.

[0037] like Figure 2 As shown in the figure, in this example, the main control board, business board, and interface board of the distributed device correspond to three container instances respectively, an IP address is assigned to each container instance, and they run in the same container image and communicate based on the same container network.

[0038] Step 4: Use the docker cp command to copy the program of each board to its own container instance and run it to simulate the operation of a complete distributed device.

[0039] 1) Use the docker cp command to copy the board program to the corresponding container instance. Different container instances copy different software programs to simulate different boards.

[0040] The complete command statement is: "docker cp program container instance name: / program running path".

[0041] 2) Run the software program in the container to complete the simulation of multiple boards of distributed devices.

Claims

1. A simulation method for supporting multiple boards in distributed devices based on Docker containerization technology, characterized in that: The specific steps are as follows: Step 1: Install Docker on the Linux server and create a Docker container image that contains the libraries required to run the distributed device software; Step 2: Use the docker network create command statement to create a Docker container network to facilitate communication between container instances; The command statement is "docker network create --subnet=container network IP segment container network name"; Step 3: Assign each board in the distributed device to a container instance, run multiple container instances based on the created container image, and assign an IP address to each container instance to connect to the Docker container network; The complete command statement is: "docker run-it --name container instance name --network container network name --ip container IP address -d container image file name / bin / bash"; The docker run command is used to create and run a container instance. --name is the name of the container instance, which identifies different distributed device boards. --network means connecting the container to the Docker container network. --ip is the container-specific IP address, that is, the inter-board communication address between boards. -d is the image file specified by the container. / bin / bash is a parameter that can enter the container view. Step 4: Use the docker cp command to copy the program of each board to its own container instance and run it to simulate the operation of a complete distributed device.

2. A simulation method for supporting multiple boards in distributed devices based on Docker containerization technology as claimed in claim 1, characterized in that: The step 1 is specifically as follows: First, create a directory named mkdir to store the Dockerfile file. Then use the vimDockerfile command to modify the container configuration information according to actual needs. Finally, use sudo docker build -t container image name to build the image.

3. A simulation method for supporting multiple boards in distributed devices based on Docker containerization technology as described in claim 1, characterized in that: In step 4, the complete command statement is: "docker cp program container instance name: / program running path".