WO2023050848A1 - Port sharing method and related device - Google Patents

Port sharing method and related device Download PDF

Info

Publication number
WO2023050848A1
WO2023050848A1 PCT/CN2022/095935 CN2022095935W WO2023050848A1 WO 2023050848 A1 WO2023050848 A1 WO 2023050848A1 CN 2022095935 W CN2022095935 W CN 2022095935W WO 2023050848 A1 WO2023050848 A1 WO 2023050848A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
shared
shared port
mode
switching instruction
Prior art date
Application number
PCT/CN2022/095935
Other languages
French (fr)
Chinese (zh)
Inventor
张波
姚益民
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023050848A1 publication Critical patent/WO2023050848A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Definitions

  • the present application relates to the field of computer technology, and in particular to a port sharing method, device and equipment, a computer-readable storage medium, and a computer program product.
  • a multi-node server is a server that includes multiple compute nodes within the same server frame.
  • a server frame is also called a chassis, and both the server frame and the computing node include panels for providing ports.
  • the panel can also be divided into a front panel and a rear panel.
  • the present application provides a method for port sharing.
  • the method switches the mode of the shared port by setting the shared port in the server box, thereby providing the functions of different ports. Since there is no need to set corresponding ports on the computing nodes, the cost of the computing nodes is saved. The panel space can meet the needs of the increasing number and variety of ports.
  • the present application also provides devices, devices, computer-readable storage media, and computer program products corresponding to the above methods.
  • the present application provides a port sharing method.
  • the method is performed by a multi-node server.
  • a multi-node server also known as a high-density server, is a high-density server in which multiple computing nodes are set in a server frame.
  • the server box includes at least one shared port, and the shared port is an N-in-one port, where N is greater than 1. For example, N may take a value of 4. Shared ports are used to provide different port functions by mode.
  • the multi-node server may receive a mode switching instruction, the mode switching instruction is used to switch the mode of the shared port, and then the multi-node server switches the shared port to a specified working mode according to the mode switching instruction.
  • the designated working mode is a mode in which the shared port provides designated functions.
  • the shared port that provides different port functions according to the mode is set on the panel of the server frame.
  • the shared port can provide the corresponding port function corresponding to the specified working mode. Specifies the function.
  • the panel space of computing nodes can be saved, and the panel space can be reserved for upgrading the specifications of multi-node servers, so as to meet the demands of increasing port quantity and port types.
  • the multi-node server may share ports of different nodes (for example, ports of the same type on different nodes). That is, the shared port can provide port functions to different computing nodes according to the mode.
  • this application refers to the above-mentioned shared port as the first shared port.
  • the first shared port may be any port in the at least one shared port.
  • the first shared port is used for time-sharing use by different computing nodes in the plurality of computing nodes, so as to provide port functions for the different computing nodes.
  • the multi-node server receives a first mode switching instruction, and the first mode switching instruction is used to switch the mode of the first shared port, and then the multi-node server switches the first shared port according to the first mode switching instruction.
  • the port switches to the first working mode.
  • the first working mode is a mode in which the first shared port is used by a designated computing node among the plurality of computing nodes and provides port functions for the designated computing node.
  • the method realizes the interaction with different computing nodes through the first shared port, for example, the operation and maintenance of different computing nodes can be realized based on the first shared port, thereby saving panel space and improving port utilization.
  • the multi-node server may also receive a state switching instruction for the first shared port, and then switch the first shared port to The state is switched to the operation and maintenance state.
  • the operation and maintenance state is used to identify the first shared port to transmit operation and maintenance information, so as to perform operation and maintenance on the multi-node server.
  • the multi-node server can realize time-sharing operation and maintenance of different computing nodes based on the first shared port, without setting up operation and maintenance ports on the panel of each computing node for operation and maintenance, which saves the panel space of computing nodes and improves The utilization rate of the first shared port.
  • the multi-node server may share different types of ports (for example, different types of ports of the same node). That is, the shared port can provide different types of port functions to at least one computing node among the multiple computing nodes.
  • the present application refers to the above-mentioned shared port as a second shared port.
  • the second shared port may be any port in the at least one shared port.
  • the multi-node server receives a second mode switching instruction, and the second mode switching instruction is used to switch the mode of the second shared port, and then the multi-node server switches the second shared port to the The port switches to the second working mode.
  • the second working mode is a mode in which the second shared port provides a specified type of port function for at least one computing node among the plurality of computing nodes.
  • the second shared port can respectively provide functions of a serial port or a network port through mode switching.
  • the multi-node server can provide computing nodes with different types of port functions based on the second shared port, effectively reducing the number of ports, thereby saving the panel space of the computing nodes and improving port utilization.
  • the different types of port functions provided by the second shared port are predetermined according to one or more of use frequency, importance, and speed of each type of port. Specifically, before the multi-node server leaves the factory, the port functions that can be integrated on one port can be determined according to the use frequency, importance, and speed of various types of ports, and then the above port functions can be integrated on a shared port, so as to obtain the first Two shared ports.
  • port functions corresponding to multi-type ports with low frequency of use, multi-type ports with low importance, or multi-type ports with low speed among various types of ports may be integrated to obtain the second shared port.
  • port utilization can be improved, the number of ports can be reduced, and the panel space of computing nodes can be saved.
  • port functions corresponding to ports with low frequency of use, low importance, and low speed can be integrated to reduce the impact on services.
  • the mode switching instruction is triggered by at least one of a hardware button, software assignment, or timing trigger. Mode switching is performed in the above manner without plugging and unplugging cables, which improves the maintainability of the multi-node server and reduces maintenance difficulty.
  • the hardware button includes multiple key modes, and the multiple key modes include long press, short press, or double press.
  • the multiple key modes include long press, short press, or double press.
  • an air outlet, a non-shared port and/or a power supply are set in an idle area of the panel of each of the multiple computing nodes, and the idle area is set in the server frame. After the above-mentioned shared port, the area reserved for the panel of the computing node.
  • adding an air outlet in the idle area can effectively improve the heat dissipation capability of the multi-node server and improve the performance of the multi-node server.
  • Adding a power supply in an idle area can increase the power supply specification of the multi-node server, thereby increasing the power supply capacity.
  • the multi-node server includes a switch circuit, and the switch circuit is configured to switch a circuit connected to the shared port.
  • the switch circuit includes at least one of a switch and a switch, the switch or the switch is used to connect the at least one shared port in the server box, and the platform controller center connected to the multi-node server, At least one of a baseboard management controller and a complex programmable logic device.
  • the switching circuit By switching the circuit connected by the shared port, the switching circuit realizes the time-sharing provision of port functions for different computing nodes, or provides different types of port functions for the same computing node, thereby reducing the number of ports and saving the panel space of the computing nodes. Increasing port count and port type requirements.
  • the present application provides a port sharing device.
  • the port sharing apparatus includes various modules for executing the first aspect or the port sharing method in any possible implementation manner of the first aspect.
  • each module please refer to the related content description of the first aspect.
  • the present application provides a multi-node server, the multi-node server includes a server box and a plurality of computing nodes, the server box includes at least one shared port, and the multi-node server is used to execute the method described in the first aspect or The port sharing method in any implementation manner of the first aspect.
  • the server frame includes a circuit board in the frame, and the circuit board in the frame can execute the port sharing method in the first aspect or any implementation manner of the first aspect, so that the shared port is used by multiple computing nodes in time sharing, or
  • the shared port provides different types of port functions for at least one of the plurality of computing nodes.
  • the present application provides a computer-readable storage medium, where an instruction is stored in the computer-readable storage medium, and the instruction instructs the device to execute the method described in the first aspect or any implementation manner of the first aspect. Port sharing method.
  • the present application provides a computer program product containing instructions, which, when run on a device, causes the device to execute the port sharing method described in the first aspect or any implementation manner of the first aspect.
  • FIG. 1 is a schematic diagram of a rear panel and a front panel of a multi-node server provided in an embodiment of the present application;
  • FIG. 2 is a schematic diagram of a port structure of a multi-node server provided in an embodiment of the present application
  • FIG. 3 is a schematic diagram of a rear panel of a multi-node server provided in an embodiment of the present application
  • FIG. 4 is a schematic diagram of a rear panel of a multi-node server provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a rear panel of a multi-node server provided in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a switching circuit provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of a port sharing method provided in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a port sharing device provided in an embodiment of the present application.
  • FIG. 9 is a hardware structural diagram of a multi-node server provided by an embodiment of the present application.
  • a multi-node server also called a high-density server, refers to a server that includes multiple computing nodes in a single server box. Due to its powerful computing power, ultra-high storage density, and easy management and maintenance, multi-node servers are widely used in various business scenarios such as cloud computing and high-performance computing.
  • a multi-node server can be used to build an information technology (information technology, IT) infrastructure of a cloud data center.
  • the server frame is also referred to as a chassis
  • the computing node may be a plug-in server that can be inserted into the server frame, and the plug-in server may be, for example, a blade server or a rack server.
  • a port refers to the outlet for communication between a computer and other equipment (such as the multi-node server mentioned above) and the outside world.
  • a port may also be called an interface, and some typical examples of ports include USB ports or serial ports.
  • Ports can be divided into different types based on the different functions they implement. For example, some ports are used for operation and maintenance, and some ports are used for power control and user identity (UID) control, and the ports can be divided into different types such as operation and maintenance ports and control ports based on functions.
  • UID user identity
  • This application provides a port sharing method.
  • the shared port that provides different port functions according to the mode is set on the panel of the server frame.
  • the shared port can provide the corresponding port function corresponding to the specified working mode. Specifies the function.
  • the panel space of computing nodes can be saved, and the panel space can be reserved for upgrading the specifications of multi-node servers, so as to meet the demands of increasing port quantity and port types.
  • the shared port provides different port functions according to modes may include multiple implementation manners.
  • the first implementation manner is that the shared port can provide port functions to different computing nodes according to modes. Specifically, when the shared port is switched to the first working mode, the shared port can be used by a designated computing node among the plurality of computing nodes to provide port functions for the designated computing node. For example, when a multi-node server includes 4 computing nodes, a shared port such as a serial port can provide port functions for computing nodes 1 to 4 through mode switching.
  • a second implementation manner is that the shared port may provide different types of port functions to at least one computing node among the plurality of computing nodes.
  • the shared port when the shared port is switched to the second working mode, can provide at least one computing node among the plurality of computing nodes with a specified type of port function.
  • a shared port in the physical form of RJ45 can provide functions of a serial port or a network port respectively through mode switching.
  • the shared port that can be used by different computing nodes in time sharing to provide port functions for different computing nodes is called the first shared port, which will provide different types of ports for at least one computing node among multiple computing nodes.
  • the shared port that functions as the first port is called the second shared port.
  • ports can usually be deployed on the panel of the computing node or the panel of the server box.
  • a panel is an interface for interaction on the shell of a compute node or server box.
  • the multi-node server 100 includes a plurality of computing nodes 10 and a server box 20 .
  • FIG. 1 uses a multi-node server 100 as an example to illustrate with 4 servers of computing nodes 10 arranged in a server frame 20 with a height of 2 units, that is, a 2U4 server.
  • U is a unit representing the external size of the server (such as the multi-node server 100 ), and U is an abbreviation of unit.
  • the external dimensions are usually characterized by width and height, for example, the width is 48.26cm, that is, 19 inches, and the height is a multiple of 4.445cm. Since the width is 19 inches, the server frame 20 is also sometimes referred to as a "19-inch rack".
  • the basic unit of height is 4.445cm.
  • 1U is 4.445cm
  • 2U is 2 times of 1U, which is 8.89cm.
  • the rear panel of the multi-node server 100 includes the rear panel 11 of the plurality of computing nodes 10 and the rear panel 21 of the server frame 20 .
  • At least one standard card is deployed on the rear panel 11 of each computing node 10 , where the standard card refers to a standard IO card, that is, an IO card whose parameters (such as electrical parameters and mechanical parameters) conform to standards.
  • the standard card may include different types such as an Ethernet standard card, a high-speed peripheral component interconnect express (PCI-E) standard card, and the like.
  • PCI-E peripheral component interconnect express
  • two standard cards are deployed on the rear panel 11 of each computing node 10 for illustration.
  • each computing node 10 is also equipped with an onboard service port (that is, an onboard service IO port), an operation and maintenance port (that is, an operation and maintenance IO port), a management port, and a control port (that is, a control IO port).
  • an onboard service port that is, an onboard service IO port
  • an operation and maintenance port that is, an operation and maintenance IO port
  • a management port that is, a management IO port
  • a control port that is, a control IO port
  • the operation and maintenance port refers to a port used for operation and maintenance of the computing node 10 .
  • the operation and maintenance port may include a video graphics array (Video Graphics Array, VGA) and a serial port (serial port).
  • a serial port can also be called a serial interface, a serial communication port (cluster communication port, COM), or a serial port.
  • the serial port can usually be a 9-pin, 4-pin or 25-pin interface with a maximum rate of 115200 bits per second (bit per second, bps), and is usually used to connect a mouse and a communication device (such as an external modem).
  • Serial ports can be divided into different types such as RS-232-C, RS-422, RS485, and USB according to electrical standards and protocols.
  • RS-232-C is also called a standard serial port, and the standard serial port is specifically a 9-pin D-shaped interface.
  • RS-422 is a balanced communication interface that increases the transmission rate and transmission distance, and allows multiple receivers to be connected on a balanced bus.
  • RS-485 is a balanced communication interface. RS-485 adds multi-point and two-way communication capabilities on the basis of RS-422, that is, it allows multiple transmitters to be connected to the same bus, and at the same time increases the drive capability and Conflict protection features, extending the common mode range of the bus.
  • USB is a four-pin interface, with two pins in the middle for data transfer and two pins on the edge for powering peripherals.
  • the control port is a port for realizing a control function, for example, may include a button and a corresponding indicator light for realizing the control function.
  • the management port is a port for implementing management functions. For example, a user can remotely manage the computing nodes 10 in the multi-node server 100 through the management port.
  • the onboard service port refers to a service-related port integrated in the mainboard.
  • two power supplies are deployed on the rear panel 11 of the computing node 10 for supplying power to the computing node 10 .
  • the front panel of the multi-node server 100 includes the front panel 12 of the plurality of computing nodes 10 and the front panel 22 of the server frame 20 .
  • the front panel 12 of each computing node 10 is equipped with storage media, for example, six 2.5-inch hard disks.
  • the front panel 21 of the server frame 20 includes the control components of the plurality of computing nodes 10 and the fixed components of the server frame 20.
  • the panel space of the computing node 10 is relatively crowded.
  • the present application sets a shared port on the server frame 20, and multiple The panel of the computing node 10 is used to set area reservations for corresponding ports, so as to meet the requirements of increasing port numbers and port types.
  • the multi-node server 100 includes a plurality of computing nodes 10 and a server box 20 .
  • the server frame 20 includes at least one shared port, such as a first shared port 23 and a second shared port 24 .
  • the first shared port 23 and the second shared port 24 may be respectively disposed on a panel of the server frame 20, for example, disposed on a rear panel of the server frame.
  • Each shared port in the server chassis 20 may include multiple working modes.
  • the first shared port 23 when each working mode is enabled, one computing node 10 in the multi-node server 100 can provide an interface for communicating with external devices of the multi-node server 100 through the first shared port 23 .
  • the second shared port 24 when each working mode is enabled, the second shared port 24 provides a type of port function.
  • the first shared port 23 can be switched to the first working mode.
  • the first working mode is a mode in which the first shared port 23 is used by a designated computing node among the plurality of computing nodes 10 and provides a port function for the designated computing node.
  • the second shared port 24 can be switched to the second working mode.
  • the second shared port 24 provides a specified type of port function for at least one computing node 10 among the plurality of computing nodes 10 .
  • the port function of the specified type can be a serial port or a network port.
  • the network port may include a Gigabit Ethernet port (gigabit ethernet, GE) or a 10GE network port.
  • the server frame 20 may further include a switching circuit 25 .
  • the switching circuit 25 receives a first mode switching instruction for the first shared port 23, and the switching circuit 25 can switch the first shared port 23 to the first working mode according to the first mode switching instruction.
  • the switching circuit 25 receives a second mode switching instruction for the second shared port 24, and the switching circuit 25 can switch the second shared port 24 to the second working mode according to the second mode switching instruction.
  • the first shared port 23 may be an operation and maintenance port. Based on this, before receiving the first mode switching instruction for the first shared port 23, the switching circuit 25 may also receive a state switching instruction for the first shared port, and then according to the state switching instruction, switch the The state of the first shared port 23 is switched to the operation and maintenance state. Wherein, the operation and maintenance status is used to identify the first shared port to transmit operation and maintenance information, so as to perform operation and maintenance on the multi-node server 100 .
  • the mode switching commands such as the first mode switching command and the second mode switching command may be triggered by at least one of hardware buttons, software assignment or timing triggers.
  • the hardware button may include a hardware button corresponding to each working mode, or may be a hardware button shared by multiple working modes, that is, a shared button.
  • the sharing button includes multiple key modes, such as short press, long press, or double press.
  • the first shared port 23 and the second shared port 24 are deployed on the right mounting ear of the panel (for example, the rear panel) of the service box 20 .
  • the first shared port 23 may be a VGA port
  • the second shared port 24 may be a serial port.
  • a hardware button 26 is deployed on the left mounting ear of the panel of the service box 20, and the hardware button 26 is used to switch nodes, so that the first shared port 23 is used by different computing nodes in time-sharing.
  • the default node can be set as node 1, which is N1 in FIG. 3 .
  • the first shared port 23 is used by N1 by default.
  • the hardware button 26 When the user presses the hardware button 26 for a long time, it can be switched to N2, and the first shared port 23 is used by N2.
  • an indicator light combination 29 is arranged on the left hanging ear of the panel of the service box 20, and the indicator light combination includes an indicator light with the word "KVM".
  • the indicator light with the word "KVM” is used to indicate the node to which the first shared port 23 is currently connected. For example, when the first shared port 23 is connected to N2, the "KVM” indicator corresponding to N2 is on, and the “KVM” indicator lights corresponding to N1, N3 and N4 are off.
  • Combinations 29 of indications and the like may also include a health light and a UID light.
  • the health lights of each node (such as the light in the shape of an electrocardiogram in FIG. 3 ) are used to indicate the health status of each node.
  • the health lights can indicate different health states of the nodes by being on and off, and in other embodiments, the health lights can indicate different health states of the nodes by different colors, for example, green and red.
  • the UID light of each node is used to identify the node.
  • the UID light is usually used in conjunction with the hardware button 27 .
  • the hardware button 27 is a UID button. When the UID button is triggered, the UID light corresponding to the node currently connected to the first shared port 23 can be lighted, so that the currently connected node can be quickly determined through the UID light, which is beneficial to the operation and maintenance personnel. Operation and maintenance work.
  • a hardware button 28 is also disposed on the left hanging ear in the panel of the server frame 20 .
  • the hardware button is 28 power buttons, and the power button can be shared by multiple computing nodes such as N1 to N4. Specifically, when the power button is triggered, the power can be started to supply power to multiple computing nodes 10 .
  • the power button can also integrate a power indicator light, which can light up when the power supply is turned on to supply power to multiple computing nodes.
  • other hardware buttons may also be deployed on the panel of the server frame 20 for switching modes for the second shared port 24 .
  • the hardware button can also switch modes by long press, short press, etc., so as to switch the second shared port 24 to a different type of port.
  • the second shared port is COM by default. When the user presses the hardware button for a long time, the second shared port is switched to the GE network port, and when the user presses the hardware button for a short time, it is switched back to COM.
  • the different types of port functions provided by the type of the second shared port 24 may be predetermined according to one or more of the use frequency, importance and speed of each type of port.
  • the multi-node server 100 may integrate multiple types of port functions that are less frequently used into one port, so as to realize different types of port sharing.
  • the multi-node server 100 may integrate multiple types of ports of lower importance into one port, so as to realize different types of port sharing.
  • the user can also trigger a state switching operation for the first shared port 23 , for example, the state switching operation can be triggered through the hardware button 26 .
  • the hardware button 26 may generate a state switching instruction for the first shared port 23 in response to the state switching operation.
  • the switching circuit 25 can switch the state of the first shared port 23 to the operation and maintenance state according to the above state switching instruction.
  • the first shared port 23 may automatically exit the operation and maintenance state.
  • the first shared port 23 may also exit the operation and maintenance state based on a user-triggered exit operation and maintenance operation.
  • This method can effectively save the panel space of the computing node 10 by setting the shared port on the panel of the server frame 20 to be shared by multiple computing nodes such as N1 to N4, or sharing multiple types of ports.
  • the panel of the computing node may reserve an area, which is the free area of the panel of the computing node. Air outlets, power supplies, or non-shared ports can be set in the free area of the panel of each computing node, so as to improve heat dissipation, increase power supply specifications, or increase port specifications.
  • this can increase the air outlet area, thereby improving the ventilation and cooling capabilities of the multi-node server 100, and improving the energy efficiency of the multi-node server 100.
  • the panel space saved by computing nodes in the multi-node server 100 can also be used to deploy non-shared ports, such as some non-shared service ports, so that the port specifications of the multi-node server 100 can be improved to meet the increasing number of ports and port type requirements to improve the performance of the multi-node server 100 .
  • the multi-node server 100 can switch the shared port to a different mode through a mode switching instruction, without the need to switch by cable plugging, thereby improving the ease of maintenance of the multi-node server 100 sex.
  • the first shared port 23 and the unshared port 1 of the computing node 10 are connected to the first port controller 13
  • the second shared port 24 and the unshared port 2 of the computing node 10 are connected to the second port controller 14 .
  • the shared port and the non-shared port are set on different sides, it can also meet the requirements of multi-side operation and maintenance.
  • the switching circuit 25 of the multi-node server 100 is used to switch the loop connected to the shared port, so as to be used by different computing nodes 10, or to be used by at least one computing node among the multiple computing nodes 10 10 provides different types of port functions.
  • the switch circuit 25 may include at least one of a switch and a switch, and the switch or switch is used to connect the shared port on the server frame 20, and connect the platform control on the motherboard of the computing node 10 in the multi-node server 100 At least one of a platform controller hub (PCH) chip, a baseboard management controller (BMC) and a complex programmable logic device (complex programmable logic device, CPLD).
  • PCH platform controller hub
  • BMC baseboard management controller
  • CPLD complex programmable logic device
  • the switching circuit includes a switch and a switch
  • the switch may be a multi-way switch, such as a multi-pole multi-throw switch.
  • the bus physical channel of the switch is usually fully connected, and the switch can realize the switching of the shared port through software.
  • the bus physical channel of the switch is time-sharingly connected, and the switching of the shared port is realized through the control signal.
  • the network port or other high-speed ports can be switched by a switch.
  • the low-speed port can be connected to different bus physical channels by switching the switch, so as to realize the switching of the low-speed shared port.
  • the switching circuit can be connected to a plurality of computing nodes 10 such as N1 to N4, and at least one of the platform controller center PCH, BMC and CPLD is arranged on the motherboard of each computing node 10 .
  • the PCH is used to connect to a type A port such as a USB port
  • the BMC is used to connect to a type B port such as a VGA
  • the CPLD is used to connect to a button such as a power button and a UID button.
  • A-type port and B-type port can be set on the panel of the server frame in the form of a shared port, and the PCH and BMC can be connected to the shared port through a switching circuit, and then the switching circuit can perform mode switching according to a mode switching command (such as a switching signal) , thereby switching the shared port.
  • a mode switching command such as a switching signal
  • the switch in the switching circuit is physically connected to N1 to N4.
  • the user needs to operate and maintain N1, he can only forward data packets to N1 through software settings, so as to realize the operation and maintenance of N1. .
  • buttons such as power button, UID button or node switch button can also be set on the panel of the server box in the form of shared buttons, and the CPLD can be connected to the shared button through a switching circuit to switch modes.
  • the power button and the UID button can be directly connected to the switching circuit
  • the node switching button can be connected to the switching circuit through the controller.
  • the switching circuit and the controller can be deployed on the circuit board inside the frame.
  • Type A ports and/or Type B ports can also be set on the panels of N1 to N4, and users can use the shared ports on the panels of the server box 20 or the panels of N1 to N4
  • the set A-type ports and B-type ports execute related operations, which is not limited in this embodiment.
  • no type A port and/or type B port may be provided on the panels of N1 to N4, for example, more power supply or service ports may be provided, so that the power supply specification or port specification may be improved.
  • FIG. 6 is only a schematic implementation manner of a switching circuit, and in other possible implementation manners of the embodiment of the present application, the switching circuit may also include only a switching switch, or only a switch. Similarly, the switch circuit can also connect the shared port with the PCH, BMC, and CPLD in other ways.
  • the structure of the multi-node server 100 is introduced above, and next, the port sharing method provided by the embodiment of the present application is introduced.
  • the method includes:
  • the multi-node server 100 receives a state switching instruction for the first shared port 23 .
  • the state switching instruction is used to switch the state of the port (for example, the first shared port 23 ).
  • the state of the port may include an operation and maintenance state and a non-operation and maintenance state. Based on this, the state switching instruction can be used to switch the state of the port from the non-operation and maintenance state to the operation and maintenance state, so as to perform operation and maintenance.
  • the above state switching instruction may be triggered by a user.
  • the multi-node server 100 may provide a hardware button for triggering a state switching operation, the user may trigger the state switching operation by operating the hardware button, and the hardware button generates a state switching instruction in response to the state switching operation triggered by the user.
  • the above state switching instruction may also be automatically triggered by the multi-node server 100.
  • the multi-node server 100 may set a trigger condition, and when the trigger condition is met, the state switching instruction is automatically generated.
  • the trigger condition may be a time condition.
  • the trigger condition can be set to switch the port from the non-operation and maintenance state to the operation and maintenance state every N seconds, and keep the operation and maintenance state for M seconds, where M and N are positive integers. It should be noted that during the period of maintaining the operation and maintenance state for M seconds, if the operation and maintenance data or instructions are received, the timing can be stopped, and after the operation and maintenance is completed, the state can be switched back to the non-operation and maintenance state.
  • Trigger conditions can also be numerical conditions.
  • the multi-node server 100 can run software, such as random number generation software, and the multi-node server 100 can generate a state switching instruction according to the value assigned by the software. For example, when the software value is 1, the multi-node server 100 generates the above state switching instruction.
  • S704 The multi-node server 100 switches the state of the first shared port 23 to the operation and maintenance state according to the state switching instruction.
  • the multi-node server 100 can enable the operation and maintenance function according to the state switching instruction, so as to switch the state of the first shared port 23 from the non-operation and maintenance state to the operation and maintenance state.
  • enabling the operation and maintenance function may be to start the operation and maintenance software, open the log system, and so on.
  • the operation and maintenance status is used to identify the first shared port 23 to transmit operation and maintenance information, so as to perform operation and maintenance on the multi-node server 100 .
  • the multi-node server 100 receives a first mode switching instruction.
  • the first mode switch instruction refers to an instruction to switch the first shared port 23 to the first working mode.
  • the first working mode is a mode in which the first shared port is used by a designated computing node among the plurality of computing nodes 10 and provides a port function for the designated computing node.
  • the first mode switching instruction can be triggered by the user.
  • the multi-node server 100 may provide a hardware button for triggering a mode switching operation, the user may trigger the mode switching operation by operating the hardware button, and the hardware button generates a first mode switching instruction in response to the mode switching operation triggered by the user.
  • the first mode switching instruction generated by the hardware button may be different depending on the manner in which the user operates the hardware button.
  • the first shared port is connected to N1 by default, the user can switch to N2 by long pressing the hardware button, short press the hardware button to switch to N3, and double press the hardware button to switch to N4.
  • the first mode switching instruction may also be automatically triggered by the multi-node server 100 .
  • the multi-node server 100 may be triggered by software value assignment or timing.
  • the specific trigger process please refer to the relevant content description of S702, which will not be repeated here.
  • S708 The multi-node server 100 switches the first shared port 23 to the first working mode according to the first mode switching instruction.
  • the multi-node server 100 may execute corresponding logic through the switching circuit according to the first mode switching instruction, so as to switch the first shared port 23 to the first working mode.
  • the first shared port 23 can be connected to the specified computing node, and the operation and maintenance personnel can realize the operation and maintenance of the specified computing node based on the first shared port 23 .
  • the multi-node server 100 can realize the time-sharing connection between the first shared port 23 and different computing nodes 10 according to different first mode switching instructions, and then realize the connection between the first shared port 23 and the The corresponding computing nodes 10 perform operation and maintenance. On the one hand, it can meet the operation and maintenance requirements; on the other hand, it increases the frequency of use of the first shared port 23 , avoids waste, saves panel space, and can improve the specifications of the multi-node server 100 .
  • the above S702 to S704 are optional steps in the embodiment of the present application, and the above S702 to S704 may not be executed to execute the port sharing method of the present application.
  • the first shared port 23 is not an operation and maintenance port, for example, when the first shared port 23 is a management port or a control port, the multi-node server 100 may not execute the above S702 to S708.
  • the multi-node server 100 implements port sharing among different computing nodes 10 .
  • the multi-node servers 100 may also share different types of ports. Specifically, before leaving the factory, one or more of the frequency of use, importance and speed of various types of ports may be acquired. Then, according to the frequency of use, importance and rate (such as data transmission rate) of each type of port, set the different types of port functions that need to be shared, and integrate the different types of port functions into the same port, that is, the second shared port twenty four.
  • ports of different types may have the same physical form and be connected to different types of buses.
  • a port in the physical form of RJ45 may be connected to COM, a Universal Asynchronous Receiver/Transmitter (UART) type bus, or may be connected to a GE or 10GE type bus.
  • a port with a physical form of USB Type C can be connected to a USB3.0 or USB2.0 bus, or can be connected to a VGA, high definition multimedia interface (HDMI) or GE type bus.
  • HDMI high definition multimedia interface
  • the multi-node server 100 may receive the second mode switching instruction.
  • the generation method of the second mode switching instruction may refer to the first mode switching instruction, and will not be listed here.
  • the multi-node server 100 can switch the second shared port 24 to the second working mode according to the second mode switching instruction.
  • the multi-node server 100 may execute corresponding logic through the switching circuit 25 according to the second mode switching instruction, so as to switch the second shared port 24 to the second working mode.
  • the second working mode is a mode in which the second shared port 24 provides a specified type of port function for at least one computing node 10 among the plurality of computing nodes 10 .
  • the second shared port 24 can be connected to multiple computing nodes 10 , or can be connected to one computing node 10 among the multiple computing nodes 10 , and provides a specified type of port function for the connected computing nodes 10 .
  • the multi-node server 100 can switch the second shared port 24 from a serial port such as COM or UART to a GE network port or a 10GE network port according to the second mode switching instruction.
  • the multi-node server 100 may switch the second shared port 24 from USB to VGA, HDMI or Ethernet port according to the second mode switching instruction.
  • the embodiments of the present application provide a port sharing method.
  • the panel setting of the server frame 20 provides a shared port with different port functions according to the mode, such as the first shared port 23 or the second shared port 24, by switching the mode of the shared port, for example, switching to a specified working mode, you can Make the shared port provide the specified function corresponding to the specified working mode. , thereby saving and improving the utilization rate of the panel space of the computing nodes, and reserving the panel space for upgrading the specifications of the multi-node server 100, which can meet the demands of increasing port quantity and port type services.
  • the device 800 is applied to a multi-node server 100, the multi-node server 100 includes a server frame 20 and a plurality of computing nodes 10, and the server frame 20 includes at least one shared port , the device 800 includes:
  • the communication module 802 is configured to receive a mode switching instruction, the mode switching instruction is used to switch the mode of the shared port, and the shared port is used to provide different port functions according to the mode;
  • the switching module 804 is configured to switch the shared port to a designated working mode according to the mode switching instruction, and the designated working mode provides a designated function for the shared port.
  • the communication module 802 is specifically configured to:
  • the first mode switching instruction is used to switch the mode of the first shared port
  • the first shared port is any one of the at least one shared port
  • the first shared port uses used by different computing nodes in the plurality of computing nodes in time-sharing, so as to provide port functions for the different computing nodes;
  • the switching module 804 is specifically used for:
  • the first shared port is switched to a first working mode, and the first working mode is that the first shared port is used by a designated computing node among the plurality of computing nodes, And provide a port function mode for the specified computing node.
  • the communication module 802 is also configured to:
  • the switching module is also used for:
  • the state of the first shared port is switched to an operation and maintenance state, and the operation and maintenance state is used to identify the first shared port to transmit operation and maintenance information, so as to operate the multi-node server dimension.
  • the communication module 802 is specifically configured to:
  • the second mode switching instruction is used to switch the mode of the second shared port, the second shared port is any port in the at least one shared port, and the second shared port uses providing different types of port functions for at least one of the plurality of computing nodes;
  • the switching module 804 is specifically used for:
  • the second shared port is switched to a second working mode, and the second working mode is that the second shared port provides at least one computing node among the plurality of computing nodes Specifies the mode of the port function for the type.
  • the different types of port functions provided by the second shared port are predetermined according to one or more of use frequency, importance, and speed of each type of port.
  • the mode switching instruction is triggered by at least one of a hardware button, a software assignment, or a timing trigger.
  • the hardware button includes multiple key modes, and the multiple key modes include long press, short press, or double press.
  • an air outlet, a non-shared port and/or a power supply are set in an idle area of the panel of each of the multiple computing nodes, and the idle area is set in the server frame. After the above-mentioned shared port, the area reserved for the panel of the computing node.
  • the multi-node server includes a switch circuit, the switch circuit is used to switch the loop connected to the shared port, the switch circuit includes at least one of a switch and a switch, and the switch Or the switch is used to connect to the at least one shared port in the server box and at least one of the platform controller center, baseboard management controller, and complex programmable logic device of the multi-node server.
  • the port sharing device 800 may correspond to the implementation of the method described in the embodiment of the present application, and the above-mentioned and other operations and/or functions of the various modules/units of the port sharing device 800 are respectively in order to realize the implementation shown in FIG. 7
  • the corresponding flow of each method in the example is not repeated here.
  • the embodiment of the present application also provides a multi-node server 100 .
  • the multi-node server 100 is specifically used to realize the functions of the port sharing device 800 in the embodiment shown in FIG. 8 .
  • FIG. 9 provides a hardware structure diagram of a multi-node server 100.
  • the multi-node server 100 includes a server frame 10 and a plurality of computing nodes 20, wherein the server frame 10 includes a circuit board 15 in the frame.
  • a switching circuit is provided in the circuit board 15 in the frame, and the switching circuit is used to switch the circuit connected to the shared port on the panel of the server frame 20 .
  • Each computing node 20 includes a bus 901, a processor 902, a communication interface 903, and a memory 904.
  • the processor 902 , the memory 904 and the communication interface 903 communicate through the bus 901 .
  • the bus 901 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, etc.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 9 , but it does not mean that there is only one bus or one type of bus.
  • the processor 602 may be a central processing unit (central processing unit, CPU), a graphics processing unit (graphics processing unit, GPU), a neural network processor (neural network processing unit, NPU), a microprocessor (micro processor, MP) or Any one or more of digital signal processors (digital signal processor, DSP) and other processors.
  • CPU central processing unit
  • GPU graphics processing unit
  • NPU neural network processing unit
  • MP microprocessor
  • DSP digital signal processors
  • the communication interface 903 is used for communicating with the outside.
  • the communication interface 903 is used to transmit operation and maintenance information for operation and maintenance, or the communication interface 903 is used to transmit business data to provide external services.
  • the memory 904 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM).
  • Memory 1004 can also include non-volatile memory (non-volatile memory), such as read-only memory (read-only memory, ROM), flash memory, hard disk drive (hard disk drive, HDD) or solid state drive (solid state drive) , SSD).
  • the circuit board 15 in the frame is connected to a plurality of computing nodes 20, and the circuit board 15 in the frame can execute the aforementioned port sharing method, so that the shared port is used by different computing nodes 20 in the multiple computing nodes 20 in time-sharing for the different computing nodes 20.
  • the node 20 provides port functions, or the shared port provides at least one computing node 20 among the plurality of computing nodes 20 with different types of port functions.
  • the embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium may be any available medium that a computing device can store, or a data storage device such as a data center that includes one or more available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state hard disk), etc.
  • the computer-readable storage medium includes instructions, which instruct the multi-node server 100 to execute the port sharing method described above.
  • the embodiment of the present application also provides a computer program product.
  • the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the multi-node server 100, the processes or functions according to the embodiments of the present application are generated in whole or in part.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, from a website, computing device, or data center via Wired (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) transmission to another website site, computing device, or data center.
  • Wired eg, coaxial cable, fiber optic, digital subscriber line (DSL)
  • wireless eg, infrared, wireless, microwave, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present application provides a port sharing method, which is executed by a multi-node server. The multi-node server comprises a server frame and multiple computing nodes, and the server frame comprises shared ports that provide different port functions according to modes. The method comprises: receiving a mode switching instruction, and switching shared ports to a specified working mode according to the mode switching instruction. In the method, space of a panel is reintegrated, the shared ports are provided on the panel of the server frame, and mode switching is performed on the shared ports, such that the shared ports provide specified functions corresponding to a specified working mode. In this way, panel space of computing nodes is saved, and panel space is reserved for upgrading the specification of the multi-node server, so as to meet the needs of increasing port numbers and port types.

