Modular port adaptation method and equipment for switch and medium
Through the port adaptation method of the modular switch, the port configuration is dynamically adjusted, which solves the problem of fixed ports of traditional switches, improves flexibility and security, and reduces the upgrade cost and business interruption risk.
Patent Information
- Application Number
- CN202411130033.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-16
AI Technical Summary
The number and type of ports on the traditional switch motherboard are fixed during design and cannot be adjusted according to subsequent needs changes, resulting in low resource utilization, high upgrade cost, and professional restrictions on the adjustment process, and the applicability and security need to be improved.
Modular switches are adopted to obtain the current device application environment information and user port adaptation requests, determine the port requirement information, and perform adaptation authentication, generate module control signals for port adaptation, and support plug-in and automation of various interface types. Configuration to ensure that only users with permissions can adapt the port.
It realizes dynamic adjustment of port configuration according to user needs, reduces professional restrictions, improves the scalability and security of the system, reduces the risk of configuration errors and business interruptions, and optimizes network resource allocation and usage efficiency.
Smart Images

Figure CN119071153A_ABST
Abstract
Description
Technical Field
[0001] The present specification relates to the technical field of switches, and in particular to a modular port adaptation method, device and medium for switches. Background Art
[0002] With the rapid development of information technology and the increasing diversification of network applications, the fixed port configuration mode of traditional switches has gradually become unable to meet the rapidly changing market demands and flexible and changeable network environments. Especially driven by emerging technologies such as cloud computing, big data, and the Internet of Things, scenarios such as data centers, enterprise networks, and edge computing have put forward higher requirements for the flexibility and scalability of switches.
[0003] The number and types of ports on traditional switch motherboards (such as RJ45, SFP+, SFP28, etc.) are fixed during design and cannot be adjusted according to subsequent changes in demand, resulting in low resource utilization and high upgrade costs.
[0004] When the port type needs to be changed or the number of ports needs to be increased, the entire switch often needs to be replaced, which not only involves hardware replacement, but also involves complex network configuration migration and redeployment, which can easily lead to service interruption and configuration errors. With the popularization of technologies such as cloud computing, virtualization, and the Internet of Things, network structures have become increasingly complex, and switches need to support more interface types and higher bandwidth requirements. At present, the expansion of interfaces can be achieved by plugging and unplugging, but the selection of plug-in positions and plug-in interfaces requires users to have certain professional skills, which places high demands on users' professionalism, and the user's adjustment of interfaces is not monitored, which increases the security risks of switch equipment. Therefore, the number and type of ports on the motherboard of traditional switches are fixed at the time of design, and cannot be adjusted according to subsequent changes in demand. In addition, the adjustment process is subject to professional restrictions, and the applicability and security need to be improved. Summary of the invention
[0005] One or more embodiments of the present specification provide a modular port adaptation method, device and medium for a switch, which are used to solve the following technical problems: the number and type of ports on the mainboard of a traditional switch are fixed during design and cannot be adjusted according to subsequent changes in demand. In addition, the adjustment process is subject to professional restrictions, and its applicability and security need to be improved.
[0006] One or more embodiments of this specification adopt the following technical solutions:
[0007] One or more embodiments of the present specification provide a modular port adaptation method for a switch, which is applied to a modular switch, wherein the modular switch includes a switch mainboard, at least one interface module and an interface connection module, and the method includes: under the triggering of a port reconfiguration request of a user, obtaining current device application environment information and switch interface module information of the modular switch, so as to determine port requirement information of the modular switch based on the current device application environment information, wherein the port requirement information includes a required port type; performing adaptation authentication on the user through the switch interface module information and the port reconfiguration request, so as to determine the adaptation authority information of the user for the modular switch, wherein the adaptation authority information includes multiple authority interface modules; determining an interface module to be controlled corresponding to the modular switch according to the port requirement information and the adaptation authority information; and generating a module control signal corresponding to the interface connection module based on the interface module to be controlled, so as to perform port adaptation on the modular switch through the module control signal, wherein the module control signal includes multiple pin control signals.
[0008] Furthermore, based on the current device application environment information, the port requirement information of the modular switch is determined, specifically including: extracting specified information from the current device application environment information to determine the current network data information corresponding to the modular switch, wherein the current network data information includes current network topology data and current network traffic data; based on the port reconfiguration request, determining the target application environment information corresponding to the port reconfiguration request to determine the target network data information, wherein the target network data information includes target network topology data and target network traffic data; determining the port requirement information of the modular switch through the current network data information and the target network data information.
[0009] Further, the user is adapted and authenticated through the switch interface module information and the port reconfiguration request to determine the user's adaptation authority information for the modular switch, specifically including: obtaining the user authentication information corresponding to the port reconfiguration requirement, and obtaining the switch authority allocation information corresponding to the modular switch, wherein the switch authority allocation information includes at least one authority organization with port reconfiguration authority and the port reconfiguration range of each authority organization; the user is authenticated through the user authentication information, and when the user identity authentication passes, the user's affiliated organization information is determined; the user is authenticated for reconfiguration authority based on the user's affiliated organization information and the switch authority allocation information; when the user's reconfiguration authority authentication passes, the user's adaptation authority information for the modular switch is determined through the port reconfiguration range of each authority organization.
[0010] Further, according to the port requirement information and the adaptation authority information, determining the interface module to be controlled corresponding to the modular switch specifically includes: determining the port reconfiguration range of the user corresponding to the adaptation authority information, wherein the port reconfiguration range includes at least one newly added port type; according to the required port type in the port requirement information, matching is performed in the port reconfiguration range to determine the interface module to be controlled corresponding to the modular switch.
[0011] Furthermore, based on the interface module to be controlled, a module control signal corresponding to the interface connection module is generated, specifically including: matching in a pre-constructed interface mapping truth table through the interface type of the interface module to be controlled to determine the pin level truth value combination corresponding to the interface module to be controlled; and generating a connection pin level control signal of the interface connection module according to the pin level truth value combination corresponding to the interface module to be controlled.
[0012] Furthermore, the interface connection module includes a board-to-board connector for manual docking of a switch mainboard and a plurality of interface boards, and performs port adaptation on the modular switch through the module control signal, specifically comprising: when the interface type of the interface module to be controlled does not belong to the fixed interface type in the switch interface module information, performing plug-in and unplugging marking in the interface connection module according to a preset indication rule through the module control signal; receiving the user's interface board plug-in and unplugging trigger information through the plug-in and unplugging marking, and performing port adaptation on the modular switch under the triggering of the interface board plug-in and unplugging trigger information.
[0013] Furthermore, the modular switch is port adapted through the module control signal, specifically including: when the interface type of the interface module to be controlled belongs to the fixed interface type in the switch interface module information, determining the target control pin of the interface connection module according to the module control signal corresponding to the interface connection module; determining the enable state of each target control pin according to the pin level true value combination corresponding to the interface module to be controlled; and performing port adaptation on the modular switch through the enable state of each target control pin.
[0014] Furthermore, after performing port adaptation on the modular switch through the module control signal, the method further includes: performing port status detection on the modular switch to determine the corresponding real-time port status, so as to perform adaptation evaluation on the port adaptation process through the real-time port status.
[0015] One or more embodiments of the present specification provide a modular port adapter device for a switch, including:
[0016] at least one processor; and,
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the above method.
[0019] One or more embodiments of the present specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to execute the above method.
[0020] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: through the above technical solution, it is allowed to dynamically determine the port requirements according to the actual needs of the user and the current device application environment information, so as to select the most suitable interface module for adaptation, reduce the professional restrictions in the manual configuration process, and have flexibility, so that the modular switch can easily cope with various network scenarios and demand changes; when it is necessary to add a new interface module or upgrade an existing module, it can be achieved through a simple adaptation process without large-scale hardware or software changes to the switch, thereby improving the scalability of the system; through the adaptation authentication process, it can be ensured that only users with corresponding permissions can perform port adaptation on the modular switch, effectively preventing unauthorized access and misoperation, and enhancing the security of the system; according to the port requirement information and the adaptation permission information, the interface module to be controlled can be accurately selected, avoiding waste of resources and unnecessary configuration; by generating accurate module control signals, it can ensure the perfect adaptation between the interface connection module and the interface module to be controlled, thereby optimizing the allocation and use of network resources, automating the adaptation process, reducing the need for manual intervention, and improving the efficiency and accuracy of adaptation. The module control signals generated in real time can quickly respond to port reconfiguration requests, shorten the adaptation time, and reduce the risk of service interruption caused by configuration errors or delays. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0022] Figure 1 A schematic diagram of a flow chart of a modular port adaptation method for a switch provided in an embodiment of this specification;
[0023] Figure 2 A schematic diagram of the structure of a modular switch provided in an embodiment of this specification;
[0024] Figure 3 A schematic diagram of the structure of another modular switch provided in an embodiment of this specification;
[0025] Figure 4 A schematic diagram of the structure of a modular port adapter device for a switch provided in an embodiment of this specification. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0027] With the rapid development of information technology and the increasing diversification of network applications, the fixed port configuration mode of traditional switches has gradually become unable to meet the rapidly changing market demands and flexible and changeable network environments. Especially driven by emerging technologies such as cloud computing, big data, and the Internet of Things, scenarios such as data centers, enterprise networks, and edge computing have put forward higher requirements for the flexibility and scalability of switches.
[0028] The number and types of ports on traditional switch motherboards (such as RJ45, SFP+, SFP28, etc.) are fixed during design and cannot be adjusted according to subsequent changes in demand, resulting in low resource utilization and high upgrade costs.
[0029] When the port type needs to be changed or the number of ports needs to be increased, the entire switch often needs to be replaced, which not only involves hardware replacement, but also involves complex network configuration migration and redeployment, which can easily lead to service interruption and configuration errors. With the popularization of technologies such as cloud computing, virtualization, and the Internet of Things, network structures have become increasingly complex, and switches need to support more interface types and higher bandwidth requirements. At present, the expansion of interfaces can be achieved by plugging and unplugging, but the selection of plug-in positions and plug-in interfaces requires users to have certain professional skills, which places high demands on users' professionalism, and the user's adjustment of interfaces is not monitored, which increases the security risks of switch equipment. Therefore, the number and type of ports on the motherboard of traditional switches are fixed at the time of design, and cannot be adjusted according to subsequent changes in demand. In addition, the adjustment process is subject to professional restrictions, and the applicability and security need to be improved.
[0030] The embodiment of this specification provides a modular port adaptation method for a switch. It should be noted that the execution subject in the embodiment of this specification can be a server or any device with data processing capability. Figure 1 A schematic diagram of a flow chart of a modular port adaptation method for a switch provided in an embodiment of this specification, such as Figure 1 As shown, it mainly includes the following steps:
[0031] Step S101 : under the triggering of the user's port reconfiguration request, the current device application environment information and switch interface module information of the modular switch are obtained to determine the port requirement information of the modular switch based on the current device application environment information.
[0032] The port requirement information includes the required port type;
[0033] In one embodiment of the present specification, the present invention is applied to a modular switch, the modular switch includes a switch mainboard, at least one interface module and an interface connection module. Figure 2 A schematic diagram of the structure of a modular switch provided in an embodiment of this specification, such as Figure 2 As shown, the modular switch includes a power supply module, a power board, a switch main board and three flexible port modules given as an example. Figure 3 A schematic diagram of the structure of another modular switch provided in the embodiment of this specification, such as Figure 2 and Figure 3 As shown, unlike conventional or existing designs, the switch mainboard and the flexible port module are different. The switch mainboard and the flexible port module are connected board-to-board. The switch mainboard is a mainboard that meets various high-speed interfaces, and the network main control chip uses a network control chip that supports the highest rate; the flexible port module is a general term for various network interfaces, which can include boards with many different interfaces, such as RJ45 interface boards, SFP+ interface boards, QSFP interface boards, etc. The interface connection module is a high-speed board-to-board connector, or it can be other interface connection modules. The type and quantity of the interface connection modules are not limited here. In this example, when the client needs a switch with only RJ45 interfaces, it only needs to replace the flexible port modules with RJ45 interface boards. This flexible interface module and the switch mainboard use a board-to-board connector to realize a switch with all RJ45 interfaces. When it is necessary to replace a switch with some interfaces as SFP+ interfaces, the interface board that needs to be replaced in the original switch is pulled out and replaced with an SFP+ interface board without moving the switch mainboard. When you need to replace a switch with some interfaces as QSFP interfaces, you can pull out the interface board that needs to be replaced in the original switch and replace it with a QSFP interface board without touching the switch mainboard.
[0034] In one embodiment of the present specification, the switch motherboard includes a network main control chip and a network physical layer chip. The network main control chip generally refers to a network control center chip that supports the highest network rate and can support data processing at different rates of different network interfaces; the network physical layer chip refers to a chip that converts high-speed signals such as SGMII or RGMII output by the network main control chip into high-speed signals such as MDI or XFI. In addition, the modular switch also includes an interface connection module, and the interface connection module here can be a high-speed board-to-board connector. The high-speed board-to-board connector refers to a high-speed connector that supports board-to-board plug-in, a plug-in connector that supports the highest rate, and is used for connecting the switch motherboard and various different interface boards.
[0035] In one embodiment of the present specification, a user-friendly interface or API interface is provided through a preset switch management platform, so that users can submit port reconfiguration requests, and receive user port reconfiguration requests. The port reconfiguration request includes user authentication information and the modular switch to be reconfigured, and the user authentication information includes user role information and user organization information. In the port reconfiguration request, if the user has sufficient professional knowledge, the user can choose to directly provide the reconfiguration type, otherwise, the reconfiguration operation can be not directly provided. By clarifying the application environment of the switch device, professional reconfiguration operation suggestions are provided based on subsequent switch application analysis. Such as adding, reducing, changing port types, etc., as well as related port or module identifiers. In this case, under the triggering of the user's port reconfiguration request, the current device application environment information and switch interface module information of the modular switch are obtained. It should be noted that the switch interface module information here refers to the currently existing interface module, which can be multiple existing interface modules after the last reconfiguration. Administrators can remotely access and monitor the status and performance of the switch through SNMP (Simple Network Management Protocol), CLI (Command Line Interface) or other network management protocols, which allow administrators to collect various data on the switch in real time, including but not limited to interface status, traffic statistics, error logs, etc. Based on the current device application environment information, determine the port requirement information of the modular switch.
[0036] Based on the current device application environment information, the port requirement information of the modular switch is determined, specifically including: extracting specified information from the current device application environment information to determine the current network data information corresponding to the modular switch, wherein the current network data information includes current network topology data and current network traffic data; based on the port reconfiguration request, determining the target application environment information corresponding to the port reconfiguration request to determine the target network data information, wherein the target network data information includes target network topology data and target network traffic data; and determining the port requirement information of the modular switch through the current network data information and the target network data information.
[0037] In one embodiment of the present specification, after collecting a large amount of raw data corresponding to the current device application environment information, it is necessary to extract key data directly related to the port reconfiguration request from the current device application environment information, and the data mainly includes the current network topology data and the current network traffic data. The current network topology data includes the position of the switch in the network, the connection relationship with other devices (such as direct connection, cascade, stacking, etc.), VLAN division, subnet division, etc. Through the topology data, the physical and logical structure of the network can be clearly understood. The current network traffic data involves the traffic distribution, traffic size, traffic type (such as voice, video, data, etc.) and traffic direction in the network. Traffic data is crucial for evaluating the network load, identifying potential bottlenecks and planning port reconfiguration.
[0038] Based on the port reconfiguration request, it is necessary to clarify the target application environment after the reconfiguration, including the user's expected network structure, performance requirements, security requirements, etc. By analyzing these requirements, the target network topology data and target network traffic data can be determined. The target network topology data reflects the physical and logical structure of the network after the reconfiguration, including the newly added or removed connections, the re-division of VLANs, the reconstruction of subnets, etc.; the target network traffic data predicts the traffic distribution and traffic size in the network after the reconfiguration. According to the business needs and expected growth, the change trend of network traffic in the future and the possible peak period can be estimated. By comparing the current network data information with the target network data information, the changes in network structure and traffic demand can be identified, so as to determine the port demand information of the modular switch. According to the newly added or changed connections in the target network topology, the number of ports that need to be increased or decreased can be calculated. According to the newly added or changed connections in the target network topology, the number of ports that need to be increased or decreased can be calculated. According to the proportion and performance requirements of different traffic types in the target network traffic data, the type of required port (such as copper cable, optical fiber, 10 Gigabit, etc.) can be determined. In addition, based on the security and performance requirements of the target network, the VLAN affiliation, QoS policy, security policy, etc. of the port can also be configured. In a modular switch, modules in different locations may have different performance and functions. Therefore, when determining port requirements, you also need to consider the physical location of the ports to achieve the best performance and scalability.
[0039] Through the above technical solutions, modular switches can flexibly adjust port configurations as needed to adapt to different network application environments, help to quickly respond to network changes and meet business development needs. Through detailed analysis of current network data information and target network data information, the actual needs of switch ports can be determined more accurately, thereby avoiding waste of resources. For example, in an environment where high-speed ports are not required, unnecessary high-cost investment can be avoided; configuration adjustments based on precise port demand information can ensure the reasonable allocation and efficient utilization of network resources, thereby improving the overall performance of the network. For example, increasing bandwidth and the number of ports in high-traffic areas can significantly reduce network latency and packet loss rates; automated information extraction and demand analysis processes can reduce manual intervention, avoid professional limitations of manual modification, and reduce the risk of human error. Accurate port configuration can extend the service life of the equipment and reduce the costs incurred by frequent replacement or upgrades of equipment.
[0040] Step S102: Performing adaptation authentication on the user through the switch interface module information and the port reconfiguration request to determine the user's adaptation authority information for the modular switch.
[0041] The adaptation authority information includes a plurality of authority interface modules.
[0042] In one embodiment of the present specification, the user is adapted and authenticated through the switch interface module information and the port reconfiguration request to determine the user's adaptation authority information for the modular switch, ensuring that only authorized users can configure or modify the switch, thereby protecting the security and stability of the network.
[0043] The user is adapted and authenticated through the switch interface module information and the port reconfiguration request to determine the user's adaptation authority information for the modular switch, specifically including: obtaining user authentication information corresponding to the port reconfiguration requirement, and obtaining switch authority allocation information corresponding to the modular switch, wherein the switch authority allocation information includes at least one authority organization with port reconfiguration authority and a port reconfiguration range of each authority organization; the user is authenticated through the user authentication information, and when the user identity authentication passes, the user's affiliated organization information is determined; according to the user's affiliated organization information and the switch authority allocation information, the user is authenticated for reconfiguration authority; when the user's reconfiguration authority authentication passes, the user's adaptation authority information for the modular switch is determined through the port reconfiguration range of each authority organization.
[0044] In one embodiment of the present specification, user authentication information and switch authority allocation information are obtained. User authentication information: This usually includes the user's username, password, digital certificate, token or other information required by other authentication mechanisms to verify the user's identity. The switch authority allocation information contains detailed allocation information about port reconfiguration permissions on the switch. Specifically, it includes at least two parts: one is a list of authority organizations with port reconfiguration permissions, and the other is the port reconfiguration range authorized for each authority organization (for example, a specific port number range, a specific interface module, etc.). Using the obtained user authentication information, the system or authentication server authenticates the user, and the verification process may include password comparison, digital certificate verification, token validity check, etc. If the user identity authentication passes, the system continues to process; if not, the user request is rejected and an error message may be returned.
[0045] After the user identity authentication is passed, the system needs to determine the authority organization to which the user belongs, which is usually achieved by querying the user information database or user configuration file, which records the association information between the user and the authority organization. According to the user's belonging organization information and the switch authority allocation information, the system checks whether the user has the authority to reconfigure the port of the modular switch. Compare the user's belonging organization with the authority organization list in the switch authority allocation information, and check whether the user is within the port reconfiguration range of its belonging organization. If the user's reconfiguration authority authentication is passed, the system will further determine the user's specific adaptation authority information for the modular switch, including the port number range that the user can modify, the parameter type that can be configured, etc. It should be noted that the adaptation authority information is determined based on the port reconfiguration range corresponding to the user's belonging organization in the switch authority allocation information. After the user's adaptation authority information is determined and meets the requirements, the port reconfiguration request submitted by the user can be executed to make corresponding configuration modifications to the modular switch. If the user fails in any authentication step (such as identity authentication, reconfiguration authority authentication), the system will refuse to execute the request and return the corresponding error prompt information to the user.
[0046] Through the above technical solution, through strict user identity authentication and reconfiguration authority authentication, it can be ensured that only legitimate users with corresponding permissions can make configuration changes to the modular switch, reducing the risk of unauthorized access and malicious configuration, thereby enhancing the overall security of the network; the automated identity authentication and authority verification process reduces the need for manual review, allowing administrators to handle user requests more efficiently, and clear authority allocation and adaptation authority information enable users to clearly understand their operating scope and limitations in the network, thereby improving management efficiency; by setting a specific port reconfiguration range for each authority organization, the reasonable allocation of network resources can be ensured, and only authorized organizations can make configuration changes within their authority, avoiding waste and abuse of resources.
[0047] Step S103: determining the interface module to be controlled corresponding to the modular switch according to the port requirement information and the adaptation authority information.
[0048] According to the port requirement information and the adaptation authority information, the interface module to be controlled corresponding to the modular switch is determined, specifically including: determining the port reconfiguration range of the user corresponding to the adaptation authority information, wherein the port reconfiguration range includes at least one newly added port type; according to the required port type in the port requirement information, matching is performed in the port reconfiguration range to determine the interface module to be controlled corresponding to the modular switch. The interface module to be controlled here belongs to the newly added port type in the port reconfiguration range and also matches the required port type in the port requirement information.
[0049] By matching the user's adaptation authority information and the actual port requirement information, it is possible to accurately determine which interface modules should be modified or controlled, avoiding unnecessary operations, reducing the risk of misconfiguration, and ensuring the effective use of network resources; the user's port reconfiguration range may include a variety of different types of ports, such as high-speed Ethernet ports, fiber optic ports, etc. By matching the required port type, the system can flexibly select the most appropriate interface module for configuration to meet different network requirements, reducing the time for manual search and configuration of interface modules and improving management efficiency; the adaptation authority information limits the range of ports that users can modify, reducing potential security risks, and protecting the network from unauthorized access or malicious configuration.
[0050] Step S104: Based on the interface module to be controlled, a module control signal corresponding to the interface connection module is generated, so as to perform port adaptation on the modular switch through the module control signal.
[0051] The module control signal includes a plurality of pin control signals.
[0052] Based on the interface module to be controlled, a module control signal corresponding to the interface connection module is generated, specifically including: matching in a pre-constructed interface mapping truth table through the interface type of the interface module to be controlled to determine the pin level truth value combination corresponding to the interface module to be controlled; and generating a connection pin level control signal of the interface connection module according to the pin level truth value combination corresponding to the interface module to be controlled.
[0053] In one embodiment of the present specification, different types of interface mapping truth tables are pre-built, as shown in the following table. Taking the RJ45 interface board as an example, the network physical layer chip of the switch mainboard has 3 pins, and these 3 pins are defined as: BOARD_ID0, BOARD_ID1, BOARD_PRSNT_N signal, where BOARD_ID0 and BOARD_ID1 are used to determine the type of the interface board, and the BOARD_PRSNT_N signal is used to identify whether the interface board is normally inserted into the switch mainboard. The interface board (taking the RJ45 interface board as an example, not specific) also has 3 pins on the high-speed board-to-board connector. These 3 pins are defined the same as the corresponding pins of the switch board. The BOARD_PRSNT_N signal must be connected to GND on the interface board to prove that the interface board is connected to the switch mainboard. BOARD_ID0 and BOARD_ID1 are used to distinguish different interface boards, with a high level of "1" and a low level of "0".
[0054] Interface board type BOARD_ID0 BOARD_ID1 RJ45 interface board 1 1 SFP+ Interface Board 1 0 QSFP+ Interface Board 0 1 QSFP28 interface board 0 0
[0055] In addition to the above interface mapping truth table, it can also be determined by the pin level configuration of each interface type at the physical level, which can include high level (High), low level (Low), floating (Floating) or specific voltage value and other states. According to the relationship between the interface type and the pin level, create an interface mapping truth table. The table should contain the interface type as input and the corresponding pin level truth value combination as output. Use the interface type of the interface module to be controlled as input, query in the interface mapping truth table, and find the corresponding pin level truth value combination. According to the pin level truth value combination corresponding to the interface module to be controlled, generate the connection pin level control signal of the interface connection module. According to the pin level truth value combination queried from the truth table, parse out the level state that each pin should be in. Based on the parsed pin level state, generate a signal for controlling the connection pin level of the interface connection module, which can be sent to the control circuit of the interface connection module in the form of a digital signal (such as 0 and 1 represent low level and high level). Send the generated control signal to the interface connection module through an appropriate communication interface (such as I2C, SPI, GPIO, etc.). The interface connection module adjusts the level state of its connection pin according to the received control signal to achieve correct connection with the interface module to be controlled.
[0056] The interface connection module includes a board-to-board connector for manual docking of a switch mainboard and a plurality of interface boards. The module control signal is used to perform port adaptation on the modular switch, specifically comprising: when the interface type of the interface module to be controlled does not belong to the fixed interface type in the switch interface module information, the module control signal is used to perform plug-in and unplug marking in the interface connection module according to a preset indication rule; through the plug-in and unplug marking, the user's interface board plug-in and unplugging trigger information is received, and the modular switch is port adapted under the triggering of the interface board plug-in and unplugging trigger information.
[0057] In one embodiment of the present specification, when the interface type of the control interface module does not belong to the fixed interface type in the switch interface module information, it is necessary to guide the user to manually plug and unplug the peripheral interface. Through the module control signal, according to the preset indication rules, plug and unplug markings are performed in the interface connection module. For example, red represents the RJ45 interface board. Through the plug and unplug markings, the user is guided to plug and unplug the specified type of interface board, and the user's interface board plug and unplug trigger information is received. Under the triggering of the interface board plug and unplug trigger information, the modular switch is port adapted.
[0058] The modular switch is port-adapted through the module control signal, specifically comprising: when the interface type of the interface module to be controlled belongs to the fixed interface type in the switch interface module information, determining the target control pin of the interface connection module according to the module control signal corresponding to the interface connection module; determining the enable state of each target control pin according to the pin level true value combination corresponding to the interface module to be controlled; and port-adapting the modular switch through the enable state of each target control pin.
[0059] In one embodiment of the present specification, when the interface type of the interface module to be controlled belongs to the fixed interface type in the interface module information of the switch, it means that the interface module to be controlled already belongs to this switch but has not been connected. Decode the control signal to obtain the specific control instruction of each pin; map the decoded control instruction to the actual physical pin on the interface connection module, and the physical pin will adjust its level state or perform other control functions according to the control signal. Use the pin level true value combination corresponding to the interface module to be controlled previously as a reference to indicate the level state (such as high level, low level or specific voltage value) that each pin should be in during the adaptation process. Match each level state in the pin level true value combination with the target control pin to determine the enable state of each pin. The enable state can be activated (such as high level) or disabled (such as low level), depending on the communication protocol and electrical specifications between the interface connection module and the interface module to be controlled. According to the enable state of the target control pin, send the corresponding control signal to the interface connection module. These signals can be direct level signals or instructions sent through a certain communication protocol (such as I2C, SPI, etc.). After receiving the control signal, the interface connection module will adjust the level state of its target control pin according to the instruction of the signal, ensuring that the interface connection module can be correctly connected with the interface module to be controlled, and realizing the matching of physical connection and electrical signal.
[0060] By generating module control signals, the interface connection module can be flexibly controlled to adapt to different types and specifications of interface modules to be controlled, so that the modular switch can adapt to various network environments and application requirements. When a new interface module needs to be added or an existing module needs to be upgraded, it is only necessary to regenerate the corresponding module control signal without making large-scale software changes to the switch; by precisely controlling the pin level and other parameters of the interface connection module, the perfect adaptation of the interface module to be controlled and the switch port can be ensured, avoiding network failures caused by configuration errors or compatibility issues; the generation and transmission process of module control signals usually follows strict protocols and specifications, reducing signal interference and transmission errors, and improving the reliability of port adaptation; by automatically generating module control signals through programming or configuration tools, the automatic configuration of switch ports can be realized, simplifying the configuration process; module control signals can be centrally generated and managed, allowing network administrators to more conveniently configure and monitor switch ports in batches.
[0061] After performing port adaptation on the modular switch through the module control signal, the method further includes: performing port status detection on the modular switch to determine the corresponding real-time port status, so as to perform adaptation evaluation on the port adaptation process through the real-time port status.
[0062] In one embodiment of the specification, the current status data of each port is collected in real time using the built-in monitoring tool of the switch or an external network management system (NMS), including link status (such as linked / unlinked), speed (such as 100Mbps, 1Gbps, etc.), duplex mode (full-duplex / half-duplex), error count (such as CRC error, frame error, etc.) and traffic statistics, etc. The collected port status data is parsed and processed to extract key status information for subsequent adaptation evaluation.
[0063] According to the parsed port status data, the port status is divided into different categories, such as normal status, warning status, error status, etc. The status classification should be based on preset thresholds and conditions. Feedback the real-time port status to the network administrator in the form of a graphical interface, log record or alarm notification. Before port adaptation, a set of clear adaptation evaluation standards should be formulated, including key indicators such as port connection speed, data transmission stability, error rate, and packet loss rate. Compare the real-time port status with the adaptation evaluation standards to evaluate the effect of port adaptation. The evaluation process involves a comprehensive analysis of multiple indicators to determine whether the port meets the expected performance and stability requirements. Through real-time port status detection, problems such as unstable port connection and data transmission errors can be discovered in time, so as to quickly locate and repair the fault and avoid the problem from expanding and affecting the overall stability and reliability of the network. Adaptation evaluation can predict and identify potential network risks, such as port speed mismatch and duplex mode conflict. By adjusting and optimizing the configuration in advance, these risks can be effectively prevented.
[0064] Through the above technical solution, it is allowed to dynamically determine the port requirements according to the actual needs of the user and the current equipment application environment information, so as to select the most suitable interface module for adaptation, reduce the professional restrictions in the manual configuration process, and have flexibility, so that the modular switch can easily cope with various network scenarios and demand changes; when it is necessary to add a new interface module or upgrade an existing module, it can be achieved through a simple adaptation process without large-scale hardware or software changes to the switch, thereby improving the scalability of the system; through the adaptation authentication process, it can be ensured that only users with corresponding permissions can perform port adaptation on the modular switch, effectively preventing unauthorized access and misoperation, and enhancing the security of the system; according to the port requirement information and adaptation permission information, the interface module to be controlled can be accurately selected, avoiding resource waste and unnecessary configuration; by generating accurate module control signals, it can ensure the perfect adaptation between the interface connection module and the interface module to be controlled, thereby optimizing the allocation and use of network resources, automating the adaptation process, reducing the need for manual intervention, and improving the efficiency and accuracy of adaptation. The module control signal generated in real time can quickly respond to the port reconfiguration request, shorten the adaptation time, and reduce the risk of business interruption caused by configuration errors or delays.
[0065] The embodiment of this specification also provides a modular port adapter device for a switch, such as Figure 4 As shown, the device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above method.
[0066] The embodiments of the present specification also provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to execute the above method.
[0067] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0068] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0069] The devices and media provided in the embodiments of this specification correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0070] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0071] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0072] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0073] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0074] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0075] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0076] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0077] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0078] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A modular port adaptation method for a switch, characterized in that: Applied to a modular switch, the modular switch includes a switch mainboard, at least one interface module and an interface connection module, the method includes: Under the triggering of the user's port reconfiguration request, obtaining the current device application environment information and the switch interface module information of the modular switch, so as to determine the port requirement information of the modular switch based on the current device application environment information, wherein the port requirement information includes the required port type; Performing adaptation authentication on the user through the switch interface module information and the port reconfiguration request to determine the user's adaptation authority information for the modular switch, wherein the adaptation authority information includes a plurality of authority interface modules; Determine the interface module to be controlled corresponding to the modular switch according to the port requirement information and the adaptation authority information; Based on the interface module to be controlled, a module control signal corresponding to the interface connection module is generated, so as to perform port adaptation on the modular switch through the module control signal, wherein the module control signal includes a plurality of pin control signals.
2. A modular port adaptation method for a switch according to claim 1, characterized in that: Based on the current device application environment information, determining the port requirement information of the modular switch specifically includes: Extracting specified information from the current device application environment information to determine current network data information corresponding to the modular switch, wherein the current network data information includes current network topology data and current network traffic data; Based on the port reconfiguration request, determine the target application environment information corresponding to the port reconfiguration request to determine the target network data information, wherein the target network data information includes target network topology data and target network traffic data; The port requirement information of the modular switch is determined by using the current network data information and the target network data information.
3. A modular port adaptation method for a switch according to claim 1, characterized in that: The user is adapted and authenticated by the switch interface module information and the port reconfiguration request to determine the user's adaptation authority information for the modular switch, specifically including: Obtain user authentication information corresponding to the port reconfiguration requirement, and obtain switch authority allocation information corresponding to the modular switch, wherein the switch authority allocation information includes at least one authority organization with port reconfiguration authority and a port reconfiguration range of each authority organization; Authenticate the user through the user authentication information, and when the user authentication passes, determine the user's affiliated organization information; Performing reconfiguration authority authentication on the user according to the user's organization information and the switch authority allocation information; When the reconfiguration authority authentication of the user is passed, the adaptation authority information of the user to the modular switch is determined through the port reconfiguration range of each authority organization.
4. A modular port adaptation method for a switch according to claim 1, characterized in that: Determining the interface module to be controlled corresponding to the modular switch according to the port requirement information and the adaptation authority information specifically includes: Determine a port reconfiguration range of the user corresponding to the adaptation authority information, wherein the port reconfiguration range includes at least one newly added port type; According to the required port type in the port requirement information, a match is performed in the port reconfiguration range to determine the interface module to be controlled corresponding to the modular switch.
5. A modular port adaptation method for a switch according to claim 1, characterized in that: Based on the interface module to be controlled, generating a module control signal corresponding to the interface connection module specifically includes: According to the interface type of the interface module to be controlled, matching is performed in a pre-constructed interface mapping truth table to determine the pin level truth value combination corresponding to the interface module to be controlled; A connection pin level control signal of the interface connection module is generated according to a pin level true value combination corresponding to the interface module to be controlled.
6. A modular port adaptation method for a switch according to claim 5, characterized in that: The interface connection module includes a board-to-board connector for manually connecting the switch mainboard and various interface boards. The module control signal is used to perform port adaptation on the modular switch, specifically including: When the interface type of the control interface module does not belong to the fixed interface type in the switch interface module information, plugging and unplugging marking is performed in the interface connection module according to a preset indication rule through the module control signal; The plug-in and pull-out trigger information of the user's interface board is received through the plug-in and pull-out marking, and port adaptation is performed on the modular switch under the triggering of the interface board plug-in and pull-out trigger information.
7. A modular port adaptation method for a switch according to claim 5, characterized in that: The modular switch is adapted for ports by means of the module control signal, specifically comprising: When the interface type of the control interface module belongs to the fixed interface type in the switch interface module information, determining the target control pin of the interface connection module according to the module control signal corresponding to the interface connection module; Determine the enable state of each of the target control pins according to the pin level true value combination corresponding to the interface module to be controlled; Port adaptation is performed on the modular switch according to the enable state of each target control pin.
8. A modular port adaptation method for a switch according to claim 1, characterized in that: After performing port adaptation on the modular switch through the module control signal, the method further includes: The modular switch is subjected to port status detection to determine the corresponding real-time port status, so as to perform adaptation evaluation on the port adaptation process according to the real-time port status.
9. A modular port adapter device for a switch, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 8.
10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Switch port configuring method and switch
CN105656665A
Switch port adaptation method, system and device and readable storage medium
CN115604374A
Extension structure of switch
CN221177742U
Port configuration method, device and frame-type communication apparatus for network interface module
WO2013120340A1
Cited By
Equipment management method of modular industrial switch and related equipment
CN119676085A
