Topological structure scanning method and device of SRB network, electronic equipment and storage medium
By obtaining and analyzing the MAC address and MAC values of the SRB network node equipment, determining that the topology of the SRB network is linear or ring topology, it solves the problem that existing tools cannot be applied and improves network design and maintenance efficiency.
Patent Information
- Application Number
- CN202510800528.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2025-08-15
AI Technical Summary
The existing topology scanning tools cannot be directly applicable to SRB networks, resulting in the inability to effectively determine the topology of the SRB network.
By obtaining the MAC address and stored MAC value of each node device, traversing each node device, determining the topology of the SRB network based on the number of MAC values and the correspondence between the MAC addresses, which is a linear topology or a ring topology.
It realizes effective determination of the SRB network topology, improves the efficiency of network design, maintenance and optimization, reduces costs and improves the scalability of the network.
Smart Images

Figure CN120499012A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of bus network technology, and more specifically, to a method, device, electronic device, and storage medium for scanning the topology of an SRB network. Background Art
[0002] Determining the topology of a bus network is crucial for network design, maintenance, and optimization. It not only impacts network performance and reliability but also directly impacts cost-effectiveness and future scalability. Existing topology scanning tools are not directly applicable to SRB (Security Real-time Bus) networks, making it difficult to effectively determine the network's topology. Summary of the Invention
[0003] In view of this, the present application provides a method, device, electronic device and storage medium for scanning the topology of an SRB network, which are used to effectively determine the topology of the SRB network.
[0004] In order to achieve the above objectives, the following solutions are proposed:
[0005] A topology scanning method for an SRB network is applied to an electronic device and is used to scan the topology of the SRB network. The SRB network includes multiple node devices. The topology scanning method includes the following steps:
[0006] Obtaining the MAC address and stored MAC value of each of the node devices;
[0007] Each of the node devices is traversed, and a topology of the SRB network is determined according to the number of MAC values of the node devices and the correspondence between the MAC values and the MAC addresses, where the topology is a linear topology or a ring topology.
[0008] Optionally, traversing each of the node devices and determining the topology of the SRB network according to the number of MAC values of the node devices and the correspondence between the MAC values and the MAC addresses includes the steps of:
[0009] Determine, based on the correspondence between the number of the MAC values and the MAC addresses, traversing all the node devices to determine whether an end node exists in all the node devices;
[0010] If the end node exists, determining that the topology is a linear topology;
[0011] If the end node does not exist, it is determined that the topology is a ring topology.
[0012] Optionally, traversing all the node devices according to the correspondence between the number of the MAC values and the MAC addresses to determine whether an end node exists in all the node devices includes the steps of:
[0013] Selecting one of the node devices as the current node device from all the node devices;
[0014] Determine whether the current node device stores one MAC value or two MAC values;
[0015] If the current node device only stores one MAC value, the current node device is determined to be the end node, and the process ends;
[0016] If the current node device stores two MAC values, and each MAC value corresponds to a MAC address of another node device connected to the current node, determining whether the another node device is the initially selected current node device;
[0017] If it is the initially selected current node device, it is determined that the end node does not exist and the process ends;
[0018] If it is not the initially determined current node device, the other node device is determined as the current node device, and the process returns to the step of determining whether the current node device stores one MAC value or two MAC values.
[0019] Optionally, the number of the node devices is greater than or equal to 3.
[0020] A topology scanning device for an SRB network is applied to an electronic device and is used to scan the topology of the SRB network. The SRB network includes multiple node devices. The topology scanning device includes:
[0021] A parameter acquisition module is configured to obtain the MAC address and stored MAC value of each node device;
[0022] The scanning execution module is configured to traverse each of the node devices and determine the topology of the SRB network according to the number of MAC values of the node devices and the correspondence between the MAC values and the MAC addresses, where the topology is a linear topology or a ring topology.
[0023] Optionally, the scanning execution module includes:
[0024] an end node determining unit, configured to determine, based on a correspondence between the number of the MAC values and the MAC addresses, traverse all the node devices to determine whether an end node exists in all the node devices;
[0025] a first determining unit configured to determine that the topology is a linear topology if the end node exists;
[0026] The second determining unit is configured to determine that the topology is a ring topology if the end node does not exist.
[0027] Optionally, the end node determination unit is configured to:
[0028] Selecting one of the node devices as the current node device from all the node devices;
[0029] Determine whether the current node device stores one MAC value or two MAC values;
[0030] If the current node device only stores one MAC value, the current node device is determined to be the end node, and the process ends;
[0031] If the current node device stores two MAC values, and each MAC value corresponds to a MAC address of another node device connected to the current node, determining whether the another node device is the initially selected current node device;
[0032] If it is the initially selected current node device, it is determined that the end node does not exist and the process ends;
[0033] If it is not the initially determined current node device, the other node device is determined as the current node device, and the process returns to the step of determining whether the current node device stores one MAC value or two MAC values.
[0034] Optionally, the number of the node devices is greater than or equal to 3.
[0035] An electronic device comprising at least one processor and a memory connected to the processor, wherein:
[0036] The memory is used to store computer programs or instructions;
[0037] The processor is configured to execute the computer program or instruction so as to enable the electronic device to implement the topology structure scanning method as described above.
[0038] A computer-readable storage medium is applied to an electronic device, wherein the storage medium carries one or more computer programs, and the one or more computer programs can be executed by the electronic device, thereby enabling the electronic device to implement the topology structure scanning method described above.
[0039] As can be seen from the above technical solutions, the present application discloses a method, device, electronic device, and storage medium for scanning the topology of an SRB network. The method and device are applied to an electronic device and are used to scan the topology of an SRB network, which includes multiple node devices. The topology scanning method or device obtains the MAC address and stored MAC value of each node device; traverses each node device, and determines the topology of the SRB network based on the number of MAC values of the node device and the correspondence between the MAC value and the MAC address, thereby determining whether the topology of the SRB network is a linear topology or a ring topology. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in 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 only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0041] Figure 1 A schematic diagram of a topological structure of an SRB network;
[0042] Figure 2 A schematic diagram of another SRB network topology;
[0043] Figure 3 A flowchart of a topology scanning method according to an embodiment of the application;
[0044] Figure 4 A flowchart of determining the topology of an SRB network according to an embodiment of the application;
[0045] Figure 5 This is a flowchart of determining an end node of an SRB network according to an embodiment of the present application;
[0046] Figure 6 A block diagram of a topology scanning device according to an embodiment of the application;
[0047] Figure 7 A block diagram of another topology scanning device according to an embodiment of the application;
[0048] Figure 8 A block diagram of an electronic device according to an embodiment of the application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0050] SRB network generally includes multiple node devices. It is meaningful to determine whether it is a ring topology or a linear topology only when the number of node devices is more than 3. For example, when there are only two node devices, it can only be a linear topology. For example, when the number of node devices is 3, the MAC address of each node device is 00:00:00:00:01:01, 00:00:00:00:01:02 and 00:00:00:00:01:03. Each node device will store a corresponding MAC value. One MAC value corresponds to the MAC address of a node device connected to it. When the three node devices are in a linear topology, their connection method is as follows: Figure 1 As shown, when the three node devices are ring topology devices, their connection method is as follows Figure 2 Based on the above premise, the present application provides the following specific embodiments to determine the specific topology of the SRB network.
[0051] Figure 3 This is a flowchart of a topology structure scanning method according to an embodiment of the present application.
[0052] like Figure 3 As shown, the topology structure scanning method provided by this application is applied to electronic devices, which can be understood as computers, servers, embedded devices, mobile devices or cloud platforms with data computing and information processing capabilities. The topology structure scanning method of this application is specifically described as follows:
[0053] S1. Obtain the MAC address and stored MAC value of each node device.
[0054] By sending broadcast messages, the MAC address of each node device is collected, and the MAC value stored by each node device is obtained. The MAC value here is the MAC address of the node device to which the node device is connected. For example, if node device 1 is connected to node device 2 and node device 3, the MAC value stored in it is the MAC address of node device 3 and node device 3.
[0055] S2. Determine the topology of the SRB network by traversing each node device.
[0056] Specifically, by traversing all node devices in turn, it is determined whether there is an end node based on the MAC address of each power-saving device and its stored MAC value. If it exists, it indicates that the SRB network is a linear topology structure, otherwise it indicates that the SRB network is a ring topology structure. The specific process is as follows Figure 4 As shown:
[0057] S201: Determine whether there is an end node among all node devices.
[0058] All node devices are judged in turn using preset rules to determine whether there is an end node. The so-called end node refers to a node device with only one port connected to another node device and the other port is left unconnected.
[0059] S202: If there are end nodes, it is determined to be a linear topology structure.
[0060] That is, if the above determination shows that there is an end node among all the node devices, it indicates that the topology of the SRB network is a linear topology. Generally speaking, there should be two end nodes, thus forming a linear topology with end nodes as both ends.
[0061] S202: If no end node exists, determine that the topology is a ring structure.
[0062] That is, if, after the above determination, no end node exists in all the node devices, it indicates that the topology of the SRB network is a ring topology.
[0063] In this embodiment, the determination of whether the end node exists is realized based on the following method: Figure 5 shown.
[0064] S2011. Determine the current node device.
[0065] A node device is selected from all node devices as the current node device. The current node device is any one of all node devices, which can be at the end or in the middle, that is, both ports of the current node device are connected to a node device.
[0066] S2012. Determine whether the current node device only stores one MAC value.
[0067] That is, the MAC value of each node device is determined to determine whether it has one MAC value or two MAC values. If it has one MAC value, the subsequent step S2013 is executed; if it has two MAC values, the subsequent step S2014 is executed.
[0068] S2013. Determine that the current node device is an end node.
[0069] That is, if it is found that the current node device only stores one MAC value, then the node device is determined to be an end node. In this case, the current process ends.
[0070] S2014: Determine whether the other node device is the original current node device.
[0071] If the current node device stores two MAC values, and each MAC value corresponds to a MAC address of another node device connected to the current node, it is determined whether the other node device is the original current node device.
[0072] S2015. Determine another node device as the current node device.
[0073] If it is not the initially selected current node device, the other node device is determined as the current node device, and the process returns to step S2012, ie, the step of determining whether the current node device stores one MAC value or two MAC values.
[0074] S2016: Determine that no end node exists.
[0075] If the other node device is the initially selected current node device, it is determined that no end node exists, and this process ends.
[0076] As can be seen from the above technical solution, this embodiment provides a method for scanning the topology of an SRB network. The method is applied to an electronic device and is used to scan the topology of an SRB network, which includes multiple node devices. The topology scanning method obtains the MAC address and stored MAC value of each node device; traverses each node device, and determines the topology of the SRB network based on the number of MAC values of the node device and the correspondence between the MAC value and the MAC address, thereby determining whether the topology of the SRB network is a linear topology or a ring topology.
[0077] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0078] Although the operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.
[0079] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0080] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as C or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.
[0081] Figure 6 This is a block diagram of a topology scanning device according to an embodiment of the present application.
[0082] like Figure 6As shown, the topology structure scanning device provided by the present application is applied to an electronic device, which can be understood as a computer, server, embedded device, mobile device or cloud platform with data computing and information processing capabilities. The topology structure scanning device of the present application specifically includes a parameter acquisition module 10 and a scanning execution module 20.
[0083] The parameter acquisition module is used to obtain the MAC address and stored MAC value of each node device.
[0084] By sending broadcast messages, the MAC address of each node device is collected, and the MAC value stored by each node device is obtained. The MAC value here is the MAC address of the node device to which the node device is connected. For example, if node device 1 is connected to node device 2 and node device 3, the MAC value stored in it is the MAC address of node device 3 and node device 3.
[0085] The scanning execution module is used to determine the topology of the SRB network by traversing each node device.
[0086] Specifically, by traversing all node devices in sequence, it is determined whether an end node exists based on the MAC address of each power-saving device and its stored MAC value. If it exists, it indicates that the SRB network is a linear topology structure, otherwise it indicates that the SRB network is a ring topology structure. The module specifically includes an end node determination unit 21, a first determination unit 22, and a second determination unit 23, such as Figure 7 shown.
[0087] The end node determination unit is used to determine whether an end node exists in all node devices.
[0088] All node devices are judged in turn using preset rules to determine whether there is an end node. The so-called end node refers to a node device with only one port connected to another node device and the other port is left unconnected.
[0089] The first determining unit is configured to determine that the topology is a linear structure if an end node exists.
[0090] That is, if the above determination shows that there is an end node among all the node devices, it indicates that the topology of the SRB network is a linear topology. Generally speaking, there should be two end nodes, thus forming a linear topology with end nodes as both ends.
[0091] The second determining unit is configured to determine that the topology is a ring structure if no end node exists.
[0092] That is, if, after the above determination, no end node exists in all the node devices, it indicates that the topology of the SRB network is a ring topology.
[0093] In this embodiment, the end node determination unit determines whether the end node exists based on the above steps S2011 to S2016, which will not be repeated here.
[0094] As can be seen from the above technical solution, this embodiment provides a topology scanning device for an SRB network. The device is applied to an electronic device and is used to scan the topology of an SRB network, which includes multiple node devices. The topology scanning device is used to obtain the MAC address and stored MAC value of each node device; traverse each node device, and determine the topology of the SRB network based on the number of MAC values of the node device and the correspondence between the MAC value and the MAC address, thereby determining whether the topology of the SRB network is a linear topology or a ring topology.
[0095] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0096] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0097] Figure 8 This is a block diagram of an electronic device according to an embodiment of the present application.
[0098] Reference below Figure 8 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. This electronic device is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0099] The electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory ROM 802 or a program loaded from an input device 806 into a random access memory RAM 803. Various programs and data required for the operation of the electronic device are also stored in the RAM. The processing device, ROM, and RAM are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0100] Typically, the following devices may be connected to the I / O interface: input devices such as a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 such as a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 808 such as a magnetic tape, hard disk, etc.; and communication devices 809. Communication devices 809 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0101] The present application also provides a computer-readable storage medium embodiment.
[0102] The computer-readable storage medium is applied to an electronic device and carries one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device performs a topology scanning method. This method is applied to the electronic device and is used to scan the topology of an SRB network, which includes multiple node devices. The topology scanning method comprises obtaining the MAC address and stored MAC value of each node device; traversing each node device, and determining the topology of the SRB network based on the number of MAC values of the node device and the correspondence between the MAC value and the MAC address, thereby determining whether the topology of the SRB network is a linear topology or a ring topology.
[0103] It should be noted that the computer-readable medium disclosed herein may be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0104] In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
[0105] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0106] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0107] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.
[0108] The technical solution provided by the present invention is introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for scanning the topology of an SRB network, applied to an electronic device, for scanning the topology of an SRB network, wherein the SRB network includes a plurality of node devices, and wherein: The topology structure scanning method comprises the steps of: Obtaining the MAC address and stored MAC value of each of the node devices; Each of the node devices is traversed, and a topology of the SRB network is determined according to the number of MAC values of the node devices and the correspondence between the MAC values and the MAC addresses, where the topology is a linear topology or a ring topology.
2. The topology structure scanning method according to claim 1, wherein: The traversing each of the node devices and determining the topology of the SRB network according to the number of MAC values of the node devices and the correspondence between the MAC values and the MAC addresses comprises the steps of: Determine, based on the correspondence between the number of the MAC values and the MAC addresses, traversing all the node devices to determine whether an end node exists in all the node devices; If the end node exists, determining that the topology is a linear topology; If the end node does not exist, it is determined that the topology is a ring topology.
3. The topology structure scanning method according to claim 2, wherein: The step of traversing all the node devices according to the correspondence between the number of the MAC values and the MAC addresses to determine whether an end node exists in all the node devices comprises the following steps: Selecting one of the node devices as the current node device from all the node devices; Determine whether the current node device stores one MAC value or two MAC values; If the current node device only stores one MAC value, the current node device is determined to be the end node, and the process ends; If the current node device stores two MAC values, and each MAC value corresponds to a MAC address of another node device connected to the current node, determining whether the other node device is the initially selected current node device; If it is the initially selected current node device, it is determined that the end node does not exist and the process ends; If it is not the initially determined current node device, the other node device is determined as the current node device, and the process returns to the step of determining whether the current node device stores one MAC value or two MAC values.
4. The topology structure scanning method according to claim 1, wherein: The number of the node devices is greater than or equal to 3.
5. A topology scanning device for an SRB network, applied to an electronic device, for scanning the topology of an SRB network, wherein the SRB network includes a plurality of node devices, characterized in that: The topology scanning device comprises: A parameter acquisition module is configured to obtain the MAC address and stored MAC value of each node device; The scanning execution module is configured to traverse each of the node devices and determine the topology of the SRB network according to the number of MAC values of the node devices and the correspondence between the MAC values and the MAC addresses, where the topology is a linear topology or a ring topology.
6. The topology structure scanning device according to claim 5, characterized in that: The scanning execution module includes: an end node determining unit, configured to determine, based on a correspondence between the number of the MAC values and the MAC addresses, traverse all the node devices to determine whether an end node exists in all the node devices; a first determining unit configured to determine that the topology is a linear topology if the end node exists; The second determining unit is configured to determine that the topology is a ring topology if the end node does not exist.
7. The topology structure scanning device according to claim 6, characterized in that: The end node determination unit is configured to: Selecting one of the node devices as the current node device from all the node devices; Determine whether the current node device stores one MAC value or two MAC values; If the current node device only stores one MAC value, the current node device is determined to be the end node, and the process ends; If the current node device stores two MAC values, and each MAC value corresponds to a MAC address of another node device connected to the current node, determining whether the other node device is the initially selected current node device; If it is the initially selected current node device, it is determined that the end node does not exist and the process ends; If it is not the initially determined current node device, the other node device is determined as the current node device, and the process returns to the step of determining whether the current node device stores one MAC value or two MAC values.
8. The topology structure scanning device according to claim 5, characterized in that: The number of the node devices is greater than or equal to 3.
9. An electronic device, characterized in that: The electronic device comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs or instructions; The processor is configured to execute the computer program or instruction, so as to enable the electronic device to implement the topology structure scanning method according to any one of claims 1 to 4.
10. A computer-readable storage medium, applied to an electronic device, characterized in that: The storage medium carries one or more computer programs, and the one or more computer programs can be executed by the electronic device, so that the electronic device can implement the topology structure scanning method according to any one of claims 1 to 4.