Description

端口共享方法以及相关设备Port sharing method and related equipment
本申请要求于2021年09月30日提交中国国家知识产权局、申请号为202111163652.3、发明名称为“端口共享方法以及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on September 30, 2021, with the application number 202111163652.3, and the title of the invention is "port sharing method and related equipment", the entire content of which is incorporated by reference in this application middle.
技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种端口共享方法、装置以及设备、计算机可读存储介质、计算机程序产品。The present application relates to the field of computer technology, and in particular to a port sharing method, device and equipment, a computer-readable storage medium, and a computer program product.
背景技术Background technique
为了满足日益增长的计算需求,多节点服务器应运而生。多节点服务器是同一服务器框内包括多个计算节点的服务器。服务器框也称作机框,服务器框和计算节点均包括用于提供端口的面板。该面板还可以分为前面板和后面板。In order to meet the increasing computing demands, multi-node servers emerge as the times require. A multi-node server is a server that includes multiple compute nodes within the same server frame. A server frame is also called a chassis, and both the server frame and the computing node include panels for providing ports. The panel can also be divided into a front panel and a rear panel.
随着多节点服务器功率以及端口规格的提升,电源、标卡以及通用串行总线(universal serial bus,USB)等输入输出(input output,IO)端口数量和种类随之增加,导致计算节点的面板空间逐渐拥挤,产品规格提升难度增大。With the improvement of multi-node server power and port specifications, the number and types of input and output (IO) ports such as power supply, standard card, and universal serial bus (universal serial bus, USB) increase accordingly, resulting in the increase of computing node panel The space is gradually crowded, and it is more difficult to upgrade product specifications.
在面板空间有限的情况下,如何保证不断增加的端口数量和种类的需求成为业界重点关注的问题。In the case of limited panel space, how to ensure the increasing number and types of ports has become a major concern of the industry.
发明内容Contents of the invention
本申请提供了一种端口共享方法,该方法通过在服务器框设置共享端口,对共享端口进行模式切换,从而提供不同端口的功能,由于无需在计算节点分别设置对应的端口,节省了计算节点的面板空间,能够满足不断增加的端口数量和种类的需求。本申请还提供了上述方法对应的装置、设备、计算机可读存储介质以及计算机程序产品。The present application provides a method for port sharing. The method switches the mode of the shared port by setting the shared port in the server box, thereby providing the functions of different ports. Since there is no need to set corresponding ports on the computing nodes, the cost of the computing nodes is saved. The panel space can meet the needs of the increasing number and variety of ports. The present application also provides devices, devices, computer-readable storage media, and computer program products corresponding to the above methods.
第一方面,本申请提供了一种端口共享方法。该方法由多节点服务器执行。多节点服务器,也即高密服务器,是一种在服务器框内设置多个计算节点的高密度服务器。其中,所述服务器框包括至少一个共享端口,该共享端口为N合一端口,N大于1。例如N可以取值为4。共享端口用于按模式提供不同的端口功能。In a first aspect, the present application provides a port sharing method. The method is performed by a multi-node server. A multi-node server, also known as a high-density server, is a high-density server in which multiple computing nodes are set in a server frame. Wherein, the server box includes at least one shared port, and the shared port is an N-in-one port, where N is greater than 1. For example, N may take a value of 4. Shared ports are used to provide different port functions by mode.
具体地,多节点服务器可以接收模式切换指令,所述模式切换指令用于对所述共享端口进行模式切换,然后多节点服务器根据所述模式切换指令,将所述共享端口切换至指定工作模式。其中,所述指定工作模式为所述共享端口提供指定功能的模式。Specifically, the multi-node server may receive a mode switching instruction, the mode switching instruction is used to switch the mode of the shared port, and then the multi-node server switches the shared port to a specified working mode according to the mode switching instruction. Wherein, the designated working mode is a mode in which the shared port provides designated functions.
该方法通过重新整合面板空间,在服务器框的面板设置按模式提供不同端口功能的共享端口,通过对共享端口进行模式切换,例如切换至指定工作模式,可以使得共享端口提供与指定工作模式对应的指定功能。由此可以节省计算节点的面板空间,为提升多节点服务器的规格预留面板空间,满足不断增加的端口数量和端口类型的需求。In this method, by reintegrating the panel space, the shared port that provides different port functions according to the mode is set on the panel of the server frame. By switching the mode of the shared port, for example, switching to the specified working mode, the shared port can provide the corresponding port function corresponding to the specified working mode. Specifies the function. In this way, the panel space of computing nodes can be saved, and the panel space can be reserved for upgrading the specifications of multi-node servers, so as to meet the demands of increasing port quantity and port types.
在一些可能的实现方式中,多节点服务器可以对不同节点的端口(例如是不同节点的同一类型端口)进行共享。也即共享端口可以按模式向不同的计算节点提供端口功能。为 了便于描述,本申请将上述共享端口称作第一共享端口。第一共享端口可以为所述至少一个共享端口中任意一个端口。所述第一共享端口用于被所述多个计算节点中的不同计算节点分时使用,以为所述不同计算节点提供端口功能。In some possible implementation manners, the multi-node server may share ports of different nodes (for example, ports of the same type on different nodes). That is, the shared port can provide port functions to different computing nodes according to the mode. For ease of description, this application refers to the above-mentioned shared port as the first shared port. The first shared port may be any port in the at least one shared port. The first shared port is used for time-sharing use by different computing nodes in the plurality of computing nodes, so as to provide port functions for the different computing nodes.
具体地,多节点服务器接收第一模式切换指令,所述第一模式切换指令用于对第一共享端口进行模式切换,然后多节点服务器根据所述第一模式切换指令,将所述第一共享端口切换至第一工作模式。其中,所述第一工作模式为所述第一共享端口被所述多个计算节点中的指定计算节点使用,并为所述指定计算节点提供端口功能的模式。Specifically, the multi-node server receives a first mode switching instruction, and the first mode switching instruction is used to switch the mode of the first shared port, and then the multi-node server switches the first shared port according to the first mode switching instruction. The port switches to the first working mode. Wherein, the first working mode is a mode in which the first shared port is used by a designated computing node among the plurality of computing nodes and provides port functions for the designated computing node.
该方法通过第一共享端口,实现了与不同计算节点分别进行交互,例如可以基于第一共享端口,实现对不同计算节点分别进行运维,由此节省了面板空间,而且提高了端口利用率。The method realizes the interaction with different computing nodes through the first shared port, for example, the operation and maintenance of different computing nodes can be realized based on the first shared port, thereby saving panel space and improving port utilization.
在一些可能的实现方式中,在接收第一模式切换指令之前,多节点服务器还可以接收针对所述第一共享端口的状态切换指令,然后根据所述状态切换指令,将所述第一共享端口的状态切换为运维状态。其中,运维状态用于标识所述第一共享端口传输运维信息,以对所述多节点服务器进行运维。In some possible implementations, before receiving the first mode switching instruction, the multi-node server may also receive a state switching instruction for the first shared port, and then switch the first shared port to The state is switched to the operation and maintenance state. Wherein, the operation and maintenance state is used to identify the first shared port to transmit operation and maintenance information, so as to perform operation and maintenance on the multi-node server.
如此,多节点服务器可以基于第一共享端口实现对不同计算节点进行分时运维,无需在每个计算节点的面板上分别设置运维端口进行运维,节省了计算节点的面板空间,而且提高了第一共享端口的利用率。In this way, the multi-node server can realize time-sharing operation and maintenance of different computing nodes based on the first shared port, without setting up operation and maintenance ports on the panel of each computing node for operation and maintenance, which saves the panel space of computing nodes and improves The utilization rate of the first shared port.
在一些可能的实现方式中,多节点服务器可以对不同类型的端口(例如是同一节点的不同类型端口)进行共享。也即共享端口可以向多个计算节点中的至少一个计算节点提供不同类型的端口功能。为了便于描述,本申请将上述共享端口称作第二共享端口。第二共享端口可以为所述至少一个共享端口中任意一个端口。In some possible implementation manners, the multi-node server may share different types of ports (for example, different types of ports of the same node). That is, the shared port can provide different types of port functions to at least one computing node among the multiple computing nodes. For ease of description, the present application refers to the above-mentioned shared port as a second shared port. The second shared port may be any port in the at least one shared port.
具体地,多节点服务器接收第二模式切换指令,所述第二模式切换指令用于对第二共享端口进行模式切换,然后多节点服务器根据所述第二模式切换指令,将所述第二共享端口切换为第二工作模式。其中,所述第二工作模式为所述第二共享端口为所述多个计算节点中的至少一个计算节点提供指定类型的端口功能的模式。以物理形式为RJ45的第二共享端口为例,该第二共享端口可以通过模式切换分别提供串口或网口的功能。Specifically, the multi-node server receives a second mode switching instruction, and the second mode switching instruction is used to switch the mode of the second shared port, and then the multi-node server switches the second shared port to the The port switches to the second working mode. Wherein, the second working mode is a mode in which the second shared port provides a specified type of port function for at least one computing node among the plurality of computing nodes. Taking the second shared port whose physical form is RJ45 as an example, the second shared port can respectively provide functions of a serial port or a network port through mode switching.
如此,多节点服务器可以基于第二共享端口实现向计算节点提供不同类型的端口功能,有效减少端口数量,由此可以节省计算节点的面板空间,而且提高了端口利用率。In this way, the multi-node server can provide computing nodes with different types of port functions based on the second shared port, effectively reducing the number of ports, thereby saving the panel space of the computing nodes and improving port utilization.
在一些可能的实现方式中,所述第二共享端口提供的不同类型的端口功能是根据各类型的端口的使用频次、重要程度和速率中的一种或多种预先确定。具体地,在多节点服务器出厂前,可以根据各类型的端口的使用频次、重要程度和速率,确定可以集成在一个端口上的端口功能,然后将上述端口功能集成在一个共享端口,从而获得第二共享端口。In some possible implementation manners, the different types of port functions provided by the second shared port are predetermined according to one or more of use frequency, importance, and speed of each type of port. Specifically, before the multi-node server leaves the factory, the port functions that can be integrated on one port can be determined according to the use frequency, importance, and speed of various types of ports, and then the above port functions can be integrated on a shared port, so as to obtain the first Two shared ports.
例如,可以将各类型的端口中使用频次较低的多类端口、重要程度较低的多类端口,或者速率较低的多类端口对应的端口功能进行集成,从而得到第二共享端口。For example, port functions corresponding to multi-type ports with low frequency of use, multi-type ports with low importance, or multi-type ports with low speed among various types of ports may be integrated to obtain the second shared port.
如此可以提升端口利用率,减少端口数量,节省计算节点的面板空间,而且将使用频次较低或者重要程度较低、速率较低的端口对应的端口功能进行集成可以降低对业务的影响。In this way, port utilization can be improved, the number of ports can be reduced, and the panel space of computing nodes can be saved. In addition, port functions corresponding to ports with low frequency of use, low importance, and low speed can be integrated to reduce the impact on services.
在一些可能的实现方式中,所述模式切换指令通过硬件按钮、软件赋值或者计时触发 中至少一种触发。通过上述方式进行模式切换,无需插拔线缆,提升了多节点服务器的可维护性,降低了维护难度。In some possible implementations, the mode switching instruction is triggered by at least one of a hardware button, software assignment, or timing trigger. Mode switching is performed in the above manner without plugging and unplugging cables, which improves the maintainability of the multi-node server and reduces maintenance difficulty.
在一些可能的实现方式中,所述硬件按钮包括多种按键模式,所述多种按键模式包括长按、短按或连按。通过采用不同按键模式触发硬件按钮,可以实现基于一个硬件按钮完成不同模式之间的切换,进一步节省了计算节点的面板空间,有利于提升多节点服务器的规格。In some possible implementation manners, the hardware button includes multiple key modes, and the multiple key modes include long press, short press, or double press. By using different button modes to trigger hardware buttons, switching between different modes can be completed based on one hardware button, which further saves the panel space of computing nodes and is conducive to improving the specifications of multi-node servers.
在一些可能的实现方式中,所述多个计算节点中的每个计算节点的面板的空闲区域设置出风口、非共享端口和/或电源,所述空闲区域为在所述服务器框中设置所述共享端口后,所述计算节点的面板预留的区域。In some possible implementation manners, an air outlet, a non-shared port and/or a power supply are set in an idle area of the panel of each of the multiple computing nodes, and the idle area is set in the server frame. After the above-mentioned shared port, the area reserved for the panel of the computing node.
其中,在空闲区域增设出风口,可以有效改善多节点服务器的散热能力,提升多节点服务器的性能。在空闲区域增设电源,可以提升多节点服务器的供电规格,进而提升供电能力。在空闲区域增设非共享端口,如新增的业务端口,如此可以提升端口规格,满足不断增加的端口数量和端口类型的需求。Among them, adding an air outlet in the idle area can effectively improve the heat dissipation capability of the multi-node server and improve the performance of the multi-node server. Adding a power supply in an idle area can increase the power supply specification of the multi-node server, thereby increasing the power supply capacity. Add non-shared ports in idle areas, such as new service ports, so that port specifications can be improved to meet the increasing port quantity and port type requirements.
在一些可能的实现方式中,所述多节点服务器包括切换电路,所述切换电路用于切换所述共享端口连通的回路。所述切换电路包括切换开关和交换机中的至少一个,所述切换开关或所述交换机用于连接所述服务器框中所述至少一个共享端口,以及连接所述多节点服务器的平台控制器中心、基板管理控制器、复杂可编程逻辑器件中的至少一个。In some possible implementation manners, the multi-node server includes a switch circuit, and the switch circuit is configured to switch a circuit connected to the shared port. The switch circuit includes at least one of a switch and a switch, the switch or the switch is used to connect the at least one shared port in the server box, and the platform controller center connected to the multi-node server, At least one of a baseboard management controller and a complex programmable logic device.
切换电路通过切换共享端口连通的回路,从而实现为不同计算节点分时提供端口功能,或者是为相同计算节点提供不同类型的端口功能,由此可以减少端口数量,节省计算节点的面板空间,满足不断增加的端口数量和端口类型的需求。By switching the circuit connected by the shared port, the switching circuit realizes the time-sharing provision of port functions for different computing nodes, or provides different types of port functions for the same computing node, thereby reducing the number of ports and saving the panel space of the computing nodes. Increasing port count and port type requirements.
第二方面,本申请提供了一种端口共享装置。所述端口共享装置包括用于执行第一方面或第一方面任一种可能实现方式中的端口共享方法的各个模块。各个模块的功能和具体实现可以参见第一方面相关内容描述。In a second aspect, the present application provides a port sharing device. The port sharing apparatus includes various modules for executing the first aspect or the port sharing method in any possible implementation manner of the first aspect. For the functions and specific implementation of each module, please refer to the related content description of the first aspect.
第三方面,本申请提供一种多节点服务器,所述多节点服务器包括服务器框和多个计算节点,所述服务器框包括至少一个共享端口,所述多节点服务器用于执行如第一方面或第一方面的任一种实现方式中的端口共享方法。In a third aspect, the present application provides a multi-node server, the multi-node server includes a server box and a plurality of computing nodes, the server box includes at least one shared port, and the multi-node server is used to execute the method described in the first aspect or The port sharing method in any implementation manner of the first aspect.
具体地,服务器框包括框内电路板,框内电路板可以执行第一方面或第一方面的任一种实现方式中的端口共享方法,以使共享端口被多个计算节点分时使用,或者共享端口为多个计算节点中的至少一个计算节点提供不同类型的端口功能。Specifically, the server frame includes a circuit board in the frame, and the circuit board in the frame can execute the port sharing method in the first aspect or any implementation manner of the first aspect, so that the shared port is used by multiple computing nodes in time sharing, or The shared port provides different types of port functions for at least one of the plurality of computing nodes.
第四方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,所述指令指示设备执行上述第一方面或第一方面的任一种实现方式所述的端口共享方法。In a fourth aspect, the present application provides a computer-readable storage medium, where an instruction is stored in the computer-readable storage medium, and the instruction instructs the device to execute the method described in the first aspect or any implementation manner of the first aspect. Port sharing method.
第五方面,本申请提供了一种包含指令的计算机程序产品,当其在设备上运行时,使得设备执行上述第一方面或第一方面的任一种实现方式所述的端口共享方法。In a fifth aspect, the present application provides a computer program product containing instructions, which, when run on a device, causes the device to execute the port sharing method described in the first aspect or any implementation manner of the first aspect.
本申请在上述各方面提供的实现方式的基础上,还可以进行进一步组合以提供更多实现方式。On the basis of the implementation manners provided in the foregoing aspects, the present application may further be combined to provide more implementation manners.
附图说明Description of drawings
图1为本申请实施例提供的一种多节点服务器的后面板和前面板的示意图;FIG. 1 is a schematic diagram of a rear panel and a front panel of a multi-node server provided in an embodiment of the present application;
图2为本申请实施例提供的一种多节点服务器的端口结构示意图;FIG. 2 is a schematic diagram of a port structure of a multi-node server provided in an embodiment of the present application;
图3为本申请实施例提供的一种多节点服务器的后面板的示意图;FIG. 3 is a schematic diagram of a rear panel of a multi-node server provided in an embodiment of the present application;
图4为本申请实施例提供的一种多节点服务器的后面板的示意图;FIG. 4 is a schematic diagram of a rear panel of a multi-node server provided in an embodiment of the present application;
图5为本申请实施例提供的一种多节点服务器的后面板的示意图;FIG. 5 is a schematic diagram of a rear panel of a multi-node server provided in an embodiment of the present application;
图6为本申请实施例提供的一种切换电路的示意图;FIG. 6 is a schematic diagram of a switching circuit provided by an embodiment of the present application;
图7为本申请实施例提供的一种端口共享方法的流程图;FIG. 7 is a flowchart of a port sharing method provided in an embodiment of the present application;
图8为本申请实施例提供的一种端口共享装置的结构示意图;FIG. 8 is a schematic structural diagram of a port sharing device provided in an embodiment of the present application;
图9为本申请实施例提供的一种多节点服务器的硬件结构图。FIG. 9 is a hardware structural diagram of a multi-node server provided by an embodiment of the present application.
具体实施方式Detailed ways
为了便于描述,首先对本申请实施例中所涉及到的一些技术术语进行介绍。For ease of description, some technical terms involved in the embodiments of the present application are firstly introduced.
多节点服务器,也可以称为高密服务器,是指在单个服务器框内包括多个计算节点的服务器。由于具有强大的计算能力、超高的存储密度、易管理易维护等特性,多节点服务器被广泛用于云计算、高性能计算等多种业务场景。例如,多节点服务器可以用于构建云数据中心信息技术(information technology,IT)基础设施。其中,服务器框也称作机框,计算节点可以是能够插入服务器框的插拔式服务器,该插拔式服务器例如可以是刀片服务器或者机架服务器。A multi-node server, also called a high-density server, refers to a server that includes multiple computing nodes in a single server box. Due to its powerful computing power, ultra-high storage density, and easy management and maintenance, multi-node servers are widely used in various business scenarios such as cloud computing and high-performance computing. For example, a multi-node server can be used to build an information technology (information technology, IT) infrastructure of a cloud data center. Wherein, the server frame is also referred to as a chassis, and the computing node may be a plug-in server that can be inserted into the server frame, and the plug-in server may be, for example, a blade server or a rack server.
端口(port),是指计算机等设备(例如上文所述的多节点服务器)与外界通信的出口。在硬件领域,端口也可以称作接口,端口的一些典型示例包括USB端口或者串行端口。端口可以基于其实现的不同功能,被划分为不同类型。例如,一些端口用于运维,一些端口用于电源控制、用户标识(user identity,UID)控制,则端口可以基于功能被划分为运维端口、控制端口等不同类型。A port refers to the outlet for communication between a computer and other equipment (such as the multi-node server mentioned above) and the outside world. In the field of hardware, a port may also be called an interface, and some typical examples of ports include USB ports or serial ports. Ports can be divided into different types based on the different functions they implement. For example, some ports are used for operation and maintenance, and some ports are used for power control and user identity (UID) control, and the ports can be divided into different types such as operation and maintenance ports and control ports based on functions.
本申请提供了一种端口共享方法。该方法通过重新整合面板空间,在服务器框的面板设置按模式提供不同端口功能的共享端口,通过对共享端口进行模式切换,例如切换至指定工作模式,可以使得共享端口提供与指定工作模式对应的指定功能。由此可以节省计算节点的面板空间,为提升多节点服务器的规格预留面板空间,满足不断增加的端口数量和端口类型的需求。This application provides a port sharing method. In this method, by reintegrating the panel space, the shared port that provides different port functions according to the mode is set on the panel of the server frame. By switching the mode of the shared port, for example, switching to the specified working mode, the shared port can provide the corresponding port function corresponding to the specified working mode. Specifies the function. In this way, the panel space of computing nodes can be saved, and the panel space can be reserved for upgrading the specifications of multi-node servers, so as to meet the demands of increasing port quantity and port types.
其中,共享端口按模式提供不同的端口功能可以包括多种实现方式。第一种实现方式为,共享端口可以按模式向不同的计算节点提供端口功能。具体地,共享端口被切换至第一工作模式时,共享端口可以被多个计算节点中的指定计算节点使用,为该指定计算节点提供端口功能。例如,多节点服务器包括4个计算节点时,共享端口如串口可以通过模式切换分别为计算节点1至4提供端口功能。第二种实现方式为,共享端口可以向多个计算节点中的至少一个计算节点提供不同类型的端口功能。具体地,共享端口被切换至第二工作模式时,共享端口可以为多个计算节点中的至少一个计算节点提供指定类型的端口功能。例如,物理形式为RJ45的共享端口可以通过模式切换分别提供串口或网口的功能。Wherein, the shared port provides different port functions according to modes may include multiple implementation manners. The first implementation manner is that the shared port can provide port functions to different computing nodes according to modes. Specifically, when the shared port is switched to the first working mode, the shared port can be used by a designated computing node among the plurality of computing nodes to provide port functions for the designated computing node. For example, when a multi-node server includes 4 computing nodes, a shared port such as a serial port can provide port functions for computing nodes 1 to 4 through mode switching. A second implementation manner is that the shared port may provide different types of port functions to at least one computing node among the plurality of computing nodes. Specifically, when the shared port is switched to the second working mode, the shared port can provide at least one computing node among the plurality of computing nodes with a specified type of port function. For example, a shared port in the physical form of RJ45 can provide functions of a serial port or a network port respectively through mode switching.
为了便于区分,本申请实施例将能够被不同计算节点分时使用,以为不同计算节点提供端口功能的共享端口称作第一共享端口,将为多个计算节点中的至少一个计算节点提供 不同类型的端口功能的共享端口称作第二共享端口。下面结合附图详细介绍本申请提供的方案。In order to facilitate the distinction, in the embodiment of the present application, the shared port that can be used by different computing nodes in time sharing to provide port functions for different computing nodes is called the first shared port, which will provide different types of ports for at least one computing node among multiple computing nodes. The shared port that functions as the first port is called the second shared port. The solution provided by the present application will be described in detail below in conjunction with the accompanying drawings.
在多节点服务器中,端口通常可以部署在计算节点的面板或者服务器框的面板上。面板是指计算节点或服务器框的外壳上用于交互的界面。参见图1所示的多节点服务器的面板示意图,如图1所示,多节点服务器100包括多个计算节点10和一个服务器框20。图1以多节点服务器100为高度为2单位的服务器框20内设置4个计算节点10的服务器,也即2U4服务器进行示例说明。其中,U是一种表示服务器(例如多节点服务器100)外部尺寸的单位,U是unit的缩略语。其中,外部尺寸通常采用宽与高表征,例如宽为48.26cm,也即19英寸,高为4.445cm的倍数。由于宽为19英寸,所以有时也将服务器框20称为“19英寸机架”。高以4.445cm为基本单位。1U就是4.445cm,2U则是1U的2倍即8.89cm。图1中的(A)示出了多节点服务器100的后面板,图1中的(B)示出了上述多节点服务器100的前面板。In a multi-node server, ports can usually be deployed on the panel of the computing node or the panel of the server box. A panel is an interface for interaction on the shell of a compute node or server box. Referring to the schematic diagram of the panel of the multi-node server shown in FIG. 1 , as shown in FIG. 1 , the multi-node server 100 includes a plurality of computing nodes 10 and a server box 20 . FIG. 1 uses a multi-node server 100 as an example to illustrate with 4 servers of computing nodes 10 arranged in a server frame 20 with a height of 2 units, that is, a 2U4 server. Wherein, U is a unit representing the external size of the server (such as the multi-node server 100 ), and U is an abbreviation of unit. Among them, the external dimensions are usually characterized by width and height, for example, the width is 48.26cm, that is, 19 inches, and the height is a multiple of 4.445cm. Since the width is 19 inches, the server frame 20 is also sometimes referred to as a "19-inch rack". The basic unit of height is 4.445cm. 1U is 4.445cm, and 2U is 2 times of 1U, which is 8.89cm. (A) in FIG. 1 shows the rear panel of the multi-node server 100 , and (B) in FIG. 1 shows the front panel of the above-mentioned multi-node server 100 .
如图1中的(A)所示,多节点服务器100的后面板包括多个计算节点10的后面板11和服务器框20的后面板21。每个计算节点10的后面板11部署有至少一个标卡,其中,标卡是指标准IO卡,即参数(如电气参数、机械参数)符合标准的IO卡。例如,标卡可以包括以太网标卡、高速外设组件互连(peripheral component interconnect express,PCI-E)标卡等不同类型。本实施例以每个计算节点10的后面板11部署2个标卡(如图所示的标卡1和标卡2)进行示例说明。As shown in (A) of FIG. 1 , the rear panel of the multi-node server 100 includes the rear panel 11 of the plurality of computing nodes 10 and the rear panel 21 of the server frame 20 . At least one standard card is deployed on the rear panel 11 of each computing node 10 , where the standard card refers to a standard IO card, that is, an IO card whose parameters (such as electrical parameters and mechanical parameters) conform to standards. For example, the standard card may include different types such as an Ethernet standard card, a high-speed peripheral component interconnect express (PCI-E) standard card, and the like. In this embodiment, two standard cards (standard card 1 and standard card 2 as shown in the figure) are deployed on the rear panel 11 of each computing node 10 for illustration.
每个计算节点10的后面板11还部署有板载业务端口(即板载业务IO端口)、运维端口(即运维IO端口)、管理端口和控制端口(即控制IO端口)。下面对各种端口进行说明。The rear panel 11 of each computing node 10 is also equipped with an onboard service port (that is, an onboard service IO port), an operation and maintenance port (that is, an operation and maintenance IO port), a management port, and a control port (that is, a control IO port). The various ports are described below.
运维端口是指用于对计算节点10进行运维的端口。运维端口可以包括视频图形阵列(Video Graphics Array,VGA)和串行端口(serial port)。串行端口也可以称作串行接口、串行通讯端口(cluster communication port,COM)、串口。串口通常可以是9针,也可以是4针或25针的接口,最大速率为115200比特每秒(bit per second,bps),通常用于连接鼠标及通讯设备(例如是外置式调制解调器)。串口可以按照电气标准及协议分为RS-232-C、RS-422、RS485、USB等不同类型。RS-232-C也称作标准串口,标准串口具体为9针D形接口。RS-422是一种平衡通信接口,该接口提高了传输速率以及传输距离,并允许在一条平衡总线上连接多个接收器。RS-485是一种平衡通信接口,RS-485在RS-422基础上增加了多点、双向通信能力,即允许多个发送器连接到同一条总线上,同时增加了发送器的驱动能力和冲突保护特性,扩展了总线共模范围。USB是一种四针接口,中间两个针用于传输数据,边缘两个针用于给外设供电。The operation and maintenance port refers to a port used for operation and maintenance of the computing node 10 . The operation and maintenance port may include a video graphics array (Video Graphics Array, VGA) and a serial port (serial port). A serial port can also be called a serial interface, a serial communication port (cluster communication port, COM), or a serial port. The serial port can usually be a 9-pin, 4-pin or 25-pin interface with a maximum rate of 115200 bits per second (bit per second, bps), and is usually used to connect a mouse and a communication device (such as an external modem). Serial ports can be divided into different types such as RS-232-C, RS-422, RS485, and USB according to electrical standards and protocols. RS-232-C is also called a standard serial port, and the standard serial port is specifically a 9-pin D-shaped interface. RS-422 is a balanced communication interface that increases the transmission rate and transmission distance, and allows multiple receivers to be connected on a balanced bus. RS-485 is a balanced communication interface. RS-485 adds multi-point and two-way communication capabilities on the basis of RS-422, that is, it allows multiple transmitters to be connected to the same bus, and at the same time increases the drive capability and Conflict protection features, extending the common mode range of the bus. USB is a four-pin interface, with two pins in the middle for data transfer and two pins on the edge for powering peripherals.
控制端口为用于实现控制功能的端口,例如可以包括实现控制功能的按钮以及相应的指示灯。管理端口为用于实现管理功能的端口,例如用户可以通过该管理端口,对多节点服务器100中的计算节点10进行远程管理。板载业务端口是指整合在主板中的与业务相关的端口。此外,计算节点10的后面板11还部署2个电源,用于为计算节点10供电。The control port is a port for realizing a control function, for example, may include a button and a corresponding indicator light for realizing the control function. The management port is a port for implementing management functions. For example, a user can remotely manage the computing nodes 10 in the multi-node server 100 through the management port. The onboard service port refers to a service-related port integrated in the mainboard. In addition, two power supplies are deployed on the rear panel 11 of the computing node 10 for supplying power to the computing node 10 .
如图1中的(B)所示,多节点服务器100的前面板包括多个计算节点10的前面板12和服务器框20的前面板22。其中,每个计算节点10的前面板12部署有存储介质,例如是6个2.5寸硬盘。服务器框20的前面板21包括多个计算节点10的控制组件以及服务器 框20的固定组件。As shown in (B) of FIG. 1 , the front panel of the multi-node server 100 includes the front panel 12 of the plurality of computing nodes 10 and the front panel 22 of the server frame 20 . Wherein, the front panel 12 of each computing node 10 is equipped with storage media, for example, six 2.5-inch hard disks. The front panel 21 of the server frame 20 includes the control components of the plurality of computing nodes 10 and the fixed components of the server frame 20.
在图1的示例中,计算节点10的面板空间比较拥挤,为了节省计算节点10的面板空间,提高计算节点10的面板空间利用率,本申请通过在服务器框20上设置共享端口,将多个计算节点10的面板上用于设置相应端口的区域预留,从而满足不断增加的端口数量和端口类型的需求。In the example of FIG. 1 , the panel space of the computing node 10 is relatively crowded. In order to save the panel space of the computing node 10 and improve the utilization rate of the panel space of the computing node 10, the present application sets a shared port on the server frame 20, and multiple The panel of the computing node 10 is used to set area reservations for corresponding ports, so as to meet the requirements of increasing port numbers and port types.
参见图2所示的多节点服务器100的端口结构示意图,如图2所示,多节点服务器100包括多个计算节点10和一个服务器框20。其中,服务器框20包括至少一个共享端口,例如第一共享端口23和第二共享端口24。第一共享端口23和第二共享端口24可以分别设置于服务器框20的面板上,例如设置在服务器框的后面板上。Referring to the schematic diagram of the port structure of the multi-node server 100 shown in FIG. 2 , as shown in FIG. 2 , the multi-node server 100 includes a plurality of computing nodes 10 and a server box 20 . Wherein, the server frame 20 includes at least one shared port, such as a first shared port 23 and a second shared port 24 . The first shared port 23 and the second shared port 24 may be respectively disposed on a panel of the server frame 20, for example, disposed on a rear panel of the server frame.
服务器机框20中每个共享端口可以包括多种工作模式。针对第一共享端口23,使能每种工作模式时,多节点服务器100中一个计算节点10可以通过该第一共享端口23提供与多节点服务器100外部设备进行通信的接口。针对第二共享端口24,使能每种工作模式时,该第二共享端口24提供一种类型的端口功能。Each shared port in the server chassis 20 may include multiple working modes. Regarding the first shared port 23 , when each working mode is enabled, one computing node 10 in the multi-node server 100 can provide an interface for communicating with external devices of the multi-node server 100 through the first shared port 23 . For the second shared port 24, when each working mode is enabled, the second shared port 24 provides a type of port function.
具体地,第一共享端口23可以被切换至第一工作模式。该第一工作模式为所述第一共享端口23被所述多个计算节点10中的指定计算节点使用,并为所述指定计算节点提供端口功能的模式。第二共享端口24可以被切换至第二工作模式。该第二工作模式所述第二共享端口24为所述多个计算节点10中的至少一个计算节点10提供指定类型的端口功能的模式。指定类型的端口功能可以是串口或者网口。其中,网口可以包括千兆以太网口(gigabit ethernet,GE)或者是10GE网口。Specifically, the first shared port 23 can be switched to the first working mode. The first working mode is a mode in which the first shared port 23 is used by a designated computing node among the plurality of computing nodes 10 and provides a port function for the designated computing node. The second shared port 24 can be switched to the second working mode. In the second working mode, the second shared port 24 provides a specified type of port function for at least one computing node 10 among the plurality of computing nodes 10 . The port function of the specified type can be a serial port or a network port. Wherein, the network port may include a Gigabit Ethernet port (gigabit ethernet, GE) or a 10GE network port.
在一些可能的实现方式中,服务器框20还可以包括切换电路25。该切换电路25接收针对所述第一共享端口23的第一模式切换指令,切换电路25可以根据该第一模式切换指令,将所述第一共享端口23切换至第一工作模式。类似地,切换电路25接收针对第二共享端口24的第二模式切换指令,切换电路25可以根据该第二模式切换指令,将第二共享端口24切换至第二工作模式。In some possible implementation manners, the server frame 20 may further include a switching circuit 25 . The switching circuit 25 receives a first mode switching instruction for the first shared port 23, and the switching circuit 25 can switch the first shared port 23 to the first working mode according to the first mode switching instruction. Similarly, the switching circuit 25 receives a second mode switching instruction for the second shared port 24, and the switching circuit 25 can switch the second shared port 24 to the second working mode according to the second mode switching instruction.
需要说明的是,第一共享端口23可以为运维端口。基于此,在接收针对所述第一共享端口23的第一模式切换指令之前,切换电路25还可以接收针对所述第一共享端口的状态切换指令,然后根据所述状态切换指令,将所述第一共享端口23的状态切换为运维状态。其中,运维状态用于标识所述第一共享端口传输运维信息,以对所述多节点服务器100进行运维。It should be noted that the first shared port 23 may be an operation and maintenance port. Based on this, before receiving the first mode switching instruction for the first shared port 23, the switching circuit 25 may also receive a state switching instruction for the first shared port, and then according to the state switching instruction, switch the The state of the first shared port 23 is switched to the operation and maintenance state. Wherein, the operation and maintenance status is used to identify the first shared port to transmit operation and maintenance information, so as to perform operation and maintenance on the multi-node server 100 .
在上述实施例中,第一模式切换指令、第二模式切换指令等模式切换指令可以通过硬件按钮、软件赋值或者计时触发中的至少一种方式触发。其中,硬件按钮可以包括与每种工作模式对应的硬件按钮,也可以是多种工作模式共享的硬件按钮,即共享按钮。共享按钮包括多种按键模式,例如是短按、长按或者连按等多种按键模式。当硬件按钮为共享按钮时,可以通过短按、长按或者连按等操作,实现不同工作模式之间的切换。如此可以进一步节省面板空间,有利于提升产品规格。当然,也可以通过软件赋予不同的值,从而实现不同工作模式的切换,或者是设置计时器,通过计时器计时,以在不同时段切换至与时段对应的工作模式。In the above embodiments, the mode switching commands such as the first mode switching command and the second mode switching command may be triggered by at least one of hardware buttons, software assignment or timing triggers. Wherein, the hardware button may include a hardware button corresponding to each working mode, or may be a hardware button shared by multiple working modes, that is, a shared button. The sharing button includes multiple key modes, such as short press, long press, or double press. When the hardware button is a shared button, you can switch between different working modes through operations such as short press, long press, or double press. In this way, panel space can be further saved, which is conducive to improving product specifications. Of course, it is also possible to assign different values by software to realize the switching of different working modes, or to set a timer and use the timer to count the time to switch to the working mode corresponding to the time period at different time periods.
为了便于理解,下面以通过硬件按钮触发不同模式切换进行示例说明。For ease of understanding, the following uses a hardware button to trigger different mode switching as an example.
参见图3所示的多节点服务器100的后面板的示意图,服务框20的面板(例如是后面板)中的右挂耳上部署有第一共享端口23和第二共享端口24。在该示例中,第一共享端口23可以为VGA端口,第二共享端口24可以为串行端口。服务框20的面板中的左挂耳上部署有硬件按钮26,该硬件按钮26用于切换节点,以使第一共享端口23被不同计算节点分时使用。Referring to the schematic diagram of the rear panel of the multi-node server 100 shown in FIG. 3 , the first shared port 23 and the second shared port 24 are deployed on the right mounting ear of the panel (for example, the rear panel) of the service box 20 . In this example, the first shared port 23 may be a VGA port, and the second shared port 24 may be a serial port. A hardware button 26 is deployed on the left mounting ear of the panel of the service box 20, and the hardware button 26 is used to switch nodes, so that the first shared port 23 is used by different computing nodes in time-sharing.
例如,默认节点可以设置为节点1,即图3中的N1。相应地,第一共享端口23默认被N1使用。当用户长按硬件按钮26时,可以切换为N2,第一共享端口23被N2使用。当用户短按硬件按钮26时,可以切换为N3,第一共享端口23被N3使用。当用户连按(例如连续按2次)硬件按钮26时,可以切换为N4,第一共享端口23被N4使用。For example, the default node can be set as node 1, which is N1 in FIG. 3 . Correspondingly, the first shared port 23 is used by N1 by default. When the user presses the hardware button 26 for a long time, it can be switched to N2, and the first shared port 23 is used by N2. When the user short presses the hardware button 26, it can be switched to N3, and the first shared port 23 is used by N3. When the user double-clicks (for example, presses twice consecutively) the hardware button 26, it can be switched to N4, and the first shared port 23 is used by N4.
其中,服务框20的面板中的左挂耳上还部署有指示灯组合29,该指示灯组合包括“KVM”字样的指示灯。“KVM”字样的指示灯用于指示第一共享端口23当前连接的节点。例如,第一共享端口23连接至N2时,N2对应的“KVM”字样的指示灯亮起,N1、N3和N4对应的“KVM”字样的指示灯熄灭。Wherein, an indicator light combination 29 is arranged on the left hanging ear of the panel of the service box 20, and the indicator light combination includes an indicator light with the word "KVM". The indicator light with the word "KVM" is used to indicate the node to which the first shared port 23 is currently connected. For example, when the first shared port 23 is connected to N2, the "KVM" indicator corresponding to N2 is on, and the "KVM" indicator lights corresponding to N1, N3 and N4 are off.
指示等组合29中还可以包括健康灯和UID灯。各节点的健康灯(如图3中心电图形状的灯)用于指示各节点的健康状况。在一些实施例中,健康灯可以通过亮起、熄灭分别指示节点的不同健康状态,在另一些实施例中,健康灯可以通过不同颜色,例如通过绿色和红色分别指示节点的不同健康状态。 Combinations 29 of indications and the like may also include a health light and a UID light. The health lights of each node (such as the light in the shape of an electrocardiogram in FIG. 3 ) are used to indicate the health status of each node. In some embodiments, the health lights can indicate different health states of the nodes by being on and off, and in other embodiments, the health lights can indicate different health states of the nodes by different colors, for example, green and red.
各节点的UID灯用于标识节点。其中,UID灯通常与硬件按钮27配合使用。硬件按钮27为UID按钮,当UID按钮被触发时,第一共享端口23当前连接的节点对应的UID灯可以被点亮,如此可以通过UID灯快速确定当前连接的节点,有利于运维人员进行运维作业。The UID light of each node is used to identify the node. Wherein, the UID light is usually used in conjunction with the hardware button 27 . The hardware button 27 is a UID button. When the UID button is triggered, the UID light corresponding to the node currently connected to the first shared port 23 can be lighted, so that the currently connected node can be quickly determined through the UID light, which is beneficial to the operation and maintenance personnel. Operation and maintenance work.
服务器框20的面板中的左挂耳上还部署有硬件按钮28。该硬件按钮28位电源按钮,该电源按钮可以被多个计算节点如N1至N4共享。具体地,当电源按钮被触发时,可以启动电源,为多个计算节点10供电。此外,电源按钮还可以集成电源指示灯,当电源被启动,为多个计算节点供电时,电源指示灯可以亮起。A hardware button 28 is also disposed on the left hanging ear in the panel of the server frame 20 . The hardware button is 28 power buttons, and the power button can be shared by multiple computing nodes such as N1 to N4. Specifically, when the power button is triggered, the power can be started to supply power to multiple computing nodes 10 . In addition, the power button can also integrate a power indicator light, which can light up when the power supply is turned on to supply power to multiple computing nodes.
在一些可能的实现方式中,服务器框20的面板中还可以部署其他硬件按钮(图3中未示出),用于针对第二共享端口24进行模式切换。与硬件按钮26类似,该硬件按钮也可以通过长按、短按等方式进行模式切换,从而实现将所述第二共享端口24切换为不同类型的端口。例如,第二共享端口默认为COM,当用户长按该硬件按钮时,该第二共享端口被切换为GE网口,当用户短按该硬件按钮时,则切换回COM。In some possible implementation manners, other hardware buttons (not shown in FIG. 3 ) may also be deployed on the panel of the server frame 20 for switching modes for the second shared port 24 . Similar to the hardware button 26, the hardware button can also switch modes by long press, short press, etc., so as to switch the second shared port 24 to a different type of port. For example, the second shared port is COM by default. When the user presses the hardware button for a long time, the second shared port is switched to the GE network port, and when the user presses the hardware button for a short time, it is switched back to COM.
在上述实施例中,第二共享端口24的类型提供的不同类型的端口功能可以根据各类型的端口的使用频次、重要程度和速率中的一种或多种预先确定。例如,在出厂前,多节点服务器100可以将使用频次较低的多种类型的端口功能集成在一个端口,以实现不同类型的端口共享。又例如,在出厂前,多节点服务器100可以将重要程度较低的多种类型的端口集成在一个端口,以实现不同类型的端口共享。In the above embodiment, the different types of port functions provided by the type of the second shared port 24 may be predetermined according to one or more of the use frequency, importance and speed of each type of port. For example, before leaving the factory, the multi-node server 100 may integrate multiple types of port functions that are less frequently used into one port, so as to realize different types of port sharing. For another example, before leaving the factory, the multi-node server 100 may integrate multiple types of ports of lower importance into one port, so as to realize different types of port sharing.
还需要说明的是,在进行运维时,用户还可以针对第一共享端口23触发状态切换操作,例如可以通过硬件按钮26触发状态切换操作。硬件按钮26可以响应于该状态切换操作,生成针对所述第一共享端口23的状态切换指令。相应地,切换电路25可以根据上述状态 切换指令,将第一共享端口23的状态切换为运维状态。当第一共享端口23在预设时长内无操作,且无数据传输时,第一共享端口23可以自动退出运维状态。在一些实施例中,第一共享端口23也可以基于用户触发的退出运维操作,退出运维状态。It should also be noted that during operation and maintenance, the user can also trigger a state switching operation for the first shared port 23 , for example, the state switching operation can be triggered through the hardware button 26 . The hardware button 26 may generate a state switching instruction for the first shared port 23 in response to the state switching operation. Correspondingly, the switching circuit 25 can switch the state of the first shared port 23 to the operation and maintenance state according to the above state switching instruction. When the first shared port 23 has no operation and no data transmission within a preset time period, the first shared port 23 may automatically exit the operation and maintenance state. In some embodiments, the first shared port 23 may also exit the operation and maintenance state based on a user-triggered exit operation and maintenance operation.
该方法通过在服务器框20的面板上设置共享端口,以被多个计算节点如N1至N4共享,或者是将多种类型的端口进行共享,可以有效节省计算节点10的面板空间。在所述服务器框20中设置所述共享端口后,所述计算节点的面板可以预留区域,该区域也即计算节点的面板的空闲区域。每个计算节点的面板的空闲区域可以设置出风口、电源或者非共享端口,从而改善散热能力、提升电源规格或者提升端口规格。This method can effectively save the panel space of the computing node 10 by setting the shared port on the panel of the server frame 20 to be shared by multiple computing nodes such as N1 to N4, or sharing multiple types of ports. After the shared port is set in the server frame 20, the panel of the computing node may reserve an area, which is the free area of the panel of the computing node. Air outlets, power supplies, or non-shared ports can be set in the free area of the panel of each computing node, so as to improve heat dissipation, increase power supply specifications, or increase port specifications.
参见图4所示的多节点服务器100的后面板的示意图,图4中(A)用于部署运维端口、管理端口的面板空间可以用于部署如图4中(B)的出风口(如图中网格形状所示),如此可以增大出风面积,进而改善多节点服务器100的通风散热能力,提升多节点服务器100的能效。Referring to the schematic diagram of the rear panel of the multi-node server 100 shown in FIG. 4, (A) in FIG. As shown in the grid shape in the figure), this can increase the air outlet area, thereby improving the ventilation and cooling capabilities of the multi-node server 100, and improving the energy efficiency of the multi-node server 100.
参见图5所示的多节点服务器100的后面板的示意图,图5中(A)用于部署运维IO、的面板空间可以用于部署如图5中(B)增加的电源,如电源3和电源4,如此可以提升多节点服务器100的电源规格,进而提升供电能力。Referring to the schematic diagram of the rear panel of the multi-node server 100 shown in FIG. 5, the panel space (A) in FIG. and the power supply 4, so that the specification of the power supply of the multi-node server 100 can be improved, thereby improving the power supply capability.
需要说明的是,多节点服务器100中计算节点节省的面板空间也可以用于部署非共享端口,如一些非共享的业务端口,如此可以提升多节点服务器100的端口规格,满足不断增加的端口数量和端口类型的要求,提升多节点服务器100的性能。It should be noted that the panel space saved by computing nodes in the multi-node server 100 can also be used to deploy non-shared ports, such as some non-shared service ports, so that the port specifications of the multi-node server 100 can be improved to meet the increasing number of ports and port type requirements to improve the performance of the multi-node server 100 .
在图2所示实施例中,多节点服务器100可以通过模式切换指令,将共享端口切换为不同模式,而无需以线缆插拔的方式进行切换,由此提升了多节点服务器100的易维护性。此外,第一共享端口23和计算节点10的非共享端口1连接至第一端口控制器13,第二共享端口24和计算节点10的非共享端口2连接至第二端口控制器14。当共享端口和非共享端口设置在不同侧时,还可以满足多侧运维的需求。In the embodiment shown in FIG. 2 , the multi-node server 100 can switch the shared port to a different mode through a mode switching instruction, without the need to switch by cable plugging, thereby improving the ease of maintenance of the multi-node server 100 sex. In addition, the first shared port 23 and the unshared port 1 of the computing node 10 are connected to the first port controller 13 , and the second shared port 24 and the unshared port 2 of the computing node 10 are connected to the second port controller 14 . When the shared port and the non-shared port are set on different sides, it can also meet the requirements of multi-side operation and maintenance.
在图2所示实施例中,多节点服务器100的切换电路25用于切换所述共享端口连通的回路,从而实现被不同计算节点10使用,或者为多个计算节点10中的至少一个计算节点10提供不同类型的端口功能。其中,切换电路25可以包括切换开关和交换机中的至少一个,该切换开关或交换机用于连接所述服务器框20上的共享端口,以及连接多节点服务器100中计算节点10的主板上的平台控制器中心(platform controller hub,PCH)芯片、基板管理控制器(baseboard management controller,BMC)和复杂可编程逻辑器件(complex programmable logic device,CPLD)中的至少一个。In the embodiment shown in FIG. 2 , the switching circuit 25 of the multi-node server 100 is used to switch the loop connected to the shared port, so as to be used by different computing nodes 10, or to be used by at least one computing node among the multiple computing nodes 10 10 provides different types of port functions. Wherein, the switch circuit 25 may include at least one of a switch and a switch, and the switch or switch is used to connect the shared port on the server frame 20, and connect the platform control on the motherboard of the computing node 10 in the multi-node server 100 At least one of a platform controller hub (PCH) chip, a baseboard management controller (BMC) and a complex programmable logic device (complex programmable logic device, CPLD).
具体参见图6所示的切换电路的示意图,在该实例中,切换电路包括一个交换机(switch)和一个切换开关,该切换开关可以为多路开关,例如是多刀多掷开关。其中,交换机的总线物理通道通常是全连通的,交换机可以通过软件实现共享端口的切换。切换开关的总线物理通道是分时连通的,通过控制信号实现共享端口的切换。其中,网口或者其他高速端口可以采用交换机进行切换。低速端口可以通过切换开关,连通不同的总线物理通道,从而实现低速的共享端口的切换。Referring specifically to the schematic diagram of the switching circuit shown in FIG. 6 , in this example, the switching circuit includes a switch and a switch, and the switch may be a multi-way switch, such as a multi-pole multi-throw switch. Among them, the bus physical channel of the switch is usually fully connected, and the switch can realize the switching of the shared port through software. The bus physical channel of the switch is time-sharingly connected, and the switching of the shared port is realized through the control signal. Wherein, the network port or other high-speed ports can be switched by a switch. The low-speed port can be connected to different bus physical channels by switching the switch, so as to realize the switching of the low-speed shared port.
具体地,切换电路可以连接N1至N4等多个计算节点10,上述各计算节点10的主板上设置有平台控制器中心PCH、BMC和CPLD中的至少一个。其中,PCH用于连接USB 端口等A类端口,BMC用于连接VGA等B类端口,CPLD用于连接按钮如电源按钮、UID按钮。Specifically, the switching circuit can be connected to a plurality of computing nodes 10 such as N1 to N4, and at least one of the platform controller center PCH, BMC and CPLD is arranged on the motherboard of each computing node 10 . Among them, the PCH is used to connect to a type A port such as a USB port, the BMC is used to connect to a type B port such as a VGA, and the CPLD is used to connect to a button such as a power button and a UID button.
上述A类端口、B类端口可以以共享端口的形式设置在服务器框的面板上,PCH、BMC可以通过切换电路连接共享端口,然后切换电路可以根据模式切换命令(例如是切换信号)进行模式切换,从而切换共享端口。以切换网口为例进行说明,切换电路中的交换机和N1至N4物理连接,当用户需要对N1进行运维时,可以通过软件设置仅向N1转发数据包,以此实现对N1的运维。The above-mentioned A-type port and B-type port can be set on the panel of the server frame in the form of a shared port, and the PCH and BMC can be connected to the shared port through a switching circuit, and then the switching circuit can perform mode switching according to a mode switching command (such as a switching signal) , thereby switching the shared port. Taking the switching network port as an example, the switch in the switching circuit is physically connected to N1 to N4. When the user needs to operate and maintain N1, he can only forward data packets to N1 through software settings, so as to realize the operation and maintenance of N1. .
类似地,一些按钮如电源按钮、UID按钮或者节点切换按钮也可以通过共享按钮的形式设置在服务器框的面板上,CPLD可以通过切换电路连接共享按钮,进行模式切换。其中,电源按钮、UID按钮可以直接连接切换电路,节点切换按钮可以通过控制器连接切换电路。其中,切换电路和控制器可以部署在框内电路板上。Similarly, some buttons such as power button, UID button or node switch button can also be set on the panel of the server box in the form of shared buttons, and the CPLD can be connected to the shared button through a switching circuit to switch modes. Wherein, the power button and the UID button can be directly connected to the switching circuit, and the node switching button can be connected to the switching circuit through the controller. Wherein, the switching circuit and the controller can be deployed on the circuit board inside the frame.
当N1至N4的面板空间比较充足时,N1至N4的面板上也可以设置A类端口和/或B类端口,用户可以通过服务器框20的面板上的共享端口,或者N1至N4的面板上设置的A类端口、B类端口执行相关作业,本实施例对此不作限定。在一些实施例中,N1至N4的面板上也可以不设置A类端口和/或B类端口,例如可以设置更多的电源或者业务端口,如此可以提高供电规格或者端口规格。When the panel space of N1 to N4 is relatively sufficient, Type A ports and/or Type B ports can also be set on the panels of N1 to N4, and users can use the shared ports on the panels of the server box 20 or the panels of N1 to N4 The set A-type ports and B-type ports execute related operations, which is not limited in this embodiment. In some embodiments, no type A port and/or type B port may be provided on the panels of N1 to N4, for example, more power supply or service ports may be provided, so that the power supply specification or port specification may be improved.
需要说明的是,图6仅仅是切换电路的一种示意性实施方式,在本申请实施例其他可能的实现方式中,切换电路也可以仅包括切换开关,或者仅包括交换机。类似地,切换电路也可以采用其他方式连接共享端口和PCH、BMC、CPLD。It should be noted that FIG. 6 is only a schematic implementation manner of a switching circuit, and in other possible implementation manners of the embodiment of the present application, the switching circuit may also include only a switching switch, or only a switch. Similarly, the switch circuit can also connect the shared port with the PCH, BMC, and CPLD in other ways.
以上对多节点服务器100的结构进行了介绍,接下来,对本申请实施例提供的端口共享方法进行介绍。The structure of the multi-node server 100 is introduced above, and next, the port sharing method provided by the embodiment of the present application is introduced.
参见图7所示的端口共享方法的流程图,该方法包括:Referring to the flow chart of the port sharing method shown in Figure 7, the method includes:
S702:多节点服务器100接收针对第一共享端口23的状态切换指令。S702: The multi-node server 100 receives a state switching instruction for the first shared port 23 .
状态切换指令用于对端口(例如是第一共享端口23)的状态进行切换。端口的状态可以包括运维状态和非运维状态。基于此,状态切换指令可以用于将端口的状态由非运维状态切换为运维状态,以便进行运维。The state switching instruction is used to switch the state of the port (for example, the first shared port 23 ). The state of the port may include an operation and maintenance state and a non-operation and maintenance state. Based on this, the state switching instruction can be used to switch the state of the port from the non-operation and maintenance state to the operation and maintenance state, so as to perform operation and maintenance.
在一些可能的实现方式中,上述状态切换指令可以由用户触发。例如,多节点服务器100可以提供用于触发状态切换操作的硬件按钮,用户可以通过操作硬件按钮触发状态切换操作,硬件按钮响应于用户触发的状态切换操作生成状态切换指令。In some possible implementation manners, the above state switching instruction may be triggered by a user. For example, the multi-node server 100 may provide a hardware button for triggering a state switching operation, the user may trigger the state switching operation by operating the hardware button, and the hardware button generates a state switching instruction in response to the state switching operation triggered by the user.
在另一些可能的实现方式中,上述状态切换指令也可以由多节点服务器100自动触发例如,多节点服务器100可以设置触发条件,当该触发条件被满足时,自动生成状态切换指令。In some other possible implementation manners, the above state switching instruction may also be automatically triggered by the multi-node server 100. For example, the multi-node server 100 may set a trigger condition, and when the trigger condition is met, the state switching instruction is automatically generated.
其中,触发条件可以是时间条件。例如,触发条件可以设置为每隔N秒将端口由非运维状态切换为运维状态,并保持运维状态M秒,其中,M和N为正整数。需要说明的是,在保持运维状态M秒期间,如果接受到运维数据或指令,则可以停止计时,并在运维结束后,将状态切换回非运维状态。Wherein, the trigger condition may be a time condition. For example, the trigger condition can be set to switch the port from the non-operation and maintenance state to the operation and maintenance state every N seconds, and keep the operation and maintenance state for M seconds, where M and N are positive integers. It should be noted that during the period of maintaining the operation and maintenance state for M seconds, if the operation and maintenance data or instructions are received, the timing can be stopped, and after the operation and maintenance is completed, the state can be switched back to the non-operation and maintenance state.
触发条件也可以是数值条件。例如,多节点服务器100可以运行软件,例如是随机数生成软件,多节点服务器100可以根据软件赋值,生成状态切换指令。例如,软件赋值为 1时,则多节点服务器100生成上述状态切换指令。Trigger conditions can also be numerical conditions. For example, the multi-node server 100 can run software, such as random number generation software, and the multi-node server 100 can generate a state switching instruction according to the value assigned by the software. For example, when the software value is 1, the multi-node server 100 generates the above state switching instruction.
S704:多节点服务器100根据所述状态切换指令,将所述第一共享端口23的状态切换为运维状态。S704: The multi-node server 100 switches the state of the first shared port 23 to the operation and maintenance state according to the state switching instruction.
具体地,多节点服务器100可以根据所述状态切换指令,启用运维功能,以将第一共享端口23的状态由非运维状态切换为运维状态。其中,启用运维功能可以是启动运维软件,打开日志系统等等。运维状态用于标识第一共享端口23传输运维信息,以对多节点服务器100进行运维。Specifically, the multi-node server 100 can enable the operation and maintenance function according to the state switching instruction, so as to switch the state of the first shared port 23 from the non-operation and maintenance state to the operation and maintenance state. Among them, enabling the operation and maintenance function may be to start the operation and maintenance software, open the log system, and so on. The operation and maintenance status is used to identify the first shared port 23 to transmit operation and maintenance information, so as to perform operation and maintenance on the multi-node server 100 .
S706:多节点服务器100接收第一模式切换指令。S706: The multi-node server 100 receives a first mode switching instruction.
第一模式切换指令是指将第一共享端口23切换至第一工作模式的指令。其中,第一工作模式为所述第一共享端口被所述多个计算节点10中的指定计算节点使用的模式,并为所述指定计算节点提供端口功能的模式。The first mode switch instruction refers to an instruction to switch the first shared port 23 to the first working mode. Wherein, the first working mode is a mode in which the first shared port is used by a designated computing node among the plurality of computing nodes 10 and provides a port function for the designated computing node.
与状态切换指令类似,第一模式切换指令可以由用户触发。例如,多节点服务器100可以提供用于触发模式切换操作的硬件按钮,用户可以通过操作硬件按钮触发模式切换操作,硬件按钮响应于用户触发的模式切换操作生成第一模式切换指令。Similar to the state switching instruction, the first mode switching instruction can be triggered by the user. For example, the multi-node server 100 may provide a hardware button for triggering a mode switching operation, the user may trigger the mode switching operation by operating the hardware button, and the hardware button generates a first mode switching instruction in response to the mode switching operation triggered by the user.
需要说明的是,用户操作硬件按钮的方式不同,则硬件按钮生成的第一模式切换指令可以是不同的。例如,第一共享端口默认连接N1,用户长按硬件按钮,则可以切换为N2,用户短按硬件按钮,则可以切换为N3,用户连按硬件按钮,则可以切换为N4。It should be noted that the first mode switching instruction generated by the hardware button may be different depending on the manner in which the user operates the hardware button. For example, the first shared port is connected to N1 by default, the user can switch to N2 by long pressing the hardware button, short press the hardware button to switch to N3, and double press the hardware button to switch to N4.
在一些可能的实现方式中,第一模式切换指令也可以由多节点服务器100自动触发。例如,多节点服务器100可以通过软件赋值方式触发,或者通过计时触发,具体触发过程可以参见S702相关内容描述,在此不再赘述。In some possible implementation manners, the first mode switching instruction may also be automatically triggered by the multi-node server 100 . For example, the multi-node server 100 may be triggered by software value assignment or timing. For the specific trigger process, please refer to the relevant content description of S702, which will not be repeated here.
S708:多节点服务器100根据所述第一模式切换指令,将所述第一共享端口23切换至第一工作模式。S708: The multi-node server 100 switches the first shared port 23 to the first working mode according to the first mode switching instruction.
具体地,多节点服务器100可以根据第一模式切换指令,通过切换电路,执行相应的逻辑,以将第一共享端口23切换至第一工作模式。如此,第一共享端口23可以与指定计算节点连接,运维人员可以基于该第一共享端口23实现对指定计算节点的运维。Specifically, the multi-node server 100 may execute corresponding logic through the switching circuit according to the first mode switching instruction, so as to switch the first shared port 23 to the first working mode. In this way, the first shared port 23 can be connected to the specified computing node, and the operation and maintenance personnel can realize the operation and maintenance of the specified computing node based on the first shared port 23 .
在该实施例中,多节点服务器100可以根据不同的第一模式切换指令,实现第一共享端口23与不同计算节点10的分时连接,进而可以实现通过第一共享端口23在不同时段分别对相应的计算节点10进行运维。一方面,可以满足运维要求,另一方面提高了第一共享端口23的使用频次,避免了浪费,而且节省了面板空间,能够提升多节点服务器100的规格。In this embodiment, the multi-node server 100 can realize the time-sharing connection between the first shared port 23 and different computing nodes 10 according to different first mode switching instructions, and then realize the connection between the first shared port 23 and the The corresponding computing nodes 10 perform operation and maintenance. On the one hand, it can meet the operation and maintenance requirements; on the other hand, it increases the frequency of use of the first shared port 23 , avoids waste, saves panel space, and can improve the specifications of the multi-node server 100 .
上述S702至S704为本申请实施例的可选步骤,执行本申请的端口共享方法也可以不执行上述S702至704。例如,第一共享端口23并非运维端口时,举例来说,第一共享端口23为管理端口或控制端口时,多节点服务器100也可以不执行上述S702至S708。The above S702 to S704 are optional steps in the embodiment of the present application, and the above S702 to S704 may not be executed to execute the port sharing method of the present application. For example, when the first shared port 23 is not an operation and maintenance port, for example, when the first shared port 23 is a management port or a control port, the multi-node server 100 may not execute the above S702 to S708.
通过上述S706至S708,多节点服务器100实现了在不同计算节点10之间共享端口。在一些可能的实现方式中,多节点服务器100也可以共享不同类型的端口。具体地,在出厂前,可以获取各类型的端口的使用频次、重要程度和速率中的一种或多种。然后,根据各类型的端口的使用频次、重要程度和速率(例如数据传输速率),设置需要共享的不同类型的端口功能,将该不同类型的端口功能集成在同一端口,也即第二共享端口24。Through the above S706 to S708, the multi-node server 100 implements port sharing among different computing nodes 10 . In some possible implementation manners, the multi-node servers 100 may also share different types of ports. Specifically, before leaving the factory, one or more of the frequency of use, importance and speed of various types of ports may be acquired. Then, according to the frequency of use, importance and rate (such as data transmission rate) of each type of port, set the different types of port functions that need to be shared, and integrate the different types of port functions into the same port, that is, the second shared port twenty four.
其中,不同类型的端口功能可以是使用频次较低的端口功能,重要程度较低的端口功能,或者是速率较小的端口功能。需要说明的是,不同类型的端口可以是具有相同物理形式,并连接不同类型总线的端口。例如,物理形式为RJ45的端口可以连接COM、通用非同步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)类型的总线,也可以连接GE或10GE类型的总线。类似地,物理形式为USB Type C的端口可以连接USB3.0或USB2.0总线,也可以连接VGA、高画质多媒体接口(high definition multimedia interface,HDMI)或者GE类型的总线。Wherein, the different types of port functions may be port functions with low frequency of use, port functions with low importance, or port functions with low rate. It should be noted that ports of different types may have the same physical form and be connected to different types of buses. For example, a port in the physical form of RJ45 may be connected to COM, a Universal Asynchronous Receiver/Transmitter (UART) type bus, or may be connected to a GE or 10GE type bus. Similarly, a port with a physical form of USB Type C can be connected to a USB3.0 or USB2.0 bus, or can be connected to a VGA, high definition multimedia interface (HDMI) or GE type bus.
基于此,多节点服务器100可以接收第二模式切换指令。其中,第二模式切换指令的生成方式可以参考第一模式切换指令,在此不再一一列举。然后多节点服务器100可以根据所述第二模式切换指令,将所述第二共享端口24切换至第二工作模式。具体地,多节点服务器100可以根据第二模式切换指令,通过切换电路25,执行相应的逻辑,以将第二共享端口24切换至第二工作模式。Based on this, the multi-node server 100 may receive the second mode switching instruction. Wherein, the generation method of the second mode switching instruction may refer to the first mode switching instruction, and will not be listed here. Then the multi-node server 100 can switch the second shared port 24 to the second working mode according to the second mode switching instruction. Specifically, the multi-node server 100 may execute corresponding logic through the switching circuit 25 according to the second mode switching instruction, so as to switch the second shared port 24 to the second working mode.
其中,第二工作模式为所述第二共享端口24为所述多个计算节点10中的至少一个计算节点10提供指定类型的端口功能的模式。第二共享端口24可以连接多个计算节点10,也可以连接多个计算节点10中的一个计算节点10,并为连接的计算节点10提供指定类型的端口功能。在一些实施例中,多节点服务器100可以根据第二模式切换指令,将第二共享端口24由串口如COM、UART切换为GE网口或10GE网口。在另一些实施例中,多节点服务器100可以根据第二模式切换指令,将第二共享端口24由USB切换为VGA、HDMI或者网口。Wherein, the second working mode is a mode in which the second shared port 24 provides a specified type of port function for at least one computing node 10 among the plurality of computing nodes 10 . The second shared port 24 can be connected to multiple computing nodes 10 , or can be connected to one computing node 10 among the multiple computing nodes 10 , and provides a specified type of port function for the connected computing nodes 10 . In some embodiments, the multi-node server 100 can switch the second shared port 24 from a serial port such as COM or UART to a GE network port or a 10GE network port according to the second mode switching instruction. In other embodiments, the multi-node server 100 may switch the second shared port 24 from USB to VGA, HDMI or Ethernet port according to the second mode switching instruction.
基于上述内容描述,本申请实实施例提供了一种端口共享方法。具体地,在服务器框20的面板设置按模式提供不同端口功能的共享端口,例如是第一共享端口23或第二共享端口24,通过对共享端口进行模式切换,例如切换至指定工作模式,可以使得共享端口提供与指定工作模式对应的指定功能。,由此可以节省提升计算节点的面板空间利用率,为提升多节点服务器100的规格预留了面板空间,能够满足不断增加的端口数量和端口类型业务的需求。Based on the above description, the embodiments of the present application provide a port sharing method. Specifically, the panel setting of the server frame 20 provides a shared port with different port functions according to the mode, such as the first shared port 23 or the second shared port 24, by switching the mode of the shared port, for example, switching to a specified working mode, you can Make the shared port provide the specified function corresponding to the specified working mode. , thereby saving and improving the utilization rate of the panel space of the computing nodes, and reserving the panel space for upgrading the specifications of the multi-node server 100, which can meet the demands of increasing port quantity and port type services.
上文结合图1至图7对本申请实施例提供的端口共享方法进行了详细介绍,下面将结合附图对本申请实施例提供的装置、设备进行介绍。The port sharing method provided by the embodiment of the present application has been described in detail above with reference to FIG. 1 to FIG. 7 , and the apparatus and equipment provided by the embodiment of the present application will be introduced below in conjunction with the accompanying drawings.
参见图8所示的端口共享装置的结构示意图,该装置800应用于多节点服务器100,所述多节点服务器100包括服务器框20和多个计算节点10,所述服务器框20包括至少一个共享端口,该装置800包括:Referring to the schematic structural diagram of the port sharing device shown in FIG. 8, the device 800 is applied to a multi-node server 100, the multi-node server 100 includes a server frame 20 and a plurality of computing nodes 10, and the server frame 20 includes at least one shared port , the device 800 includes:
通信模块802,用于接收模式切换指令,所述模式切换指令用于对所述共享端口进行模式切换,所述共享端口用于按模式提供不同的端口功能;The communication module 802 is configured to receive a mode switching instruction, the mode switching instruction is used to switch the mode of the shared port, and the shared port is used to provide different port functions according to the mode;
切换模块804,用于根据所述模式切换指令,将所述共享端口切换至指定工作模式,所述指定工作模式为所述共享端口提供指定功能的模式。The switching module 804 is configured to switch the shared port to a designated working mode according to the mode switching instruction, and the designated working mode provides a designated function for the shared port.
在一些可能的实现方式中,所述通信模块802具体用于:In some possible implementation manners, the communication module 802 is specifically configured to:
接收第一模式切换指令,所述第一模式切换指令用于对第一共享端口进行模式切换,所述第一共享端口为所述至少一个共享端口中任意一个端口,所述第一共享端口用于被所述多个计算节点中的不同计算节点分时使用,以为所述不同计算节点提供端口功能;receiving a first mode switching instruction, the first mode switching instruction is used to switch the mode of the first shared port, the first shared port is any one of the at least one shared port, and the first shared port uses used by different computing nodes in the plurality of computing nodes in time-sharing, so as to provide port functions for the different computing nodes;
所述切换模块804具体用于:The switching module 804 is specifically used for:
根据所述第一模式切换指令,将所述第一共享端口切换至第一工作模式,所述第一工作模式为所述第一共享端口被所述多个计算节点中的指定计算节点使用,并为所述指定计算节点提供端口功能的模式。According to the first mode switching instruction, the first shared port is switched to a first working mode, and the first working mode is that the first shared port is used by a designated computing node among the plurality of computing nodes, And provide a port function mode for the specified computing node.
在一些可能的实现方式中,所述通信模块802还用于:In some possible implementation manners, the communication module 802 is also configured to:
在接收第一模式切换指令之前,接收针对所述第一共享端口的状态切换指令;Before receiving the first mode switching instruction, receiving a state switching instruction for the first shared port;
所述切换模块还用于:The switching module is also used for:
根据所述状态切换指令,将所述第一共享端口的状态切换为运维状态,所述运维状态用于标识所述第一共享端口传输运维信息,以对所述多节点服务器进行运维。According to the state switching instruction, the state of the first shared port is switched to an operation and maintenance state, and the operation and maintenance state is used to identify the first shared port to transmit operation and maintenance information, so as to operate the multi-node server dimension.
在一些可能的实现方式中,,所述通信模块802具体用于:In some possible implementation manners, the communication module 802 is specifically configured to:
接收第二模式切换指令,所述第二模式切换指令用于对第二共享端口进行模式切换,所述第二共享端口为所述至少一个共享端口中任意一个端口,所述第二共享端口用于为所述多个计算节点中的至少一个计算节点提供不同类型的端口功能;receiving a second mode switching instruction, the second mode switching instruction is used to switch the mode of the second shared port, the second shared port is any port in the at least one shared port, and the second shared port uses providing different types of port functions for at least one of the plurality of computing nodes;
所述切换模块804具体用于:The switching module 804 is specifically used for:
根据所述第二模式切换指令,将所述第二共享端口切换为第二工作模式,所述第二工作模式为所述第二共享端口为所述多个计算节点中的至少一个计算节点提供指定类型的端口功能的模式。According to the second mode switching instruction, the second shared port is switched to a second working mode, and the second working mode is that the second shared port provides at least one computing node among the plurality of computing nodes Specifies the mode of the port function for the type.
在一些可能的实现方式中,所述第二共享端口提供的不同类型的端口功能是根据各类型的端口的使用频次、重要程度和速率中的一种或多种预先确定。In some possible implementation manners, the different types of port functions provided by the second shared port are predetermined according to one or more of use frequency, importance, and speed of each type of port.
在一些可能的实现方式中,所述模式切换指令通过硬件按钮、软件赋值或者计时触发中至少一种触发。In some possible implementation manners, the mode switching instruction is triggered by at least one of a hardware button, a software assignment, or a timing trigger.
在一些可能的实现方式中,所述硬件按钮包括多种按键模式,所述多种按键模式包括长按、短按或连按。In some possible implementation manners, the hardware button includes multiple key modes, and the multiple key modes include long press, short press, or double press.
在一些可能的实现方式中,所述多个计算节点中的每个计算节点的面板的空闲区域设置出风口、非共享端口和/或电源,所述空闲区域为在所述服务器框中设置所述共享端口后,所述计算节点的面板预留的区域。In some possible implementation manners, an air outlet, a non-shared port and/or a power supply are set in an idle area of the panel of each of the multiple computing nodes, and the idle area is set in the server frame. After the above-mentioned shared port, the area reserved for the panel of the computing node.
在一些可能的实现方式中,所述多节点服务器包括切换电路,所述切换电路用于切换所述共享端口连通的回路,所述切换电路包括切换开关和交换机中的至少一个,所述切换开关或所述交换机用于连接所述服务器框中所述至少一个共享端口,以及连接所述多节点服务器的平台控制器中心、基板管理控制器、复杂可编程逻辑器件中的至少一个。In some possible implementation manners, the multi-node server includes a switch circuit, the switch circuit is used to switch the loop connected to the shared port, the switch circuit includes at least one of a switch and a switch, and the switch Or the switch is used to connect to the at least one shared port in the server box and at least one of the platform controller center, baseboard management controller, and complex programmable logic device of the multi-node server.
根据本申请实施例的端口共享装置800可对应于执行本申请实施例中描述的方法,并且端口共享装置800的各个模块/单元的上述和其它操作和/或功能分别为了实现图7所示实施例中的各个方法的相应流程,为了简洁,在此不再赘述。The port sharing device 800 according to the embodiment of the present application may correspond to the implementation of the method described in the embodiment of the present application, and the above-mentioned and other operations and/or functions of the various modules/units of the port sharing device 800 are respectively in order to realize the implementation shown in FIG. 7 For the sake of brevity, the corresponding flow of each method in the example is not repeated here.
本申请实施例还提供了一种多节点服务器100。该多节点服务器100具体用于实现如图8所示实施例中端口共享装置800的功能。The embodiment of the present application also provides a multi-node server 100 . The multi-node server 100 is specifically used to realize the functions of the port sharing device 800 in the embodiment shown in FIG. 8 .
图9提供了一种多节点服务器100的硬件结构图,多节点服务器100包括服务器框10和多个计算节点20,其中,服务器框10包括框内电路板15。框内电路板15中设置有切换电路,切换电路用于切换服务器框20的面板上的共享端口所连通的回路。每个计算节点 20包括总线901、处理器902、通信接口903和存储器904。处理器902、存储器904和通信接口903之间通过总线901通信。FIG. 9 provides a hardware structure diagram of a multi-node server 100. The multi-node server 100 includes a server frame 10 and a plurality of computing nodes 20, wherein the server frame 10 includes a circuit board 15 in the frame. A switching circuit is provided in the circuit board 15 in the frame, and the switching circuit is used to switch the circuit connected to the shared port on the panel of the server frame 20 . Each computing node 20 includes a bus 901, a processor 902, a communication interface 903, and a memory 904. The processor 902 , the memory 904 and the communication interface 903 communicate through the bus 901 .
总线901可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 901 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 9 , but it does not mean that there is only one bus or one type of bus.
处理器602可以为中央处理器(central processing unit,CPU)、图形处理器(graphics processing unit,GPU)、神经网络处理器(neural network processing unit,NPU)、微处理器(micro processor,MP)或者数字信号处理器(digital signal processor,DSP)等处理器中的任意一种或多种。The processor 602 may be a central processing unit (central processing unit, CPU), a graphics processing unit (graphics processing unit, GPU), a neural network processor (neural network processing unit, NPU), a microprocessor (micro processor, MP) or Any one or more of digital signal processors (digital signal processor, DSP) and other processors.
通信接口903用于与外部通信。例如,通信接口903用于传输运维信息,以便进行运维,或者是通信接口903用于传输业务数据,以对外提供服务等。The communication interface 903 is used for communicating with the outside. For example, the communication interface 903 is used to transmit operation and maintenance information for operation and maintenance, or the communication interface 903 is used to transmit business data to provide external services.
存储器904可以包括易失性存储器(volatile memory),例如随机存取存储器(random access memory,RAM)。存储器1004还可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器,硬盘驱动器(hard disk drive,HDD)或固态驱动器(solid state drive,SSD)。The memory 904 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM). Memory 1004 can also include non-volatile memory (non-volatile memory), such as read-only memory (read-only memory, ROM), flash memory, hard disk drive (hard disk drive, HDD) or solid state drive (solid state drive) , SSD).
框内电路板15与多个计算节点20连接,框内电路板15可以执行前述端口共享方法,以使共享端口被多个计算节点20中的不同计算节点20分时使用,以为所述不同计算节点20提供端口功能,或者是共享端口为多个计算节点20中的至少一个计算节点20提供不同类型的端口功能。The circuit board 15 in the frame is connected to a plurality of computing nodes 20, and the circuit board 15 in the frame can execute the aforementioned port sharing method, so that the shared port is used by different computing nodes 20 in the multiple computing nodes 20 in time-sharing for the different computing nodes 20. The node 20 provides port functions, or the shared port provides at least one computing node 20 among the plurality of computing nodes 20 with different types of port functions.
本申请实施例还提供了一种计算机可读存储介质。所述计算机可读存储介质可以是计算设备能够存储的任何可用介质或者是包含一个或多个可用介质的数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘)等。该计算机可读存储介质包括指令,所述指令指示多节点服务器100执行上述端口共享方法。The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium may be any available medium that a computing device can store, or a data storage device such as a data center that includes one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state hard disk), etc. The computer-readable storage medium includes instructions, which instruct the multi-node server 100 to execute the port sharing method described above.
本申请实施例还提供了一种计算机程序产品。所述计算机程序产品包括一个或多个计算机指令。在多节点服务器100上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算设备或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算设备或数据中心进行传输。所述计算机程序产品可以为一个软件安装包,在需要使用前述端口共享方法的任一方法的情况下,可以下载该计算机程序产品并在多节点服务器100上执行该计算机程序产品。The embodiment of the present application also provides a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the multi-node server 100, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, from a website, computing device, or data center via Wired (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) transmission to another website site, computing device, or data center. The computer program product may be a software installation package, and the computer program product may be downloaded and executed on the multi-node server 100 if any of the aforementioned port sharing methods needs to be used.
上述各个附图对应的流程或结构的描述各有侧重,某个流程或结构中没有详述的部分,可以参见其他流程或结构的相关描述。The description of the process or structure corresponding to each of the above drawings has its own emphasis. For the part that is not described in detail in a certain process or structure, you can refer to the relevant description of other processes or structures.

