Urban rail shared test platform network configuration method and device
By generating the network topology diagram between communication devices and configuring the interconnection address and port according to the topology diagram, the problem of complex network configuration of urban rail sharing test platform in the existing technology is solved, efficient and accurate network configuration is achieved, and the operation process is simplified And improve configuration efficiency.
Patent Information
- Application Number
- CN202210707431.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-21
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2042-06-21
AI Technical Summary
The network configuration of the urban rail shared test platform in the prior art is complex and requires manual configuration, which leads to time-consuming and labor-intensive process and lacks efficient and simplified configuration methods.
By generating a network topology diagram between communication devices, configuring the interconnection address and port according to the topology diagram, static routing configuration is carried out in combination with different communication methods (layer three and layer two), and semi-automated network configuration method is adopted to simplify the configuration process and improve the efficiency.
It realizes fast and accurate network configuration, reduces the time for early environmental surveys, expands the scope of application, simplifies the operation process, and improves the accuracy and efficiency of network configuration.
Smart Images

Figure CN115208749B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a network configuration method and device for an urban rail shared test platform. Background Art
[0002] Before building the laboratory private cloud platform, the CBTC (Communication Based Train Control) system test was conducted using physical signal equipment and simulated physical equipment in the physical equipment area. After the private cloud platform was put into use, virtual equipment was gradually migrated to the cloud. Therefore, quickly connecting the private cloud network and the laboratory network is the basis for efficient use of the private cloud.
[0003] As the branch's business gradually increases, how to coordinate the use of test resources is an urgent problem to be solved. After the private cloud platform is built, if the branch wants to access the resources, it can expand the VPN (Virtual Private Network) or use a hybrid cloud. Considering that VPN bandwidth is greatly affected by demand fluctuations, building a hybrid cloud is the current trend. At the same time, considering that the branch has a demand for physical test equipment, if a shared test platform is built and the physical equipment network and private cloud network are introduced to the public cloud, the branch's demand for physical equipment and private cloud resources can be solved. The network connection diagram of the urban rail shared test platform is as follows Figure 1 shown.
[0004] Since the network configuration of the urban rail shared test platform is relatively complex, involving multiple areas such as public cloud, office network, private cloud and laboratory network, the network configuration information on the communication link in the existing technology needs to be manually configured by project personnel, and the construction process is relatively complicated. Summary of the invention
[0005] The present invention provides a network configuration method and device for an urban rail shared test platform, which are used to solve the defects of manual network configuration in the prior art, which is complicated, time-consuming and labor-intensive, and simplifies the network configuration process and improves the network configuration efficiency.
[0006] The present invention provides a network configuration method for a city rail shared test platform, comprising:
[0007] Generate a network topology diagram according to network devices on a communication link between a first communication device and a second communication device; the first communication device and the second communication device are located in different areas;
[0008] In the case where the communication mode between the first communication device and the second communication device is three-layer communication, configuring the interconnection address of the network device according to the network topology diagram, and configuring a static route for the network device according to the source address and the destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device;
[0009] In the case where the communication mode is layer 2 communication, the interconnection ports of the network devices are configured according to the network topology diagram, and the VLAN information of the communication network segment where the first communication device and the second communication device are located is searched according to the area where the first communication device and the second communication device are located, and the VLAN information is transparently transmitted on the network device.
[0010] According to a network configuration method for a shared test platform for urban rail transit provided by the present invention, generating a network topology diagram according to network devices on a communication link between a first communication device and a second communication device includes:
[0011] In the case where there are multiple communication links between the first communication device and the second communication device, selecting a communication link from the multiple communication links;
[0012] The network topology diagram is generated according to the physical connection and device name of the network device on the selected communication link; wherein the physical connection is the interconnection address or interconnection port, and the device name is unique.
[0013] According to a network configuration method for a shared urban rail test platform provided by the present invention, the interconnection address of the network device is configured according to the network topology diagram, including:
[0014] In the case where there is a deviation between the network topology map and the actual network environment of the communication link, obtaining a modification operation of the user on the network topology map;
[0015] Comparing the network topology diagram after the modification operation with the actual network environment;
[0016] When the network topology diagram after the modification operation is consistent with the actual network environment, the interconnection address of the network device is configured according to the network topology diagram after the modification operation.
[0017] According to a network configuration method for a shared urban rail test platform provided by the present invention, the interconnection address of the network device is configured according to the network topology diagram, including:
[0018] Obtaining the interconnection address of each network device on the communication link;
[0019] In the case where the interconnection address of any network device does not exist, configuring and issuing the interconnection address for any network device on the visual interface of the network topology map or in any network device;
[0020] Configuring the interconnection ports of the network devices according to the network topology diagram includes:
[0021] Obtaining the interconnection port of each network device on the communication link;
[0022] In the case that the interconnection port of any network device cannot be automatically obtained, the interconnection port is configured and issued for any network device on the visual interface of the network topology map or in any network device.
[0023] According to a network configuration method for an urban rail shared test platform provided by the present invention, after the step of configuring a static route for the network device according to the source address and the destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device, the method further includes:
[0024] The information of the network device configured this time is retained;
[0025] Describing the actual network environment of the communication link;
[0026] The configuration of the network device is restored according to the description information of the actual network environment and the retained information of the network device configured this time.
[0027] According to a network configuration method for an urban rail shared test platform provided by the present invention, after the step of configuring a static route for the network device according to the source address and the destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device, the method further includes:
[0028] The preset configuration information of the network device is compared with the information of the network device configured this time to check whether the information of the network device configured this time is correct.
[0029] The present invention also provides a network configuration device for a city rail shared test platform, comprising:
[0030] A generating module, configured to generate a network topology diagram according to network devices on a communication link between a first communication device and a second communication device; the first communication device and the second communication device are located in different areas;
[0031] A first configuration module is used to configure the interconnection address of the network device according to the network topology diagram when the communication mode between the first communication device and the second communication device is three-layer communication, and configure a static route for the network device according to the source address and destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device;
[0032] The second configuration module is used to configure the interconnection ports of the network device according to the network topology diagram when the communication mode is layer 2 communication, search for VLAN information of the communication network segment where the first communication device and the second communication device are located according to the area where the first communication device and the second communication device are located, and transparently transmit the VLAN information on the network device.
[0033] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the network configuration method for the urban rail shared test platform as described in any one of the above-mentioned methods is implemented.
[0034] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the network configuration method of the urban rail shared test platform as described in any one of the above-mentioned methods is implemented.
[0035] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for configuring a shared urban rail test platform network.
[0036] The network configuration method and device for the urban rail shared test platform provided by the present invention facilitate users to grasp the environment by generating a network topology structure of a communication link between two communication devices, and when the network environment changes, there is no need to spend a lot of time on preliminary environmental research; different configuration methods are adopted according to different communication modes between communication devices to perform network configuration on the shared test platform, thereby expanding the scope of application; a semi-automatic network configuration method is adopted to simplify the network configuration process, improve configuration efficiency, make the operation more concise, and improve the accuracy of network configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 It is a network connection diagram of the urban rail shared test platform provided by the prior art;
[0039] Figure 2 It is one of the flow diagrams of the network configuration method of the urban rail shared test platform provided by the present invention;
[0040] Figure 3 It is a schematic diagram of a network topology diagram in the network configuration method of the urban rail shared test platform provided by the present invention;
[0041] Figure 4 It is a schematic diagram of the configuration of the interconnection address in the network configuration method of the urban rail shared test platform provided by the present invention;
[0042] Figure 5 It is a schematic diagram of the configuration of routing information in the network configuration method of the urban rail shared test platform provided by the present invention;
[0043] Figure 6 It is a configuration diagram of interconnection ports in the network configuration method of the urban rail shared test platform provided by the present invention;
[0044] Figure 7 It is a schematic diagram of VLAN transparent transmission in the network configuration method of the urban rail shared test platform provided by the present invention;
[0045] Figure 8 This is the second flow chart of the network configuration method of the urban rail shared test platform provided by the present invention;
[0046] Fig. 9 It is a structural schematic diagram of the network configuration device of the urban rail shared test platform provided by the present invention;
[0047] Fig.10 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] Combine the following Figure 2 A network configuration method for a shared urban rail test platform of the present invention is described, comprising:
[0050] Step 201, generating a network topology diagram according to network devices on a communication link between a first communication device and a second communication device; the first communication device and the second communication device are located in different areas;
[0051] The first communication device A and the second communication device B are two communicating devices. Through communication, the first communication device A can obtain the data information required for the urban rail test on the second communication device B, and the second communication device B can also obtain the data information required for the urban rail test on the first communication device A, thereby realizing information sharing on different test platforms.
[0052] Optionally, the first communication device A may actually exist in any location of the physical device area, the private cloud area, or the public cloud area, and the second communication device B may actually exist in any location of the physical device area, the private cloud area, or the public cloud area, and A and B are located in different networks. The communication between the three different networks can be configured using the method of this embodiment.
[0053] In the environment configuration program, it is first necessary to clarify the location of the first communication device A and the second communication device B and the communication method between the two. If the communication device is located in the private cloud area, the IP address information or VLAN information of the communication device can be obtained through the connection between the environment configuration program and the cloud platform management in the private cloud area.
[0054] The communication mode is determined by judging whether the communication network segments of the first communication device A and the second communication device B are the same. If they are in the same network segment, the communication between A and B is layer 2; if they are in different network segments, the communication between A and B is layer 3.
[0055] After all devices are online, the environment configuration program can automatically check and obtain the network devices on the communication link between the first communication device A and the second communication device B, thereby forming a network topology diagram.
[0056] This embodiment can quickly and efficiently build a shared test cloud platform based on the existing hardware environment and test requirements for branch companies to access resources of private clouds and physical devices. By building a shared test cloud platform, the resource utilization of private clouds is improved and the branch companies' dependence on physical test equipment is reduced.
[0057] Step 202, when the communication mode between the first communication device and the second communication device is layer 3 communication, configure the interconnection address of the network device according to the network topology diagram, and configure a static route for the network device according to the source address and destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device;
[0058] If the communication between the first communication device A and the second communication device B is layer 3 communication, the interconnection address of the network device is configured.
[0059] After confirming the communication network segment between A and B, obtain the source address and destination address of the communication network segment, and confirm whether to generate a receipt route. For example, when data is transmitted from A to B, the source address is A's IP address, and the destination address is B's IP address. When A and B have multiple network cards, select the IP address corresponding to one of A's network cards as the source address, or select the IP address corresponding to one of B's network cards as the destination address. After confirmation, the environment configuration program automatically configures static routing instructions on the network devices on the communication link. If the network device is located in the private cloud network area, the environment configuration program will configure static routes for the virtual machines in the cloud management platform after docking with the cloud platform software.
[0060] Step 203, when the communication mode is layer 2 communication, configure the interconnection ports of the network device according to the network topology diagram, and search for VLAN (Virtual Local Area Network) information of the communication network segment where the first communication device and the second communication device are located according to the area where the first communication device and the second communication device are located, and transparently transmit the VLAN information on the network device.
[0061] If the communication between the first communication device A and the second communication device B is layer 2 communication, the interconnection ports of the network devices are configured.
[0062] Because the communication between A and B is in the same communication segment, you only need to confirm the VLAN corresponding to the communication segment. When device A or B is located in the public cloud area or private cloud area, find the VLAN information from the management platform of device A or B. When device A or B is located in the physical device area, find the VLAN information from the switch connected to device A or B.
[0063] After confirmation, the environment configuration program will automatically transparently transmit the VLAN on the network devices on the communication link to ensure that the communication segment can communicate normally.
[0064] The environment configuration program will combine the communication link and the interconnection address or interconnection port to perform relevant configuration for the corresponding communication needs. If the existing information is to be overwritten, a second confirmation is required to ensure the correctness of the configuration.
[0065] This embodiment facilitates users to understand the environment by generating a network topology structure of the communication link between two communication devices. When the network environment changes, there is no need to spend a lot of time on preliminary environmental research. Different configuration methods are adopted according to different communication modes between communication devices to configure the network of the shared test platform, thereby expanding the scope of application. A semi-automatic network configuration method is adopted to simplify the network configuration process, improve configuration efficiency, make the operation more concise, and improve the accuracy of network configuration.
[0066] On the basis of the above embodiment, the method of generating a network topology diagram according to network devices on the communication link between the first communication device and the second communication device in this embodiment includes:
[0067] In the case where there are multiple communication links between the first communication device and the second communication device, selecting a communication link from the multiple communication links;
[0068] If there are multiple communication links between the first communication device A and the second communication device B, one communication link is selected from them.
[0069] The network topology diagram is generated according to the physical connection and device name of the network device on the selected communication link; wherein the physical connection is the interconnection address or interconnection port, and the device name is unique.
[0070] Optionally, when the environment is first set up, a unique device name is determined for the network device on the communication link, thereby ensuring that the network device is named and the name is unique and not repeated. The environment configuration program can automatically obtain the device information of the network device on the communication link and form a corresponding network topology. The device information includes the device name and physical connection.
[0071] The network topology diagram can only be generated if the network devices have physical connections and device names. The first communication device, the second communication device, and the network device are used as nodes in the network topology diagram, and the names of the network devices are marked. The edges between the nodes in the network topology diagram are determined according to the physical connections of the network devices, so as to construct the network topology diagram, such as Figure 3 shown.
[0072] On the basis of the above embodiment, in this embodiment, configuring the interconnection address of the network device according to the network topology diagram includes:
[0073] In the case where there is a deviation between the network topology map and the actual network environment of the communication link, obtaining a modification operation of the user on the network topology map;
[0074] If there is a deviation between the generated network topology diagram and the actual network environment of the communication link, the network topology diagram can be manually modified.
[0075] Comparing the network topology diagram after the modification operation with the actual network environment;
[0076] After the modification is completed, the environment configuration program will compare and confirm the modified network topology diagram with the actual network environment.
[0077] When the network topology diagram after the modification operation is consistent with the actual network environment, the interconnection address of the network device is configured according to the network topology diagram after the modification operation.
[0078] If the network topology diagram after the modification operation is inconsistent with the actual network environment, an inconsistency prompt message will be displayed to allow the user to modify the network topology diagram again; if the two are consistent, the network device will be configured with reference to the network topology diagram.
[0079] On the basis of the above embodiment, in this embodiment, configuring the interconnection address of the network device according to the network topology diagram includes:
[0080] Obtaining the interconnection address of each network device on the communication link; if the interconnection address of any network device does not exist, configuring and issuing the interconnection address for any network device on the visual interface of the network topology map or in any network device;
[0081] If A and B are communicating at layer 3, you need to obtain the interconnection address of the network device on the communication link between A and B, such as Figure 4 If the network device has been configured with an interconnection address, the environment configuration program can read the interconnection address; if the network device has not been configured with an interconnection address, the configuration of the network device is issued through the visual network topology interface in the environment configuration program.
[0082] Confirm the interconnection address by clicking the network devices on the communication link in the network topology diagram in turn. Configure the routing information of the network device according to the source address, destination address and interconnection address, such as Figure 5 shown.
[0083] Configuring the interconnection ports of the network devices according to the network topology diagram includes:
[0084] Obtain the interconnection port of each network device on the communication link; if the interconnection port of any network device does not exist, configure and issue the interconnection port for any network device on the visual interface of the network topology map or in any network device.
[0085] If the communication between A and B is layer 2, you need to obtain the interconnection port of the network device on the communication link between A and B, such as Figure 6 If the network device has been configured with an interconnection port, the environment configuration program can read the interconnection port; if the network device has not been configured with an interconnection port, the configuration of the network device is issued through the visual network topology interface in the environment configuration program. Then the corresponding VLAN is transparently transmitted on the network device, such as Figure 7 shown.
[0086] This embodiment provides a visual operation interface for environment builders, simplifies the configuration operation process, has a fast response speed, and reduces the error rate of environment configuration and modification.
[0087] On the basis of the above embodiments, after the step of configuring a static route for the network device according to the source address and the destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device, the present embodiment further includes:
[0088] The information of the network device configured this time is retained;
[0089] Describing the actual network environment of the communication link;
[0090] The description information of the actual network environment and the retained information of the network device configured this time facilitate the subsequent restoration of the configuration of the network device.
[0091] After the information configuration of the communication link is completed, the configuration information of the network equipment on the communication link at a certain time node is retained using the environment retention program. The configuration of all communication equipment or only some area equipment can be captured.
[0092] At the same time, the current environment of the communication link, such as the current network connection status, can be described in text. The configuration information of the communication link and the current environment are stored in a document, and the document can be used to restore the configuration in the document at any subsequent time point. The environment retention program can also temporarily store several steps of the current operation, and quickly restore them if an error operation occurs.
[0093] This embodiment uses environment retention storage instead of documents to record environment configuration conditions, which can quickly restore the network environment configuration at a certain point in time, has a fast response speed, and can quickly restore the original environment.
[0094] On the basis of any of the above embodiments, after the step of configuring a static route for the network device according to the source address and the destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device, the present embodiment further includes:
[0095] The preset configuration information of the network device is compared with the information of the network device configured this time to check whether the information of the network device configured this time is correct.
[0096] After the initial configuration is completed, the visualization function of the auxiliary debugging program is used to display the configuration status of the current communication link, such as whether the configuration information has been sent and whether it is valid.
[0097] The preset configuration information of the network device is the information that the network device should be configured with. The information that the network device should be configured with is compared with the information configured this time to check whether the communication link is configured correctly.
[0098] If the communication link is configured correctly, the communication link will be displayed in green; if there is a physical connection error of the network device in the communication link or the configuration information is incorrect, an alarm message will be issued and the corresponding link interconnection position will be marked in red to assist project personnel in quickly locating the fault and conducting troubleshooting. A visual interface can be used to assist in troubleshooting network problems.
[0099] The complete flow chart of this embodiment is as follows Figure 8 As shown. First, generate a network topology diagram of the communication link, then determine whether the communication between A and B is three-layer communication or two-layer communication, and use corresponding methods to configure the network for the two different communication modes. After the configuration is completed, verify the configuration of the communication link to determine the correctness of the configuration, and save the existing configuration for restoration.
[0100] The urban rail shared test platform network configuration device provided by the present invention is described below. The urban rail shared test platform network configuration device described below and the urban rail shared test platform network configuration method described above can be referenced to each other.
[0101] like Fig. 9 As shown, the device includes a generation module 901, a first configuration module 902 and a second configuration module 903, wherein:
[0102] The generating module 901 is used to generate a network topology diagram according to network devices on a communication link between a first communication device and a second communication device; the first communication device and the second communication device are located in different areas;
[0103] The first configuration module 902 is used to configure the interconnection address of the network device according to the network topology diagram when the communication mode between the first communication device and the second communication device is three-layer communication, and configure a static route for the network device according to the source address and destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device;
[0104] The second configuration module 903 is used to configure the interconnection ports of the network device according to the network topology diagram when the communication mode is layer 2 communication, and to search for VLAN information of the communication network segment where the first communication device and the second communication device are located according to the area where the first communication device and the second communication device are located, and to transparently transmit the VLAN information on the network device.
[0105] This embodiment facilitates users to understand the environment by generating a network topology structure of the communication link between two communication devices. When the network environment changes, there is no need to spend a lot of time on preliminary environmental research. Different configuration methods are adopted according to different communication modes between communication devices to configure the network of the shared test platform, thereby expanding the scope of application. A semi-automatic network configuration method is adopted to simplify the network configuration process, improve configuration efficiency, make the operation more concise, and improve the accuracy of network configuration.
[0106] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor (processor) 1010, a communication interface (Communications Interface) 1020, a memory (memory) 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020, and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 can call the logic instructions in the memory 1030 to execute the network configuration method of the urban rail shared test platform, which includes: generating a network topology map according to the network devices on the communication link between the first communication device and the second communication device; the first communication device and the second communication device are located in areas where different networks are located; when the communication mode between the first communication device and the second communication device is three-layer communication, the interconnection address of the network device is configured according to the network topology map, and the static route is configured for the network device according to the source address, destination address and interconnection address provided by the first communication device and the second communication device and the network device; when the communication mode is two-layer communication, the interconnection port of the network device is configured according to the network topology map, and the VLAN information of the communication network segment where the first communication device and the second communication device are located is searched according to the area where the first communication device and the second communication device are located, and the VLAN information is transparently transmitted on the network device.
[0107] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0108] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the urban rail shared test platform network configuration method provided by the above methods, the method including: generating a network topology diagram according to the network devices on the communication link between the first communication device and the second communication device; the first communication device and the second communication device are located in areas where different networks are located; when the communication mode between the first communication device and the second communication device is three-layer communication, the interconnection address of the network device is configured according to the network topology diagram, and the static route is configured for the network device according to the source address, destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device; when the communication mode is two-layer communication, the interconnection port of the network device is configured according to the network topology diagram, and the VLAN information of the communication network segment where the first communication device and the second communication device are located is searched according to the area where the first communication device and the second communication device are located, and the VLAN information is transparently transmitted on the network device.
[0109] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the urban rail shared test platform network configuration method provided by the above methods, the method comprising: generating a network topology map according to the network devices on the communication link between the first communication device and the second communication device; the first communication device and the second communication device are located in areas where different networks are located; when the communication mode between the first communication device and the second communication device is three-layer communication, configuring the interconnection address of the network device according to the network topology map, and configuring static routing for the network device according to the source address, destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device; when the communication mode is two-layer communication, configuring the interconnection port of the network device according to the network topology map, and searching for VLAN information of the communication network segment where the first communication device and the second communication device are located according to the area where the first communication device and the second communication device are located, and transparently transmitting the VLAN information on the network device.
[0110] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0111] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for configuring a city rail shared test platform network, characterized in that: include: Generate a network topology diagram based on network devices on a communication link between the first communication device and the second communication device; The first communication device and the second communication device are located in different areas; In the case where the communication mode between the first communication device and the second communication device is three-layer communication, configuring the interconnection address of the network device according to the network topology diagram, and configuring a static route for the network device according to the source address and the destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device; In the case where the communication mode is layer 2 communication, configuring the interconnection ports of the network devices according to the network topology diagram, searching for VLAN information of the communication network segments where the first communication device and the second communication device are located according to the areas where the first communication device and the second communication device are located, and transparently transmitting the VLAN information on the network devices; The information of the network device configured this time is retained; Describing the actual network environment of the communication link; Restoring the configuration of the network device according to the description information of the actual network environment and the retained information of the network device configured this time; The configuring the interconnection address of the network device according to the network topology diagram includes: Obtaining the interconnection address of each network device on the communication link; If the interconnection address of any network device is not obtained, configuring and issuing the interconnection address for any network device on the visual interface of the network topology map or in any network device; Configuring the interconnection ports of the network devices according to the network topology diagram includes: Obtaining the interconnection port of each network device on the communication link; In the case that the interconnection port of any network device does not exist, an interconnection port is configured and issued for any network device on the visual interface of the network topology map or in any network device.
2. The urban rail shared test platform network configuration method according to claim 1, characterized in that: The generating of a network topology diagram according to network devices on a communication link between the first communication device and the second communication device comprises: In the case where there are multiple communication links between the first communication device and the second communication device, selecting a communication link from the multiple communication links; The network topology diagram is generated according to the physical connection and device name of the network device on the selected communication link; wherein the physical connection is the interconnection address or interconnection port, and the device name is unique.
3. The urban rail shared test platform network configuration method according to claim 1, characterized in that: Configuring the interconnection address of the network device according to the network topology diagram includes: In the case where there is a deviation between the network topology map and the actual network environment of the communication link, obtaining a modification operation of the user on the network topology map; Comparing the network topology diagram after the modification operation with the actual network environment; When the network topology diagram after the modification operation is consistent with the actual network environment, the interconnection address of the network device is configured according to the network topology diagram after the modification operation.
4. The urban rail shared test platform network configuration method according to any one of claims 1 to 3, characterized in that: After the step of configuring a static route for the network device according to the source address and the destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device, the method further includes: The preset configuration information of the network device is compared with the information of the network device configured this time to check whether the information of the network device configured this time is correct.
5. A network configuration device for a shared test platform for urban rail transit, characterized in that: include: A generating module, configured to generate a network topology diagram according to network devices on a communication link between the first communication device and the second communication device; The first communication device and the second communication device are located in different areas; A first configuration module is used to configure the interconnection address of the network device according to the network topology diagram when the communication mode between the first communication device and the second communication device is three-layer communication, and configure a static route for the network device according to the source address and destination address provided by the first communication device and the second communication device and the interconnection address provided by the network device; Configuring the interconnection address of the network device according to the network topology diagram includes: obtaining the interconnection address of each network device on the communication link; if the interconnection address of any network device is not obtained, configuring and issuing the interconnection address for any network device on the visual interface of the network topology diagram or in any network device; The second configuration module is used to configure the interconnection ports of the network devices according to the network topology diagram when the communication mode is layer 2 communication, search for VLAN information of the communication network segment where the first communication device and the second communication device are located according to the area where the first communication device and the second communication device are located, and transparently transmit the VLAN information on the network device; retain the information of the network device configured this time; describe the actual network environment of the communication link; restore the configuration of the network device according to the description information of the actual network environment and the retained information of the network device configured this time; configuring the interconnection ports of the network devices according to the network topology diagram includes: obtaining the interconnection ports of each network device on the communication link; and configuring and issuing the interconnection ports for any network device on the visual interface of the network topology diagram or in any network device when the interconnection ports of any network device do not exist.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the urban rail shared test platform network configuration method as described in any one of claims 1 to 4 is implemented.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the network configuration method of the urban rail shared test platform as described in any one of claims 1 to 4 is implemented.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the network configuration method of the urban rail shared test platform as described in any one of claims 1 to 4 is implemented.