A method and device for generating connection lines using abstract physical ports
Through the abstract physical wiring methods of equipment, a wiring model of multiple wiring rules and connection methods was established, which solved the problem of inconsistent and complicated wiring in the computer room construction, achieved rapid and unified wiring effects, and improved the efficiency of computer room launch.
Patent Information
- Application Number
- CN202411776794.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-04-04
AI Technical Summary
The prior art is difficult to describe the wiring logic of all cloud products in a unified way, resulting in inconsistent wiring, complex and inefficient wiring during computer room construction.
By abstracting the physical wiring methods of existing equipment, establishing a wiring model containing a variety of wiring rules and connection methods, and generating a port wiring table based on the construction needs of the project products.
It has achieved simplified wiring links, rapid construction, and unified wiring effect, improving the efficiency of computer room launch.
Smart Images

Figure CN119766757A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network and computer room management, and in particular to a method and device for generating a connection using an abstract physical port. Background Art
[0002] At present, the connection methods between servers and network devices or between network devices are complicated. Different cloud product models, different hardware configurations, and port conditions are different. It is currently difficult to describe the wiring logic of all products in a unified way, resulting in inconsistent, complicated and inefficient wiring during the construction of the computer room. Summary of the invention
[0003] The present application shows a method and device for abstracting physical ports to generate connections.
[0004] In a first aspect, the present application shows a method for abstracting a physical port to generate a connection, the method comprising:
[0005] Abstracting the physical wiring mode of existing equipment to establish a wiring model, wherein the wiring model includes multiple wiring rules and multiple connection methods;
[0006] Determine the wiring rules and corresponding connection methods of the project product from the wiring model based on the construction requirements specification of the project product;
[0007] Automatically generate the port wiring table based on the project product's wiring rules and corresponding connection methods.
[0008] According to the method of the first aspect of the present application, the wiring model includes 14 wiring rules and two connection methods;
[0009] Among them, the 14 wiring rules are rules 1 to 6 for core switch roles, rules 7 to 12 for aggregation switch roles or access switch roles, and rules 13 and 14 for server roles;
[0010] There are two connection methods: server connection and network device connection.
[0011] According to the method of the first aspect of the present application, the 14 wiring rules included in the wiring model are specifically:
[0012] Rule 1: The first priority is to connect boards on the same device, the second priority is to connect devices on peer relationships, and the device port wiring sequence is in positive order;
[0013] Rule 2: The first priority is to connect boards on the same device, the second priority is to connect devices on peer relationships, and the device port wiring sequence is in reverse order;
[0014] Rule 3: The first priority is to connect devices across peer relationships, the second priority is to connect boards across the same device, and the order of device port wiring is in positive order;
[0015] Rule 4: The first priority is to connect devices across peer relationships, the second priority is to connect boards across the same device, and the order of device port wiring is in reverse order;
[0016] Rule 5: Prioritize connections across the same device board, and then connect across peer devices after they are full. Device ports use single-device positive sequence wiring.
[0017] Rule 6: Prioritize connecting boards on the same device first, and then connect to peer devices after they are full. Device ports should be connected in reverse order of a single device.
[0018] Rule 7: Device ports are wired from left to right. After a single device is fully connected, cross-peer devices are wired.
[0019] Rule 8: Device ports are wired from right to left. After a single device is fully connected, cross-peer devices are wired.
[0020] Rule 9: Use half of the number of wires as the dividing line, and connect devices across peer relationships in positive sequence;
[0021] Rule 10: The number of devices connected across peer relationships is divided into half, and the devices are connected in reverse order;
[0022] Rule 11: The first priority is the device with a cross-peer relationship, and the next port in the natural order of the same board is the second priority. The device port wiring sequence is in positive order;
[0023] Rule 12: The first priority is the device with a cross-peer relationship, the second priority is the next port in the natural order of the same board, and the device port wiring order is in reverse order;
[0024] Rule 13: In bond grouping, the first priority is the same PCI port, and after selecting half of the selected number, the second priority is the cross-PCI port;
[0025] Rule 14: In bond grouping, different PCI ports are given the first priority. After selecting half of the selected number, return to the first PCI device and continue to select the remaining ports.
[0026] According to the method of the first aspect of the present application, determining the wiring rules and corresponding connection methods of the project product from the wiring model based on the construction requirements specification of the project product specifically includes:
[0027] Analyze the construction requirements specification of the project product to determine the roles of various types of construction equipment included in the project product;
[0028] The wiring rules and connection methods of each type of construction equipment role included in the project product are determined from the wiring model to obtain the wiring rules and corresponding connection methods of the project product.
[0029] According to the method of the first aspect of the present application, the wiring rules and connection methods of each type of construction equipment role included in the project product are determined from the wiring model to obtain the wiring rules and corresponding connection methods of the project product, specifically:
[0030] When the construction equipment role is a core switch role, a wiring rule is selected from rules 1 to 6 in the wiring model, and a corresponding connection method is determined to be a network equipment connection method;
[0031] When the construction equipment role is a convergence switch role or an access switch role, a wiring rule is selected from rules 7 to 12 in the wiring model, and the corresponding connection method is determined to be a network equipment connection method;
[0032] When the construction equipment role is a server-type role, a wiring rule is selected from rule 13 and rule 14 in the wiring model, and the corresponding connection method is determined to be a server connection method.
[0033] According to the method of the first aspect of the present application, the automatic generation of a port wiring table based on the wiring rules and corresponding connection methods of the project product specifically includes:
[0034] Generate port rules based on the wiring rules of the project product;
[0035] Generate a connection rule table based on the port rules and corresponding connection methods;
[0036] The port wiring table is automatically generated based on the connection rule table.
[0037] In a second aspect, the present application shows a device for abstracting a physical port to generate a connection, the device comprising:
[0038] The first processing module is configured to abstract the physical wiring mode of the existing equipment to establish a wiring model, wherein the wiring model includes multiple wiring rules and multiple connection methods;
[0039] A second processing module is configured to determine the wiring rules and corresponding connection methods of the project product from the wiring model based on the construction requirement specification of the project product;
[0040] The third processing module is configured to automatically generate a port wiring table according to the wiring rules and corresponding connection methods of the project product.
[0041] According to the device of the second aspect of the present application, the wiring model includes 14 wiring rules and two connection methods;
[0042] Among them, the 14 wiring rules are rules 1 to 6 for core switch roles, rules 7 to 12 for aggregation switch roles or access switch roles, and rules 13 and 14 for server roles;
[0043] There are two connection methods: server connection and network device connection.
[0044] According to the device of the second aspect of the present application, the 14 wiring rules included in the wiring model are specifically:
[0045] Rule 1: The first priority is to connect boards on the same device, the second priority is to connect devices on peer relationships, and the device port wiring sequence is in positive order;
[0046] Rule 2: The first priority is to connect boards on the same device, the second priority is to connect devices on peer relationships, and the device port wiring sequence is in reverse order;
[0047] Rule 3: The first priority is to connect devices across peer relationships, the second priority is to connect boards across the same device, and the order of device port wiring is in positive order;
[0048] Rule 4: The first priority is to connect devices across peer relationships, the second priority is to connect boards across the same device, and the order of device port wiring is in reverse order;
[0049] Rule 5: Prioritize connections across the same device board, and then connect across peer devices after they are full. Device ports use single-device positive sequence wiring.
[0050] Rule 6: Prioritize connecting boards on the same device first, and then connect to peer devices after they are full. Device ports should be connected in reverse order of a single device.
[0051] Rule 7: Device ports are wired from left to right. After a single device is fully connected, cross-peer devices are wired.
[0052] Rule 8: Device ports are wired from right to left. After a single device is fully connected, cross-peer devices are wired.
[0053] Rule 9: Use half of the number of wires as the dividing line, and connect devices across peer relationships in positive sequence;
[0054] Rule 10: The number of devices connected across peer relationships is divided into half, and the devices are connected in reverse order;
[0055] Rule 11: The first priority is the device with a cross-peer relationship, and the next port in the natural order of the same board is the second priority. The device port wiring sequence is in positive order;
[0056] Rule 12: The first priority is the device with a cross-peer relationship, the second priority is the next port in the natural order of the same board, and the device port wiring order is in reverse order;
[0057] Rule 13: In bond grouping, the first priority is the same PCI port, and after selecting half of the selected number, the second priority is the cross-PCI port;
[0058] Rule 14: In bond grouping, different PCI ports are given the first priority. After selecting half of the selected number, return to the first PCI device and continue to select the remaining ports.
[0059] According to the device of the second aspect of the present application, the second processing module specifically includes:
[0060] The decomposition unit is configured to analyze the construction requirement specification of the project product to determine the roles of various types of construction equipment included in the project product;
[0061] The determination unit is configured to determine the wiring rules and connection methods of each type of construction equipment role included in the project product from the wiring model to obtain the wiring rules and corresponding connection methods of the project product.
[0062] According to the device of the second aspect of the present application, the determining unit is specifically configured to:
[0063] When the construction equipment role is a core switch role, a wiring rule is selected from rules 1 to 6 in the wiring model, and a corresponding connection method is determined to be a network equipment connection method;
[0064] When the construction equipment role is a convergence switch role or an access switch role, a wiring rule is selected from rules 7 to 12 in the wiring model, and the corresponding connection method is determined to be a network equipment connection method;
[0065] When the construction equipment role is a server-type role, a wiring rule is selected from rule 13 and rule 14 in the wiring model, and the corresponding connection method is determined to be a server connection method.
[0066] According to the device of the second aspect of the present application, the third processing module specifically includes:
[0067] The first generating unit is configured to generate a port rule according to a wiring rule of a project product;
[0068] A second generating unit is configured to generate a connection rule table based on the port rule and the corresponding connection method;
[0069] The third generating unit is configured to automatically generate the port wiring table based on the connection rule table.
[0070] In a third aspect, the present application shows an electronic device, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute the method for generating connections by abstracting physical ports as described in any of the above aspects.
[0071] In a fourth aspect, the present application shows a computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method for generating connections by abstracting physical ports as described in any of the above aspects.
[0072] In a fifth aspect, the present application shows a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device can execute the method for generating connections by abstracting physical ports as described in any of the above aspects.
[0073] The technical solution provided by this application may have the following beneficial effects:
[0074] The method for generating connections by abstracting physical ports in the present application describes the wiring scenarios encountered in almost all project products through an abstract wiring model that includes a variety of wiring rules and methods. It uses a universal and unified abstract model to clearly describe the wiring methods of all products, simplify the wiring links, realize rapid construction, and achieve a unified wiring effect, thereby improving the efficiency of racking in the computer room. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 This is a step flow of a method for abstracting physical ports to generate connections in this application Figure 1 .
[0076] Figure 2 The diagram is a schematic diagram of Rule 1 of a method for generating lines from abstract physical ports of the present application.
[0077] Figure 3 This is a schematic diagram of Rule 2 of a method for generating lines from abstract physical ports in the present application.
[0078] Figure 4 This is a schematic diagram of Rule 3 of a method for abstracting physical ports to generate connections in the present application.
[0079] Figure 5 This is a schematic diagram of Rule 4 of a method for abstracting physical ports to generate connections in the present application.
[0080] Figure 6 This is a schematic diagram of Rule 5 of a method for generating lines from abstract physical ports in the present application.
[0081] Figure 7This is a schematic diagram of Rule 6 of a method for generating lines from abstract physical ports in the present application.
[0082] Figure 8 This is a schematic diagram of Rule 7 of a method for generating lines from abstract physical ports in the present application.
[0083] Fig. 9 This is a schematic diagram of Rule 8 of a method for abstracting physical ports to generate connections in the present application.
[0084] Fig.10 This is a schematic diagram of Rule 9 of a method for abstracting physical ports to generate connections in the present application.
[0085] Fig.11 It is a schematic diagram of rule 10 of a method for generating lines from abstract physical ports of the present application.
[0086] Fig.12 It is a schematic diagram of rule 11 of a method for generating lines from abstract physical ports of the present application.
[0087] Fig.13 It is a schematic diagram of rule 12 of a method for generating lines by abstracting physical ports in the present application.
[0088] Fig.14 This is a schematic diagram of rule 13 of a method for generating lines from abstract physical ports in the present application.
[0089] Fig.15 This is a schematic diagram of rule 14 of a method for generating lines from abstract physical ports in the present application.
[0090] Fig.16 A schematic diagram of a server connection method for generating a connection using an abstract physical port according to the present application.
[0091] Fig.17 A schematic diagram of a network device connection method for generating a connection using an abstract physical port in the present application.
[0092] Fig.18 The following is a step flow of a method for generating a connection using an abstract physical port in this application. Figure 2 .
[0093] Fig.19 This is an example diagram of a method for abstracting physical ports to generate connections according to the present application.
[0094] Fig. 20 This is a structural block diagram of a device for abstracting physical ports to generate connections in the present application.
[0095] Fig.21It is a block diagram of an electronic device of the present application.
[0096] Fig. 22 It is a block diagram of a computer storage medium of the present application. DETAILED DESCRIPTION
[0097] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0098] Glossary:
[0099] Port: In this application, port refers specifically to the network port on the server and network equipment, such as the network port on the network card, or the network port on the switch, and also includes management port, fiber optic port, heartbeat port, etc.
[0100] Connection method: Between different devices, the order of selecting ports and wiring constitutes a concept of connection method as a whole.
[0101] Bond: A mode of bonding different network cards in a physical server; bond technology is a network technology that is mainly used to combine multiple physical network interfaces (such as Ethernet interfaces) into a logical interface to increase bandwidth, improve network performance, and achieve load balancing and redundant backup. Bond technology is also called link aggregation, port bonding, or interface bonding.
[0102] Board: A board plugged into a device, such as a network board on a switch motherboard or a network card plugged into a server.
[0103] Frame: The outer frame of a modular switch.
[0104] Peer relationship: The same devices that have a stacking or MLAG (multi-chassis link aggregation)-like relationship are temporarily referred to as peer relationships in this application; peer in the computer field mainly refers to nodes in a peer-to-peer network. These nodes have the same operating permissions and functions, can communicate directly and share resources, and improve the efficiency and flexibility of the network.
[0105] Cross-board: jump selection between different boards of the switch.
[0106] Cross-frame: Jump selection between peer relationship individuals on different switches.
[0107] Connection rules: Rules derived from experience that indicate the legality and sequence of connections between source and target devices.
[0108] Reference Figure 1 , shows a flowchart of a method for abstracting a physical port to generate a connection in the present application, the method can be applied to an electronic device, wherein the method specifically may include the following steps:
[0109] Step 101: abstracting the physical wiring mode of existing equipment to establish a wiring model, wherein the wiring model includes multiple wiring rules and multiple connection methods;
[0110] Step 102: Determine the wiring rules and corresponding connection methods of the project product from the wiring model based on the construction requirement specification of the project product;
[0111] Step 103: Automatically generate a port wiring table based on the wiring rules and corresponding connection methods of the project product.
[0112] In step 101, the physical wiring mode of existing equipment is abstracted to establish a wiring model, wherein the wiring model includes multiple wiring rules and multiple connection methods.
[0113] It should be noted that in this embodiment, technical personnel in this field can use their experience to abstractly summarize the physical wiring method of the equipment and organize the wiring rules and connection methods contained in the wiring model. Of course, they can also use intelligent analysis software to analyze the port wiring table of existing project products to obtain the wiring rules and connection methods contained in the wiring model. This application does not limit this.
[0114] In some embodiments, the wiring model in the method for abstracting physical ports to generate connections in the present application includes 14 wiring rules and two connection methods; wherein the 14 wiring rules are rules 1 to 6 for core switch class roles, rules 7 to 12 for aggregation switch class roles or access switch class roles, and rules 13 and 14 for server class roles; wherein the two connection methods are a server connection method and a network device connection method.
[0115] It should be noted that the wiring model organized in this embodiment includes 14 rules and two connection methods. Of course, it can also be divided into other numbers of rules and connection methods according to different classification methods, which are not listed here one by one.
[0116] In some embodiments, the 14 wiring rules included in the wiring model in the method for abstracting physical ports to generate wiring in the present application are specifically:
[0117] Rule 1: The first priority is to connect boards on the same device, the second priority is to connect devices on peer relationships, and the device port wiring sequence is in positive order;
[0118] Rule 2: The first priority is to connect boards on the same device, the second priority is to connect devices on peer relationships, and the device port wiring sequence is in reverse order;
[0119] Rule 3: The first priority is to connect devices across peer relationships, the second priority is to connect boards across the same device, and the order of device port wiring is in positive order;
[0120] Rule 4: The first priority is to connect devices across peer relationships, the second priority is to connect boards across the same device, and the order of device port wiring is in reverse order;
[0121] Rule 5: Prioritize connections across the same device board, and then connect across peer devices after they are full. Device ports use single-device positive sequence wiring.
[0122] Rule 6: Prioritize connecting boards on the same device first, and then connect to peer devices after they are full. Device ports should be connected in reverse order of a single device.
[0123] Rule 7: Device ports are wired from left to right. After a single device is fully connected, cross-peer devices are wired.
[0124] Rule 8: Device ports are wired from right to left. After a single device is fully connected, cross-peer devices are wired.
[0125] Rule 9: Use half of the number of wires as the dividing line, and connect devices across peer relationships in positive sequence;
[0126] Rule 10: The number of devices connected across peer relationships is divided into half, and the devices are connected in reverse order;
[0127] Rule 11: The first priority is the device with a cross-peer relationship, and the next port in the natural order of the same board is the second priority. The device port wiring sequence is in positive order;
[0128] Rule 12: The first priority is the device with a cross-peer relationship, the second priority is the next port in the natural order of the same board, and the device port wiring order is in reverse order;
[0129] Rule 13: In bond grouping, the first priority is the same PCI port, and after selecting half of the selected number, the second priority is the cross-PCI port;
[0130] Rule 14: In bond grouping, different PCI ports are given the first priority. After selecting half of the selected number, return to the first PCI device and continue to select the remaining ports.
[0131] Specifically, the wiring rules in this application can be divided into three categories according to different devices. The first category is C rule, the second category is L rule, and the third category is S rule.
[0132] A1 is the first port selected from device A, A2 is the second port selected from device A, B1 is the first port selected from device B, and B2 is the second port selected from device B.
[0133] See also Figure 2 As shown, rule 1 is the C1 rule, which is often used in core switches or similar roles. It takes the boards of the same device as the first priority and the peer relationship as the second priority to select ports for wiring.
[0134] See also Figure 3 As shown, rule 2 is the C2 rule, which is often used in core switches or similar roles. It takes cross-device boards as the first priority and cross-peer relationships as the second priority. It selects ports for wiring. The difference from the C1 rule is the reverse order.
[0135] See also Figure 4 As shown, rule 3 is the C3 rule, which is often used in core switches or similar roles. It takes cross-peer relationships as the first priority and cross-board cards of the same device as the second priority, and selects ports for wiring.
[0136] See also Figure 5 As shown in the figure, rule 4 is the C4 rule, which is often used in core switches or similar roles. It takes cross-peer relationships as the first priority and cross-board cards of the same device as the second priority, and selects ports for wiring. The difference from the C3 rule is the reverse order.
[0137] See also Figure 6 As shown, rule 5 is the C5 rule, which is often used in core switches or similar roles. It takes the board across the same device as the first priority. After it is fully connected, it crosses the peer device and selects the port for wiring.
[0138] See also Figure 7 As shown in the figure, rule 6 is the C6 rule, which is often used in core switches or similar roles. It takes the first priority to cross the same device board. After it is full, it crosses the peer device and selects the port for wiring. The difference from the C5 rule is the reverse order of a single device.
[0139] See also Figure 8 As shown, rule 7 is an L1 rule, which is commonly used for aggregation switches, access switches, or similar roles. Connections are made from left to right. After a single device is fully connected, connections are made across peer devices.
[0140] See also Fig. 9 As shown in the figure, rule 8 is a regular L2 rule, which is often used for aggregation switches, access switches or similar roles. Connections are made from left to right in sequence. After a single device is fully connected, connections are made across peer devices. The difference from L1 is that the order is reversed for a single device.
[0141] See also Fig.10As shown, rule 9 is an L3 rule, which is often used for aggregation switches, access switches or similar roles. It uses half of the number of connections as the boundary to connect across peer relationships.
[0142] See also Fig.11 As shown in the figure, rule 10 is an L4 rule, which is often used for aggregation switches, access switches or similar roles. It uses half of the number of connections as the boundary and connects across peer relationships. The difference from the L3 rule is the reverse order.
[0143] See also Fig.12 As shown, rule 11 is an L5 rule, which is often used in aggregation switches, access switches or similar roles. It takes the cross-peer relationship as the first priority and the next port in the natural order of the same board as the second priority to select the port for wiring.
[0144] See also Fig.13 As shown in the figure, rule 12 is an L6 rule, which is often used in aggregation switches, access switches or similar roles. It takes the cross-peer relationship as the first priority and the next port in the natural order of the same board as the second priority to select the port for wiring. The difference from the L5 rule is the reverse order.
[0145] See also Fig.14 As shown, rule 13 is the S1 rule, which is often used for server-related roles. In bond grouping, the same PCI port is given the first priority. After selecting half of the selected number, cross-PCI and select ports for wiring.
[0146] See also Fig.15 As shown, rule 14 is the S2 rule, which is often used for server-related roles. In the bond grouping, different PCI ports are given the first priority. After selecting half of the selected number, it returns to the first PCI device to continue selecting the remaining ports.
[0147] The server wiring method in this embodiment is used for wiring of server-type device roles. The specific wiring process is shown as follows: Fig.16 As shown, four ports are selected from the server above, namely, ports 1 and 2 (orange) of PCI1, ports 1 and 2 (green) of PCI2, and the order is: orange 1, orange 2, green 1, green 2. Four ports are selected from the switch below, namely, ports A1 (pink 1) and A2 (pink 2) of device A, ports B1 (blue 1) and B2 (blue 2) of device A, and the order is: pink 1, pink 2, blue 1, blue 2. Then, the ports of the server and the ports of the switch are wired, and the corresponding ports of orange 1 are connected to A1 (pink 1), orange 2 is connected to A2 (pink 2), green 1 is connected to B1 (blue 1), and green 1 is connected to B2 (blue 2).
[0148] The network device wiring method in this embodiment is used for wiring of roles other than server-type devices. The specific wiring process is shown as follows: Fig.17 As shown, select 4 ports from the upper aggregation switch, that is, first select port 2 (pink 49) and port 1 (pink 50), then select port 2 (blue 49) and port 1 (blue 50), and the reverse order is 1 (pink 50), 2 (pink 49), 1 (blue 50), 2 (blue 49). Select 4 ports from the lower core switch, that is, first select port A1 (purple 1) and port A2 (orange 1), then select port B1 (green 1) and port B2 (red 1), and the positive order is A1 (purple 1), A2 (orange 1), B1 (green 1), B2 (red 1). Then, according to rule 14, the ports of the aggregation switch and the ports of the core switch are connected. The corresponding port 1 (pink 50) is connected to A1 (purple 1), port 2 (pink 49) is connected to A2 (orange 1), port 1 (blue 50) is connected to B1 (green 1), and port 2 (blue 49) is connected to B2 (red 1).
[0149] In step 102, the wiring rules and corresponding connection methods of the project product are determined from the wiring model based on the construction requirement specification of the project product.
[0150] In some embodiments, step S102 of the method for abstracting physical ports to generate connections in the present application specifically includes:
[0151] Step S1021: Analyze the construction requirements specification of the project product to determine the roles of various types of construction equipment included in the project product;
[0152] Step S1022: Determine the wiring rules and connection methods of each type of construction equipment role included in the project product from the wiring model to obtain the wiring rules and corresponding connection methods of the project product.
[0153] In some embodiments, step S1022 of the method for abstracting physical ports to generate connections in the present application is specifically:
[0154] When the construction equipment role is a core switch role, a wiring rule is selected from rules 1 to 6 in the wiring model, and a corresponding connection method is determined to be a network equipment connection method;
[0155] When the construction equipment role is a convergence switch role or an access switch role, a wiring rule is selected from rules 7 to 12 in the wiring model, and the corresponding connection method is determined to be a network equipment connection method;
[0156] When the construction equipment role is a server-type role, a wiring rule is selected from rule 13 and rule 14 in the wiring model, and the corresponding connection method is determined to be a server connection method.
[0157] For details, see Fig.18 As shown, when a project in a certain place needs to be constructed, the project product type is first analyzed, and then the construction instructions of the project product (i.e., the construction requirement document of the product) are obtained, and then the construction requirement document is decomposed to decompose the construction equipment roles (i.e., the various types of construction equipment roles included in the project product). The decomposed construction equipment roles here include one or more of server-type roles, core switch-type roles (core switch-type network roles), or aggregation / access switch-type equipment roles (aggregation / access-type network roles). For each equipment role, the corresponding wiring rules (port rules) and connection methods are queried from the wiring model, and then a connection rule table is compiled and generated. After entering, a port wiring table (port table) is generated, and finally, workers perform construction with reference to the port table.
[0158] For example, the requirements for the construction instructions of the project product in this embodiment may be:
[0159] Applicable roles: Compute node / management node / common bare metal / storage node / network element node / storage network management
[0160] Applicable scenario: CT3.0 server with 4 network cards
[0161] Rule 1: If Fig.19 As shown, the network card makes two bonds across PCI;
[0162] Rule 2: The switch connected to the storage node is independent and not shared with other nodes.
[0163] To summarize, the method for generating connections by abstracting physical ports in the present application describes the wiring scenarios encountered in almost all project products through an abstract wiring model that contains a variety of wiring rules and methods. It uses a universal and unified abstract model to clearly describe the wiring methods of all products, simplify the wiring links, realize rapid construction, and achieve a unified wiring effect, thereby improving the efficiency of shelving in the computer room.
[0164] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions involved are not necessarily required by the present application.
[0165] Reference Fig. 20 , shows a structural block diagram of a device for abstracting a physical port to generate a connection in the present application, the device 2000 includes:
[0166] The first processing module 2001 is configured to abstract the physical wiring mode of the existing equipment to establish a wiring model, wherein the wiring model includes multiple wiring rules and multiple connection methods;
[0167] The second processing module 2002 is configured to determine the wiring rules and corresponding connection methods of the project product from the wiring model based on the construction requirement specification of the project product;
[0168] The third processing module 2003 is configured to automatically generate a port wiring table according to the wiring rules and corresponding connection methods of the project product.
[0169] In some embodiments, the wiring model in the device for abstracting physical ports to generate connections in the present application includes a server connection method and a network device connection method; wherein, the 14 wiring rules are rules 1 to 6 for core switch class roles, rules 7 to 12 for aggregation switch class roles or access switch class roles, and rules 13 and 14 for server class roles; wherein, the two connection methods are a server connection method and a network device connection method.
[0170] In some embodiments, the 14 wiring rules included in the wiring model in the device for abstracting physical ports to generate connections in the present application are specifically:
[0171] Rule 1: The first priority is to connect boards on the same device, the second priority is to connect devices on peer relationships, and the device port wiring sequence is in positive order;
[0172] Rule 2: The first priority is to connect boards on the same device, the second priority is to connect devices on peer relationships, and the device port wiring sequence is in reverse order;
[0173] Rule 3: The first priority is to connect devices across peer relationships, the second priority is to connect boards across the same device, and the order of device port wiring is in positive order;
[0174] Rule 4: The first priority is to connect devices across peer relationships, the second priority is to connect boards across the same device, and the order of device port wiring is in reverse order;
[0175] Rule 5: Prioritize connections across the same device board, and then connect across peer devices after they are full. Device ports use single-device positive sequence wiring.
[0176] Rule 6: Prioritize connecting boards on the same device first, and then connect to peer devices after they are full. Device ports should be connected in reverse order of a single device.
[0177] Rule 7: Device ports are wired from left to right. After a single device is fully connected, cross-peer devices are wired.
[0178] Rule 8: Device ports are wired from right to left. After a single device is fully connected, cross-peer devices are wired.
[0179] Rule 9: Use half of the number of wires as the dividing line, and connect devices across peer relationships in positive sequence;
[0180] Rule 10: The number of devices connected across peer relationships is divided into half, and the devices are connected in reverse order;
[0181] Rule 11: The first priority is the device with a cross-peer relationship, and the next port in the natural order of the same board is the second priority. The device port wiring sequence is in positive order;
[0182] Rule 12: The first priority is the device with a cross-peer relationship, the second priority is the next port in the natural order of the same board, and the device port wiring order is in reverse order;
[0183] Rule 13: In bond grouping, the first priority is the same PCI port, and after selecting half of the selected number, the second priority is the cross-PCI port;
[0184] Rule 14: In bond grouping, different PCI ports are given the first priority. After selecting half of the selected number, return to the first PCI device and continue to select the remaining ports.
[0185] In some embodiments, the second processing module 2002 in the device for abstracting physical ports to generate connections of the present application specifically includes:
[0186] The decomposition unit is configured to analyze the construction requirement specification of the project product to determine the roles of various types of construction equipment included in the project product;
[0187] The determination unit is configured to determine the wiring rules and connection methods of each type of construction equipment role included in the project product from the wiring model to obtain the wiring rules and corresponding connection methods of the project product.
[0188] In some embodiments, the determining unit in the apparatus for abstracting a physical port to generate a connection of the present application is specifically configured as follows:
[0189] When the construction equipment role is a core switch role, a wiring rule is selected from rules 1 to 6 in the wiring model, and a corresponding connection method is determined to be a network equipment connection method;
[0190] When the construction equipment role is a convergence switch role or an access switch role, a wiring rule is selected from rules 7 to 12 in the wiring model, and the corresponding connection method is determined to be a network equipment connection method;
[0191] When the construction equipment role is a server-type role, a wiring rule is selected from rule 13 and rule 14 in the wiring model, and the corresponding connection method is determined to be a server connection method.
[0192] In some embodiments, the third processing module 2003 of the device for abstracting physical ports to generate connections of the present application specifically includes:
[0193] The first generating unit is configured to generate a port rule according to a wiring rule of a project product;
[0194] A second generating unit is configured to generate a connection rule table based on the port rule and the corresponding connection method;
[0195] The third generating unit is configured to automatically generate the port wiring table based on the connection rule table.
[0196] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0197] Optionally, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0198] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0199] Fig.21 2 is a block diagram of an electronic device 2100 shown in the present application. For example, the electronic device 2100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0200] Reference Fig.21 , the electronic device 2100 may include one or more of the following components: a processing component 2102 , a memory 2104 , a power component 2106 , a multimedia component 2108 , an audio component 2110 , an input / output (I / O) interface 2112 , a sensor component 2114 , and a communication component 2116 .
[0201] The processing component 2102 generally controls the overall operation of the electronic device 2100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 2102 may include one or more processors 2120 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 2102 may include one or more modules to facilitate the interaction between the processing component 2102 and other components. For example, the processing component 2102 may include a multimedia module to facilitate the interaction between the multimedia component 2108 and the processing component 2102.
[0202] The memory 2104 is configured to store various types of data to support operations on the device 2100. Examples of such data include instructions for any application or method operating on the electronic device 2100, contact data, phone book data, messages, images, videos, etc. The memory 2104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0203] The power supply component 2106 provides power to various components of the electronic device 2100. The power supply component 2106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 2100.
[0204] The multimedia component 2108 includes a screen that provides an output interface between the electronic device 2100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 2108 includes a front camera and / or a rear camera. When the device 2100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0205] The audio component 2110 is configured to output and / or input audio signals. For example, the audio component 2110 includes a microphone (MIC), and when the electronic device 2100 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 2104 or sent via the communication component 2116. In some embodiments, the audio component 2110 also includes a speaker for outputting audio signals.
[0206] I / O interface 2112 provides an interface between processing component 2102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0207] The sensor assembly 2114 includes one or more sensors for providing various aspects of status assessment for the electronic device 2100. For example, the sensor assembly 2114 can detect the open / closed state of the device 2100, the relative positioning of components, such as the display and keypad of the electronic device 2100, and the sensor assembly 2114 can also detect the position change of the electronic device 2100 or a component of the electronic device 2100, the presence or absence of user contact with the electronic device 2100, the orientation or acceleration / deceleration of the electronic device 2100, and the temperature change of the electronic device 2100. The sensor assembly 2114 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 2114 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 2114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0208] The communication component 2116 is configured to facilitate wired or wireless communication between the electronic device 2100 and other devices. The electronic device 2100 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 21G), or a combination thereof. In an exemplary embodiment, the communication component 2116 receives a broadcast signal or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 2116 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0209] In an exemplary embodiment, the electronic device 2100 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.
[0210] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 2104 including instructions, and the instructions can be executed by the processor 2120 of the electronic device 2100 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0211] Fig. 22 2 is a block diagram of a computer storage medium 2200 shown in the present application. For example, the computer storage medium 2200 may be provided as a server.
[0212] Reference Fig. 22 , the computer storage medium 2200 includes a processing component 2222, which further includes one or more processors, and a memory resource represented by a memory 2232 for storing instructions, such as an application, that can be executed by the processing component 2222. The application stored in the memory 2232 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 2222 is configured to execute instructions to perform the above method.
[0213] The computer storage medium 2200 may also include a power supply component 2226 configured to perform power management of the computer storage medium 2200, a wired or wireless network interface 2250 configured to connect the computer storage medium 2200 to a network, and an input / output (I / O) interface 2258. The computer storage medium 2200 may operate based on an operating system stored in the memory 2232, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0214] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for generating a connection by abstracting a physical port, characterized in that: The method comprises: Abstracting the physical wiring mode of existing equipment to establish a wiring model, wherein the wiring model includes multiple wiring rules and multiple connection methods; Determine the wiring rules and corresponding connection methods of the project product from the wiring model based on the construction requirements specification of the project product; Automatically generate the port wiring table based on the project product's wiring rules and corresponding connection methods.
2. A method for generating a connection by abstracting a physical port according to claim 1, characterized in that: The wiring model includes 14 wiring rules and two connection methods; Among them, the 14 wiring rules are rules 1 to 6 for core switch roles, rules 7 to 12 for aggregation switch roles or access switch roles, and rules 13 and 14 for server roles; There are two connection methods: server connection and network device connection.
3. A method for generating a connection by abstracting a physical port according to claim 2, characterized in that: The 14 wiring rules included in the wiring model are specifically: Rule 1: The first priority is to connect boards on the same device, the second priority is to connect devices on peer relationships, and the device port wiring sequence is in positive order; Rule 2: The first priority is to connect boards on the same device, the second priority is to connect devices on peer relationships, and the device port wiring sequence is in reverse order; Rule 3: The first priority is to connect devices across peer relationships, the second priority is to connect boards across the same device, and the order of device port wiring is in positive order; Rule 4: The first priority is to connect devices across peer relationships, the second priority is to connect boards across the same device, and the order of device port wiring is in reverse order; Rule 5: Prioritize connections across the same device board, and then connect across peer devices after they are full. Device ports use single-device positive sequence wiring. Rule 6: Prioritize connecting boards on the same device first, and then connect to peer devices after they are full. Device ports should be connected in reverse order of a single device. Rule 7: Device ports are wired from left to right. After a single device is fully connected, cross-peer devices are wired. Rule 8: Device ports are wired from right to left. After a single device is fully connected, cross-peer devices are wired. Rule 9: Use half of the number of wires as the dividing line, and connect devices across peer relationships in positive sequence; Rule 10: The number of devices connected across peer relationships is divided into half, and the devices are connected in reverse order; Rule 11: The first priority is the device with a cross-peer relationship, and the next port in the natural order of the same board is the second priority. The device port wiring sequence is in positive order; Rule 12: The first priority is the device with a cross-peer relationship, the second priority is the next port in the natural order of the same board, and the device port wiring order is in reverse order; Rule 13: In bond grouping, the first priority is the same PCI port, and after selecting half of the selected number, the second priority is the cross-PCI port; Rule 14: In bond grouping, different PCI ports are given the first priority. After selecting half of the selected number, return to the first PCI device and continue to select the remaining ports.
4. A method for generating a connection by abstracting a physical port according to claim 3, characterized in that: The step of determining the wiring rules and corresponding connection methods of the project product from the wiring model based on the construction requirements specification of the project product specifically includes: Analyze the construction requirements specification of the project product to determine the roles of various types of construction equipment included in the project product; The wiring rules and connection methods of each type of construction equipment role included in the project product are determined from the wiring model to obtain the wiring rules and corresponding connection methods of the project product.
5. A method for generating a connection by abstracting a physical port according to claim 4, characterized in that: The wiring rules and connection methods of each type of construction equipment role included in the project product are determined from the wiring model to obtain the wiring rules and corresponding connection methods of the project product, specifically: When the construction equipment role is a core switch role, a wiring rule is selected from rules 1 to 6 in the wiring model, and the corresponding connection method is determined to be a network equipment connection method; When the construction equipment role is a convergence switch role or an access switch role, a wiring rule is selected from rules 7 to 12 in the wiring model, and the corresponding connection method is determined to be a network equipment connection method; When the construction equipment role is a server-type role, a wiring rule is selected from rule 13 and rule 14 in the wiring model, and the corresponding connection method is determined to be a server connection method.
6. A method for generating a connection by abstracting a physical port according to claim 5, characterized in that: The automatic generation of the port wiring table according to the wiring rules and corresponding connection methods of the project products specifically includes: Generate port rules based on the wiring rules of the project product; Generate a connection rule table based on the port rules and corresponding connection methods; The port wiring table is automatically generated based on the connection rule table.
7. A device for generating a connection by abstracting a physical port, characterized in that: The device comprises: The first processing module is configured to abstract the physical wiring mode of the existing equipment to establish a wiring model, wherein the wiring model includes multiple wiring rules and multiple connection methods; A second processing module is configured to determine the wiring rules and corresponding connection methods of the project product from the wiring model based on the construction requirement specification of the project product; The third processing module is configured to automatically generate a port wiring table according to the wiring rules and corresponding connection methods of the project product.
8. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method for generating a connection by abstracting a physical port according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for abstracting a physical port to generate a connection according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the method for abstracting physical ports to generate connections according to any one of claims 1 to 6.