Claims (21)

  1. 一种端口共享方法,其特征在于,应用于多节点服务器,所述多节点服务器包括服务器框和多个计算节点,所述服务器框包括至少一个共享端口,所述方法包括:A port sharing method, characterized in that it is applied to a multi-node server, the multi-node server includes a server frame and a plurality of computing nodes, the server frame includes at least one shared port, and the method includes:
    接收模式切换指令,所述模式切换指令用于对所述共享端口进行模式切换,所述共享端口用于按模式提供不同的端口功能;Receiving a mode switching instruction, the mode switching instruction is used to switch the mode of the shared port, and the shared port is used to provide different port functions according to the mode;
    根据所述模式切换指令,将所述共享端口切换至指定工作模式,所述指定工作模式为所述共享端口提供指定功能的模式。According to the mode switching instruction, the shared port is switched to a designated working mode, and the designated working mode provides a designated function for the shared port.
  2. 根据权利要求1所述的方法,其特征在于,所述接收模式切换指令,包括:The method according to claim 1, wherein the receiving the mode switching instruction comprises:
    接收第一模式切换指令,所述第一模式切换指令用于对第一共享端口进行模式切换,所述第一共享端口为所述至少一个共享端口中任意一个端口,所述第一共享端口用于被所述多个计算节点中的不同计算节点分时使用,以为所述不同计算节点提供端口功能;receiving a first mode switching instruction, the first mode switching instruction is used to switch the mode of the first shared port, the first shared port is any one of the at least one shared port, and the first shared port uses used by different computing nodes in the plurality of computing nodes in time-sharing, so as to provide port functions for the different computing nodes;
    所述根据所述模式切换指令,将所述共享端口切换至指定工作模式,包括:According to the mode switching instruction, switching the shared port to a specified working mode includes:
    根据所述第一模式切换指令,将所述第一共享端口切换至第一工作模式,所述第一工作模式为所述第一共享端口被所述多个计算节点中的指定计算节点使用,并为所述指定计算节点提供端口功能的模式。According to the first mode switching instruction, the first shared port is switched to a first working mode, and the first working mode is that the first shared port is used by a designated computing node among the plurality of computing nodes, And provide a port function mode for the specified computing node.
  3. 根据权利2所述的方法,其特征在于,在接收第一模式切换指令之前,所述方法还包括:The method according to claim 2, wherein before receiving the first mode switching instruction, the method further comprises:
    接收针对所述第一共享端口的状态切换指令;receiving a state switching instruction for the first shared port;
    根据所述状态切换指令,将所述第一共享端口的状态切换为运维状态,所述运维状态用于标识所述第一共享端口传输运维信息,以对所述多节点服务器进行运维。According to the state switching instruction, the state of the first shared port is switched to an operation and maintenance state, and the operation and maintenance state is used to identify the first shared port to transmit operation and maintenance information, so as to operate the multi-node server dimension.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述接收模式切换指令,包括:The method according to any one of claims 1 to 3, wherein the receiving the mode switching instruction includes:
    接收第二模式切换指令,所述第二模式切换指令用于对第二共享端口进行模式切换,所述第二共享端口为所述至少一个共享端口中任意一个端口,所述第二共享端口用于为所述多个计算节点中的至少一个计算节点提供不同类型的端口功能;receiving a second mode switching instruction, the second mode switching instruction is used to switch the mode of the second shared port, the second shared port is any port in the at least one shared port, and the second shared port uses providing different types of port functions for at least one of the plurality of computing nodes;
    所述根据所述模式切换指令,将所述共享端口切换至指定工作模式,包括:According to the mode switching instruction, switching the shared port to a specified working mode includes:
    根据所述第二模式切换指令,将所述第二共享端口切换为第二工作模式,所述第二工作模式为所述第二共享端口为所述多个计算节点中的至少一个计算节点提供指定类型的端口功能的模式。According to the second mode switching instruction, the second shared port is switched to a second working mode, and the second working mode is that the second shared port provides at least one computing node among the plurality of computing nodes Specifies the mode of the port function of the type.
  5. 根据权利要求4所述的方法,其特征在于,所述第二共享端口提供的不同类型的端口功能是根据各类型的端口的使用频次、重要程度和速率中的一种或多种预先确定。The method according to claim 4, wherein the different types of port functions provided by the second shared port are predetermined according to one or more of frequency of use, importance and speed of each type of port.
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述模式切换指令通过硬件按钮、软件赋值或者计时触发中至少一种触发。The method according to any one of claims 1 to 5, wherein the mode switching instruction is triggered by at least one of a hardware button, a software assignment, or a timing trigger.
  7. 根据权利要求6所述的方法,其特征在于,所述硬件按钮包括多种按键模式,所述多种按键模式包括长按、短按或连按。The method according to claim 6, wherein the hardware button includes multiple key modes, and the multiple key modes include long press, short press or double press.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述多个计算节点中的每个计算节点的面板的空闲区域设置出风口、非共享端口和/或电源,所述空闲区域为在所述服务器框中设置所述共享端口后,所述计算节点的面板预留的区域。The method according to any one of claims 1 to 7, wherein air outlets, non-shared ports and/or power supplies are set in the idle area of the panel of each of the multiple computing nodes, and the idle The area is the area reserved by the panel of the computing node after the shared port is set in the server frame.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述多节点服务器包括切换电路,所述切换电路用于切换所述共享端口连通的回路,所述切换电路包括切换开关和交换机中的至少一个,所述切换开关或所述交换机用于连接所述服务器框中所述至少一个共享端口,以及连接所述多节点服务器的平台控制器中心、基板管理控制器、复杂可编程逻辑器件中的至少一个。The method according to any one of claims 1 to 8, wherein the multi-node server includes a switch circuit, the switch circuit is used to switch the loop connected to the shared port, and the switch circuit includes a switch and At least one of the switches, the switching switch or the switch is used to connect the at least one shared port in the server box, and connect the platform controller center, baseboard management controller, complex programmable at least one of the logic devices.
  10. 一种端口共享装置,其特征在于,应用于多节点服务器,所述多节点服务器包括服务器框和多个计算节点,所述服务器框包括至少一个共享端口,所述装置包括:A port sharing device is characterized in that it is applied to a multi-node server, the multi-node server includes a server frame and a plurality of computing nodes, the server frame includes at least one shared port, and the device includes:
    通信模块,用于接收模式切换指令,所述模式切换指令用于对所述共享端口进行模式切换,所述共享端口用于按模式提供不同的端口功能;The communication module is configured to receive a mode switching instruction, the mode switching instruction is used to switch the mode of the shared port, and the shared port is used to provide different port functions according to the mode;
    切换模块,用于根据所述模式切换指令,将所述共享端口切换至指定工作模式,所述指定工作模式为所述共享端口提供指定功能的模式。A switching module, configured to switch the shared port to a designated working mode according to the mode switching instruction, and the designated working mode provides a designated function for the shared port.
  11. 根据权利要求10所述的装置,其特征在于,所述通信模块具体用于:The device according to claim 10, wherein the communication module is specifically used for:
    接收第一模式切换指令,所述第一模式切换指令用于对第一共享端口进行模式切换,所述第一共享端口为所述至少一个共享端口中任意一个端口,所述第一共享端口用于被所述多个计算节点中的不同计算节点分时使用,以为所述不同计算节点提供端口功能;receiving a first mode switching instruction, the first mode switching instruction is used to switch the mode of the first shared port, the first shared port is any one of the at least one shared port, and the first shared port uses used by different computing nodes in the plurality of computing nodes in time-sharing, so as to provide port functions for the different computing nodes;
    所述切换模块具体用于:The switching module is specifically used for:
    根据所述第一模式切换指令,将所述第一共享端口切换至第一工作模式,所述第一工作模式为所述第一共享端口被所述多个计算节点中的指定计算节点使用,并为所述指定计算节点提供端口功能的模式。According to the first mode switching instruction, the first shared port is switched to a first working mode, and the first working mode is that the first shared port is used by a designated computing node among the plurality of computing nodes, And provide the port function mode for the specified computing node.
  12. 根据权利10所述的装置,其特征在于,所述通信模块还用于:The device according to claim 10, wherein the communication module is also used for:
    在接收第一模式切换指令之前,接收针对所述第一共享端口的状态切换指令;Before receiving the first mode switching instruction, receiving a state switching instruction for the first shared port;
    所述切换模块还用于:The switching module is also used for:
    根据所述状态切换指令,将所述第一共享端口的状态切换为运维状态,所述运维状态用于标识所述第一共享端口传输运维信息,以对所述多节点服务器进行运维。According to the state switching instruction, the state of the first shared port is switched to an operation and maintenance state, and the operation and maintenance state is used to identify the first shared port to transmit operation and maintenance information, so as to operate the multi-node server dimension.
  13. 根据权利要求10至12任一项所述的装置,其特征在于,所述通信模块具体用于:The device according to any one of claims 10 to 12, wherein the communication module is specifically used for:
    接收第二模式切换指令,所述第二模式切换指令用于对第二共享端口进行模式切换,所述第二共享端口为所述至少一个共享端口中任意一个端口,所述第二共享端口用于为所述多个计算节点中的至少一个计算节点提供不同类型的端口功能;receiving a second mode switching instruction, the second mode switching instruction is used to switch the mode of the second shared port, the second shared port is any port in the at least one shared port, and the second shared port uses providing different types of port functions for at least one of the plurality of computing nodes;
    所述切换模块具体用于:The switching module is specifically used for:
    根据所述第二模式切换指令,将所述第二共享端口切换为第二工作模式,所述第二工作模式为所述第二共享端口为所述多个计算节点中的至少一个计算节点提供指定类型的端口功能的模式。According to the second mode switching instruction, the second shared port is switched to a second working mode, and the second working mode is that the second shared port provides at least one computing node among the plurality of computing nodes Specifies the mode of the port function of the type.
  14. 根据权利要求13所述的装置,其特征在于,所述第二共享端口提供的不同类型的端口功能是根据各类型的端口的使用频次、重要程度和速率中的一种或多种预先确定。The device according to claim 13, wherein the different types of port functions provided by the second shared port are predetermined according to one or more of the frequency of use, importance and speed of each type of port.
  15. 根据权利要求10至14任一项所述的装置,其特征在于,所述模式切换指令通过硬件按钮、软件赋值或者计时触发中至少一种触发。The device according to any one of claims 10 to 14, wherein the mode switching instruction is triggered by at least one of a hardware button, a software assignment, or a timing trigger.
  16. 根据权利要求15所述的装置,其特征在于,所述硬件按钮包括多种按键模式,所述多种按键模式包括长按、短按或连按。The device according to claim 15, wherein the hardware button includes multiple key modes, and the multiple key modes include long press, short press or double press.
  17. 根据权利要求10至16任一项所述的装置,其特征在于,所述多个计算节点中的每个计算节点的面板的空闲区域设置出风口、非共享端口和/或电源,所述空闲区域为在所述服务器框中设置所述共享端口后,所述计算节点的面板预留的区域。The device according to any one of claims 10 to 16, wherein air outlets, non-shared ports and/or power supplies are set in the idle area of the panel of each of the multiple computing nodes, and the idle The area is the area reserved by the panel of the computing node after the shared port is set in the server box.
  18. 根据权利要求10至17任一项所述的装置,其特征在于,所述多节点服务器包括切换电路,所述切换电路用于切换所述共享端口连通的回路,所述切换电路包括切换开关和交换机中的至少一个,所述切换开关或所述交换机用于连接所述服务器框中所述至少一个共享端口,以及连接所述多节点服务器的平台控制器中心、基板管理控制器、复杂可编程逻辑器件中的至少一个。The device according to any one of claims 10 to 17, wherein the multi-node server includes a switch circuit, the switch circuit is used to switch the loop connected to the shared port, and the switch circuit includes a switch and At least one of the switches, the switching switch or the switch is used to connect the at least one shared port in the server box, and connect the platform controller center, baseboard management controller, complex programmable at least one of the logic devices.
  19. 一种多节点服务器,其特征在于,所述多节点服务器包括服务器框和多个计算节点,所述服务器框包括至少一个共享端口,所述多节点服务器用于执行如权利要求1至9任一项所述的端口共享方法。A multi-node server, characterized in that the multi-node server includes a server frame and a plurality of computing nodes, the server frame includes at least one shared port, and the multi-node server is used to execute any one of claims 1 to 9. The port sharing method described in item .
  20. 一种计算机可读存储介质,其特征在于,包括计算机可读指令,当所述计算机可读指令在计算机上运行时,使得所述计算机执行如权利要求1至9任一项所述的端口共享方法。A computer-readable storage medium, characterized in that it includes computer-readable instructions, and when the computer-readable instructions are run on a computer, the computer executes the port sharing according to any one of claims 1 to 9 method.
  21. 一种计算机程序产品,其特征在于,包括计算机可读指令,当所述计算机可读指令在计算机上运行时,使得所述计算机执行如权利要求1至9任一项所述的端口共享方法。A computer program product, characterized by comprising computer readable instructions, when the computer readable instructions are run on a computer, the computer is made to execute the port sharing method according to any one of claims 1 to 9.
PCT/CN2022/095935 2021-09-30 2022-05-30 Port sharing method and related device WO2023050848A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111163652.3A CN115905063A (en) 2021-09-30 2021-09-30 Port sharing method and related equipment
CN202111163652.3 2021-09-30

Publications (1)

Publication Number Publication Date
WO2023050848A1 true WO2023050848A1 (en) 2023-04-06

Family

ID=85729564

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/095935 WO2023050848A1 (en) 2021-09-30 2022-05-30 Port sharing method and related device

Country Status (2)

Country Link
CN (1) CN115905063A (en)
WO (1) WO2023050848A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448029A (en) * 2008-12-22 2009-06-03 华为技术有限公司 Method for interfacing shared panel, monitoring device and communication equipment thereof
CN103489431A (en) * 2012-10-18 2014-01-01 天津三星电子有限公司 Display terminal
CN108768693A (en) * 2018-04-19 2018-11-06 华勤通讯技术有限公司 The recognition methods of shared port, storage medium and server in Multi net voting port
US20190018874A1 (en) * 2017-07-11 2019-01-17 Sap Se Database interface agent for a tenant-based upgrade system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448029A (en) * 2008-12-22 2009-06-03 华为技术有限公司 Method for interfacing shared panel, monitoring device and communication equipment thereof
CN103489431A (en) * 2012-10-18 2014-01-01 天津三星电子有限公司 Display terminal
US20190018874A1 (en) * 2017-07-11 2019-01-17 Sap Se Database interface agent for a tenant-based upgrade system
CN108768693A (en) * 2018-04-19 2018-11-06 华勤通讯技术有限公司 The recognition methods of shared port, storage medium and server in Multi net voting port

Also Published As

Publication number Publication date
CN115905063A (en) 2023-04-04

Similar Documents

Publication Publication Date Title
US9712337B2 (en) Employing power over ethernet for auxiliary power in computer systems
US8745302B2 (en) System and method for high-performance, low-power data center interconnect fabric
WO2016107273A1 (en) Computer device and configuration management method thereof
US20110176447A1 (en) Method and system for holistic energy management in ethernet networks
CN110865958B (en) LRM-based integrated switching management module design method
CN103501242A (en) Resource management method and multiple-node cluster device
WO2020020274A1 (en) Electronic device, expansion card assembly, server device and management method therefor
CN113645047B (en) Out-of-band management system and server based on intelligent network card
WO2011157138A2 (en) Multi-core router
CN104899170A (en) Distributed intelligent platform management bus (IPMB) connection method and ATCA (Advanced Telecom Computing Architecture) machine frame
CN104881105A (en) Electronic device
CN108664440A (en) Interface server and cabinet
CN210428286U (en) Modular edge server structure
CN116069709A (en) Server system and network card integrated device
CN116166434A (en) Processor allocation method and system, device, storage medium and electronic equipment
CN117041184B (en) IO expansion device and IO switch
WO2018011425A1 (en) Clustering system
CN108334172B (en) Case for computer
WO2023050848A1 (en) Port sharing method and related device
WO2024098942A1 (en) Pcie device management method, device and server
GB2552208A (en) Clustering system
CN116401065A (en) Server, heterogeneous equipment and data processing device thereof
US8688889B2 (en) Virtual USB key for blade server
CN110908863A (en) ARM engine cluster server
CN216352292U (en) Server mainboard and server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22874246

Country of ref document: EP

Kind code of ref document: A1