WO2020125041A1 - Network switching method and device - Google Patents

Network switching method and device Download PDF

Info

Publication number
WO2020125041A1
WO2020125041A1 PCT/CN2019/101410 CN2019101410W WO2020125041A1 WO 2020125041 A1 WO2020125041 A1 WO 2020125041A1 CN 2019101410 W CN2019101410 W CN 2019101410W WO 2020125041 A1 WO2020125041 A1 WO 2020125041A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
cabinet
switch
information
control system
Prior art date
Application number
PCT/CN2019/101410
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 WO2020125041A1 publication Critical patent/WO2020125041A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/02Constructional details
    • H04Q1/028Subscriber network interface devices
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05KPRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
    • H05K7/00Constructional details common to different types of electric apparatus
    • H05K7/14Mounting supporting structure in casing or on frame or rack

Definitions

  • This application relates to the technical field of device management, and in particular, to a network switching method and device.
  • this repair method may cause the equipment in the cabinet to be in a working state for a long time, and further paralyze the business system corresponding to the equipment.
  • the present application provides a network switching method and device for faster repair of network failures in a cabinet.
  • the present application provides a cabinet including a cabinet body and a placeholder module installed inside the cabinet body.
  • the occupancy module is used to detect the occupancy information of the equipment racked to the cabinet and send the occupancy information to the control system connected to the cabinet.
  • the occupancy information is used to indicate the location information of the equipment occupying the cabinet.
  • the occupancy module in the cabinet can detect the occupancy information of the equipment racked to the cabinet, and after sending the occupancy information to the control system, the control system can determine the allocation of the occupancy space in the cabinet according to the occupancy information Situation, so that the system can effectively manage the space occupied by the cabinet.
  • the above-mentioned placeholder module includes a placeholder controller and a camera, and the above placeholder module is used to detect the placeholder information of the equipment racked to the cabinet and send the placeholder information to the control system connected to the cabinet ,
  • a placeholder module which detects the placeholder information of the equipment racked to the cabinet through the placeholder controller, scans the equipment's identification information through the camera to obtain the equipment's identity, and sends the equipment's identity and to the control system connected to the cabinet Placeholder information.
  • the control system can obtain the occupation information corresponding to each device. This scheme can not only quickly find the location of the equipment to be found through the control system, but also make a system for the shelf position of each equipment ⁇ Management.
  • the above cabinet includes N slots
  • the above-mentioned occupancy module further includes N occupancy indicators, one occupancy indicator is installed in one slot, and one occupancy indicator is used to indicate Whether the slot corresponding to the place indicator is occupied, N is a positive integer.
  • the space in the cabinet is divided into N slots in units of slots.
  • One shelf device occupies one or more slots, and the indicator corresponding to the occupied slot can indicate the slot. It has been occupied, and the status of the slot in the cabinet can be obtained more quickly through the indicator light for systematic management.
  • the above cabinet may further include a power connection module, which is used to provide power to the equipment racked up to the cabinet, and obtain the power occupancy information of the cabinet, and then send the power occupancy to the control system Information, where the power occupancy information is used to indicate the power interface and power consumption of the power-on module used by the equipment racked to the cabinet.
  • the power connection module in the cabinet can detect the power occupancy information of the equipment racked to the cabinet, and after sending the power occupancy information to the control system, the control system can determine the power interface and power distribution in the cabinet according to the power occupancy information Information, so that the power interface and power in the cabinet can be more effectively managed systematically.
  • the above cabinet further includes a network port module, the network port module is used to provide a network to the equipment racked to the cabinet, and obtain network status information of the equipment, and then send the network status to the control system information.
  • the network port module in the cabinet can detect the network status information of the equipment racked to the cabinet, and after sending the network status information to the control system, the control system can determine the network usage status of the equipment in the cabinet based on the network status information In this way, the network of equipment in the cabinet can be managed more effectively.
  • the network port includes a switch, and the switch is used to connect the network port module to the first network switch or the second network switch.
  • the first network switch and the second network switch are different network switches, and at a moment, the network port module is connected to one network switch.
  • the outside of the cabinet includes a cabinet indicator light
  • the cabinet indicator light is used to indicate that a device racked to the cabinet has a failure.
  • the indicator light of the cabinet is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
  • the indicator light of the cabinet is used to indicate that the searched device exists in the cabinet.
  • the outside of the cabinet may further include cabinet identification information, and the cabinet identification information is used to indicate information of equipment racked to the cabinet.
  • the cabinet identification information may be a two-dimensional code. By scanning the two-dimensional code, the information of the equipment in the cabinet can be obtained. With this solution, the detailed information of the equipment racked into the cabinet can be quickly obtained through the cabinet identification information outside the cabinet.
  • the present application provides a cabinet system including a control system and the cabinet in any embodiment of the first aspect described above.
  • the control system is used to receive and present the information sent by the cabinet.
  • the information sent by the cabinet may be occupancy information, and/or, power occupancy information, and/or, network status information.
  • the above solution receives and presents the information sent by the cabinet through the control system, and can quickly obtain the information of the equipment in each cabinet from the control system, so as to more efficiently realize the systematic management of the equipment in the cabinet.
  • the present application provides a placeholder monitoring method, which includes generating placeholder information when it is detected that the status of the M placeholder switches of the cabinet changes.
  • the cabinet includes N slots, one slot is installed with a placeholder switch, the status of a placeholder switch is used to indicate whether a device is installed in the slot corresponding to the placeholder switch, and the placeholder information is used to indicate
  • the equipment racked up to the cabinet occupies the position information of the cabinet, N is a positive integer, and M is a positive integer not greater than N. Then, send the occupancy information to the control system connected to the cabinet.
  • the status of the occupancy switch will be changed accordingly according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
  • the above method may further include: scanning the identification information of the device racked to the cabinet through a camera on the cabinet to obtain the device identification.
  • the above-mentioned sending the occupation information to the control system connected to the cabinet includes: sending the device identification and the occupation information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
  • the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device.
  • the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes. In this solution, when the equipment in the cabinet is put on or off the shelf, the status of the occupancy switch will change, which is used to indicate that the occupancy status of the slot corresponding to the occupancy switch has changed.
  • the present application provides a placeholder monitoring device, which includes a placeholder detection unit and a placeholder information sending unit.
  • the occupancy detection unit is used to generate occupancy information when it is detected that the status of the M occupancy switches of the cabinet has changed.
  • the cabinet includes N slots, a slot switch is installed in a slot, the status of a place switch is used to indicate whether a device is installed in the slot corresponding to the place switch, and the place information is used to indicate The equipment racked up to the cabinet occupies the position information of the cabinet, N is a positive integer, and M is a positive integer not greater than N.
  • the placeholder information sending unit is used to send placeholder information to the control system connected to the cabinet.
  • the status of the occupancy switch will be changed accordingly according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
  • the above-mentioned occupation monitoring device may further include an equipment identification acquisition unit for controlling a camera on the cabinet, and scanning the identification information of the equipment racked to the cabinet through the camera to obtain the equipment identification.
  • the above-mentioned placeholder information sending unit is specifically used to send the device identification and placeholder information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
  • the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device.
  • the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes. In this solution, when the equipment in the cabinet is put on or off the shelf, the status of the occupancy switch will change, which is used to indicate that the occupancy status of the slot corresponding to the occupancy switch has changed.
  • the present application provides a network switching method.
  • the method includes: receiving a network switching command sent by a control system, and then, according to the network switching command, controlling a switch in the cabinet to switch the connected network switch.
  • This solution uses the network switching command to switch the connected network switches. When a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching.
  • the above-mentioned switching of the connected network switch by controlling the switch in the cabinet according to the network switching command may specifically include: controlling the switch to switch from being connected to the first network switch to being connected to the second network switch according to the network switching command.
  • This solution uses two network switches. When a network failure occurs in the currently connected first network switch, the switch can be quickly switched to the second network switch without network failure through the network switch command to quickly solve the equipment in the cabinet. Network connection problem.
  • the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
  • the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure based on the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
  • the method before receiving the network switching command sent by the control system, the method further includes: reporting the network status information of the cabinet to the control system.
  • the control system can determine the timing of the need to generate a network switching command based on the network status information.
  • the network switching command can be generated in time to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the method further includes: controlling the lighting of the cabinet indicator, which is used to indicate the equipment racked to the cabinet Has been repaired.
  • the present application provides a network switching device, which includes a receiving unit and a switching unit.
  • the receiving unit is used to receive the network switching command sent by the control system.
  • the switching unit is used to control the switch in the cabinet to switch the connected network switch according to the network switching command.
  • This solution uses the network switching command to switch the connected network switches.
  • the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching.
  • the above-mentioned switching unit is specifically used to control the switching switch from connecting to the first network switch to connecting to the second network switch according to the network switching command.
  • This solution uses two network switches. When a network failure occurs in the currently connected first network switch, the switch can be quickly switched to the second network switch without network failure through the network switch command to quickly solve the equipment in the cabinet. Network connection problem.
  • the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
  • the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure based on the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
  • the above device may further include a network state information sending unit, which is used to report the network state information of the cabinet to the control system.
  • the control system can determine the timing of the need to generate a network switching command based on the network status information.
  • the network switching command can be generated in time to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the above-mentioned device may further include an indicator light control unit for controlling the lighting of the cabinet indicator light, and the cabinet indicator light is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
  • the present application provides a computing device, the computing device includes:
  • the processor is configured to read the program in the memory and execute the above network switching method
  • the memory is used to store one or more executable programs, and may store data used by the processor when performing operations.
  • the present application provides a non-transitory computer-readable storage medium, in which instructions are stored in a computer storage medium, which, when run on a computer, causes the computer to perform the network switching method described above.
  • the present application provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the network switching method described above.
  • Figure 1 is a schematic diagram of an existing cabinet
  • FIG. 2 is a schematic diagram of a cabinet system architecture provided by this application.
  • FIG. 3 is a schematic diagram of a cabinet provided by this application.
  • FIG. 4 is a schematic structural diagram of a placeholder module provided by this application.
  • FIG. 5 is a schematic structural diagram of a power receiving module provided by this application.
  • FIG. 6 is a schematic flow chart of a method for occupancy monitoring provided by this application.
  • FIG. 7 is a schematic flowchart of a network switching method provided by this application.
  • FIG. 8 is a schematic diagram of a occupancy monitoring device provided by the application.
  • FIG. 9 is a schematic diagram of a network switching device provided by this application.
  • FIG. 10 is a schematic structural diagram of a computer device provided by this application.
  • the cabinet has anti-vibration, anti-impact, anti-corrosion, anti-radiation and other properties.
  • the cabinet includes an electrical connection module and a network port module.
  • the electrical connection module is installed on a side inside the cabinet, usually a row of electrical sockets, used to provide power to the equipment in the cabinet .
  • the network port module is installed on the top or bottom of the cabinet, usually a row of network sockets, used to provide network to the equipment in the cabinet.
  • Such traditional cabinets may have the following problems in use:
  • this application provides a cabinet system, as shown in FIG. 2, which is a cabinet system provided by this application.
  • the cabinet system includes a control system and a cabinet.
  • the control system may be a computer or other control equipment.
  • the control system is used to receive and present the information sent by the cabinet.
  • the information sent by the cabinet is used to indicate the information of the equipment in the cabinet.
  • the debugger can realize the systematic management of the equipment in the cabinet through the control system.
  • the information sent by the cabinet may be occupancy information of the device, and/or, power occupancy information, and/or, network status information.
  • the occupation information is used to indicate the position information occupied by the equipment in the cabinet in the cabinet.
  • the power occupancy information is used to indicate the power interface and power consumption of the power receiving module used by the equipment racked to the cabinet.
  • the network status information is used to indicate whether the cabinet currently has a network fault.
  • the control system receives the information sent by the cabinet and presents the information, so that the debugger can more efficiently complete the systematic management of the equipment in the cabinet according to the information presented by the control system. And, you can get the specific information of the equipment inside the cabinet. Solved the above problem 1, problem 2, problem 3.
  • the cabinet includes a cabinet body and a placeholder module 100 installed inside the cabinet body.
  • the occupancy module 100 is used to detect the occupancy information of the equipment racked to the cabinet and send the occupancy information to the control system connected to the cabinet.
  • the occupancy module in the cabinet can detect the occupancy information of the equipment racked to the cabinet, and after sending the occupancy information to the control system, the control system can determine the allocation of the occupancy space in the cabinet according to the occupancy information Situation, so that the system can effectively manage the space occupied by the cabinet.
  • the above-mentioned placeholder module 100 is installed on one side inside the cabinet, and the placeholder module includes a placeholder controller and a camera, as shown in FIG. 4, which is a schematic diagram of a placeholder module provided by the present application , Including occupancy controller 101 and camera 102.
  • the occupancy controller 101 has a bar shape and is vertically installed in the cabinet.
  • the occupancy module 100 detects the occupancy information of the equipment racked to the cabinet through the occupancy controller 101.
  • the camera 102 is installed on a vertical rail and can move up and down, and is used to scan the identification information of the device to obtain the device identification.
  • the above occupancy module 100 is specifically used to detect the occupancy information of the device racked to the cabinet through the occupancy controller 101, scan the identification information of the device through the camera 102 to obtain the identification of the device, and send the device to the control system connected to the cabinet Logo and placeholder information.
  • the above cabinet includes N slots, one slot refers to the space size of a unit inside the cabinet, and the specific occupied volume of a unit space size can be set according to actual needs, There are no restrictions on this application.
  • the above occupancy module 100 further includes N occupancy indicators, one occupancy indicator is installed in one slot, one occupancy indicator is used to indicate whether the slot corresponding to the occupancy indicator is occupied, and N is a positive integer .
  • the occupancy information of the equipment inside the cabinet can be obtained, and according to the occupancy information of the equipment inside the cabinet, the occupancy space inside the cabinet can be known, and then the space in the cabinet can be systematically managed .
  • the cabinet shown in FIG. 3 may further include a power connection module 200, which is used to provide power to the equipment racked to the cabinet, and obtain power occupancy information of the cabinet, and then send the power to the control system Occupancy information, where the power supply occupancy information is used to indicate the power interface and power consumption of the power receiving module used by the equipment racked to the cabinet.
  • the power receiving module 200 may be, for example, a smart socket.
  • the socket When a device racked into a cabinet is connected to the smart socket, the socket may provide power to the device, and may generate power consumption information of the device and send it to the control At the same time, the smart socket can also detect which power interface of the smart socket is occupied by each device, and send the detected information about the power interface of the device to the control system.
  • the power receiving module 200 may be two independent sockets. As shown in FIG. 5, when a piece of equipment is racked into the cabinet, the first socket 201 and the second socket 202 are simultaneously connected. Among them, the first socket 201 is the main socket, which provides power for the device, and the second socket 202 is the spare socket. Under normal circumstances, the device does not provide power. When the first socket 201 fails, the second socket 202 is enabled as the device Provide power.
  • the position of the power interface connected to each device in the cabinet can be obtained, that is, the device corresponding to each power cord and the position of the power interface connected can be obtained, and then the cabinet can be The power cord of the device is managed, which solves the problem that the power cord is too chaotic and difficult to manage.
  • the cabinet shown in FIG. 3 may further include a network port module 300, which is used to provide a network to the equipment racked up to the cabinet, obtain network status information of the equipment, and then send the control system Network status information.
  • the network status information of a device can reflect the network usage status of the device, for example, whether the device has a network failure, the network speed of the device, and the total amount of traffic of the device. According to the network status information, it can be determined whether the device is still working. For example, if the total amount of traffic of the device in a period of time is less than the preset flow threshold, it is determined that the device is not working, or it can be said that the device is not needed. You can choose to remove such equipment to save space in the cabinet, and then add other equipment.
  • the network port module 300 may include a switch, and the network port module 300 may be connected to the first network switch or the second network switch through the switch.
  • the first network switch and the second network switch are different network switches, and at a moment, the network port module is connected to one network switch.
  • the switch can switch the connection between the first network switch and the second network switch, and will switch when a network failure of the currently connected network switch occurs.
  • This solution realizes the switch connection between the network port module between the first network switch and the second network switch through a switch. When a network switch fails, it can be quickly switched to another network switch to quickly solve the cabinet The problem of network connection failure within the device. That is, this solution can solve the above problem 4.
  • the outside of the cabinet includes a cabinet indicator light 400.
  • the cabinet indicator light may be provided at the top of the outside of the cabinet (as shown in FIG. 3, for example), or may be provided on the outside side of the cabinet.
  • the application location is not limited in this application, and can be adjusted according to actual needs.
  • the cabinet indicator light is used to indicate that the equipment racked up to the cabinet is faulty.
  • the indicator light of the cabinet is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
  • the indicator light of the cabinet is used to indicate that the searched device exists in the cabinet.
  • the indicator light of the cabinet may be, for example, a light that can change color, indicating different information through different colors, or a plurality of different lights, and one light is responsible for indicating the corresponding information.
  • the outside of the cabinet may further include cabinet identification information 500 (the cabinet identification information 500 in FIG. 3 is a two-dimensional code as an example), and the cabinet identification information is used to indicate the equipment racked to the cabinet. Information and some information of the cabinet.
  • the device occupying information in the cabinet can be acquired, and the occupying space allocation information in the cabinet can be determined, thereby solving the above problem 1.
  • the distribution information of the power supply interface is determined, thereby solving the above problem 2.
  • the switch of the network port module 300 By using the switch of the network port module 300 to switch between the first network switch and the second network switch, the network port module 300 can be quickly connected to the network switch without network failure, thereby solving the above problem 4.
  • the information sent by the cabinet is received and presented through the control system, and the device information inside the cabinet can be quickly obtained through the control system or the cabinet indicator 400 and the cabinet identification information 500 on the cabinet. That solves the above problem 3.
  • the function of the occupancy module 100 in the above-mentioned cabinet will be specifically described below with reference to FIG. 6, that is, the occupancy monitoring method shown in FIG. 6 can be applied to the above-mentioned cabinet, and specifically, can be used for the above-mentioned cabinet occupancy Module 100. It should be noted that this method can also be used in other cabinets. This method can solve the above problem 1.
  • the method includes:
  • Step 601 when it is detected that the status of the M placeholder switches of the cabinet changes, placeholder information is generated.
  • the cabinet includes N slots, one slot is installed with a placeholder switch, the status of a placeholder switch is used to indicate whether a device is installed in the slot corresponding to the placeholder switch, and the placeholder information is used to indicate
  • N is a positive integer
  • M is a positive integer not greater than N.
  • Step 602 Send the occupancy information to the control system connected to the cabinet.
  • the state of the occupancy switch when the device is racked into the cabinet, the state of the occupancy switch will be changed according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
  • the state of the above-mentioned placeholder switch is changed by the device through physical contact.
  • the volume of the equipment rack-mounted to the cabinet matches that of the rack.
  • the placeholder switch is touched to change the state of the placeholder switch.
  • the cabinet sometimes needs to put some relatively small equipment, such equipment can not change the status of the occupancy switch through physical contact.
  • the debugger needs to manually change the status of the occupancy switch.
  • the above-mentioned occupation information is generated according to the position and number of M occupation switches that change state.
  • the occupancy information generated according to the number of occupancy switches is used to indicate the number of slots in the cabinet occupied by the device, that is, the space occupied by the cabinet, or the size of the device.
  • the occupation information generated according to the position of the occupation switch is used to indicate the space position occupied by the device in the cabinet, that is, where the device is in the cabinet.
  • the above method may further include: scanning the identification information of the device racked to the cabinet through a camera on the cabinet to obtain the device identification.
  • the above step 602 may specifically include: sending the device identification and occupation information to the control system connected to the cabinet.
  • the identification information of the device may be affixed to the outer surface of the device in the form of a two-dimensional code, and of course, it may also be affixed to the guide rail used to rack the device. The position of the two-dimensional code is determined according to the position of the camera.
  • the control information Before the above equipment is put on the cabinet, the information needs to be entered in the control system, and the control information generates the equipment identification information according to the entered information. For example, based on the information entered by the device, a two-dimensional code is generated. The two-dimensional code can indicate the information of the device. The two-dimensional code is pasted at a position that can be scanned by the camera. After the camera scans the two-dimensional code, the device is acquired. The device's logo indicates the device. Then send the device identification and occupation information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
  • the above-mentioned occupation monitoring method when the equipment is racked into the cabinet, according to the cabinet space occupied by the equipment, the status of the occupation switch will be changed accordingly, and the occupation information will be generated, and then the occupation information will be sent to the control system.
  • the occupation information determines the allocation of the occupation space in the cabinet, so that the systematic management of the occupation space in the cabinet can be performed more effectively.
  • the function of the network port module 300 in the above-mentioned cabinet will be specifically described below with reference to FIG. 7, that is, the network switching method shown in FIG. 7 may be applied to the above-mentioned cabinet, and specifically, may be used for the network port module of the above-mentioned cabinet 300. It should be noted that this method can also be used in other cabinets. This method can solve the above problem 4.
  • the method includes:
  • Step 701 Receive a network switching command sent by the control system.
  • Step 702 Control the switch in the cabinet to switch the connected network switch according to the network switching command.
  • the network switch is a device that provides a network for the cabinet.
  • the cabinet connected to the network switch may also experience a network failure.
  • the above scheme switches the connected network switches through network switching commands.
  • a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching.
  • the above step 702 may specifically include: according to the network switching command, controlling the switching switch to switch from connecting to the first network switch to connecting to the second network switch.
  • the first network switch currently connected to the cabinet has a network failure, that is, the cabinet has a network failure problem
  • it will receive a network switching command sent by the control system.
  • the switching control switch is connected to the second Network switch to connect the cabinet to the second network switch to achieve normal networking, and solve the problem of network failure in the cabinet.
  • replace and repair the first network switch connected to the cabinet In order to repair the network when a network failure occurs in the second network switch connected to the current cabinet.
  • the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
  • the cabinet detects its own network status information in real time and sends it to the control system.
  • the control system determines whether the cabinet has a network failure according to the network status information of the cabinet. After determining that the cabinet has a network failure, it generates a network switching command and sends it.
  • the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure based on the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
  • step 702 it may further include: controlling the lighting of the cabinet indicator, which is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
  • the cabinet indicator light may be, for example, the cabinet indicator light 400 shown in FIG. 3.
  • the above network switching method switches the connected network switches through the network switching command.
  • a network switch When a network switch has a network failure, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the present application also provides a device for occupying monitoring, as shown in FIG. 8, the device includes:
  • the occupancy detection unit 801 is configured to generate occupancy information when it is detected that the status of the M occupancy switches of the cabinet has changed.
  • the placeholder information sending unit 802 is used to send placeholder information to the control system connected to the cabinet.
  • the state of the occupancy switch when the device is racked into the cabinet, the state of the occupancy switch will be changed according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
  • the above-mentioned occupation monitoring device may further include a device identification acquisition unit 803 for controlling the camera on the cabinet, and scanning the identification information of the device racked to the cabinet through the camera to obtain the device identification.
  • the above-mentioned placeholder information sending unit 802 is specifically used to send the device identification and placeholder information to the control system connected to the cabinet.
  • the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device.
  • the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes.
  • the present application also provides a network switching device.
  • the device includes:
  • the receiving unit 901 is configured to receive a network switching command sent by the control system.
  • the switching unit 902 is configured to control the switch in the cabinet to switch the connected network switch according to the network switching command.
  • the above scheme switches the connected network switches through network switching commands.
  • a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching.
  • the above-mentioned switching unit is specifically used to control the switching switch from connecting to the first network switch to connecting to the second network switch according to the network switching command.
  • the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
  • the above device may further include a network status information sending unit 903, which is used to report the network status information of the cabinet to the control system.
  • the above-mentioned device may further include an indicator light control unit 904 for controlling the lighting of the cabinet indicator light, and the cabinet indicator light is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
  • the present application also provides a computing device.
  • the computing device includes:
  • the processor 1001 is configured to read the program in the memory 1002 and execute the above network switching method
  • the processor 1001 may be a central processing unit (central processing unit, CPU for short), a network processor (NP), or a combination of CPU and NP. It can also be a hardware chip.
  • the aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above PLD can be a complex programmable logic device (complex programmable logic device (CPLD), field-programmable gate array (FPGA), general array logic (GAL) or any of them combination.
  • the memory 1002 is used to store one or more executable programs, and can store data used by the processor 1001 when performing operations.
  • the program may include program code, and the program code includes computer operation instructions.
  • the memory 1002 may include volatile memory (volatile memory), such as random-access memory (RAM for short); the memory 1002 may also include non-volatile memory (non-volatile memory), such as flash memory ( flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 1002 may also include a combination of the above types of memory.
  • the memory 1002 stores the following elements, executable modules or data structures, or their subsets, or their extended sets:
  • Operation instructions including various operation instructions, used to realize various operations.
  • Operating system includes various system programs for implementing various basic services and processing hardware-based tasks.
  • the bus 1005 may be a peripheral component interconnection (peripheral component interconnection, PCI for short) bus or an extended industry standard architecture (extended industry standard architecture, EISA for short) bus, or the like.
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only a thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
  • the bus interface 1004 may be a wired communication access port, a wireless bus interface, or a combination thereof, where the wired bus interface may be, for example, an Ethernet interface.
  • the Ethernet interface may be an optical interface, an electrical interface, or a combination thereof.
  • the wireless bus interface may be a WLAN interface.
  • the embodiments of the present application also provide a non-transitory computer-readable storage medium, in which instructions are stored in the computer storage medium, and when the computer runs on the computer, the computer is allowed to execute the above network switching method.
  • the embodiments of the present application provide a computer program product containing instructions, which, when run on a computer, causes the computer to execute the above network switching method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Multimedia (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present application provides a network switching method and device. The method comprises: receiving a network switching command sent by a control system; and controlling, according to the network switching command, a switch in a machine cabinet to switch from a connected network switch. The present solution employs a network switching command to switch from a connected network switch, such that when a network switch experiences a network failure, a switchover to another network switch can be promptly implemented, thereby quickly resolving the issue of network connection failure for devices in a machine cabinet.

Description

一种网络切换方法及装置Network switching method and device
相关申请的交叉引用Cross-reference of related applications
本申请要求在2018年12月19日提交中国专利局、申请号为201811557987.1、申请名称为“一种网络切换方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application filed on December 19, 2018 in the Chinese Patent Office with the application number 201811557987.1 and the application name "a network switching method and device", the entire contents of which are incorporated by reference in this application .
技术领域Technical field
本申请涉及设备管理技术领域,尤其涉及一种网络切换方法及装置。This application relates to the technical field of device management, and in particular, to a network switching method and device.
背景技术Background technique
目前,当机柜出现网络故障时,需要暂停该机柜内的设备的工作,以对该机柜的网络故障问题进行修复。在机柜的网络故障问题修复后,才能再次启动该机柜内的设备的工作。Currently, when a network failure occurs in a cabinet, it is necessary to suspend the work of the equipment in the cabinet to repair the network failure of the cabinet. Only after the network fault of the cabinet is repaired can the work of the equipment in the cabinet be started again.
而这种修复方式,可能会导致机柜内的设备长时间无法处于工作状态,进而使得该设备对应的业务系统出现瘫痪。And this repair method may cause the equipment in the cabinet to be in a working state for a long time, and further paralyze the business system corresponding to the equipment.
发明内容Summary of the invention
本申请提供一种网络切换方法及装置,用以更快速的修复机柜出现的网络故障问题。The present application provides a network switching method and device for faster repair of network failures in a cabinet.
第一方面,本申请提供一种机柜,该机柜包括柜体、安装在柜体内部的占位模块。占位模块用于检测上架至机柜的设备的占位信息,并向与机柜相连的控制系统发送占位信息,占位信息用于指示设备占据机柜的位置信息。该方案中,机柜中的占位模块能检测到上架至机柜的设备的占位信息,将该占位信息发送到控制系统后,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。In a first aspect, the present application provides a cabinet including a cabinet body and a placeholder module installed inside the cabinet body. The occupancy module is used to detect the occupancy information of the equipment racked to the cabinet and send the occupancy information to the control system connected to the cabinet. The occupancy information is used to indicate the location information of the equipment occupying the cabinet. In this solution, the occupancy module in the cabinet can detect the occupancy information of the equipment racked to the cabinet, and after sending the occupancy information to the control system, the control system can determine the allocation of the occupancy space in the cabinet according to the occupancy information Situation, so that the system can effectively manage the space occupied by the cabinet.
在一种可能的实现方式中,上述占位模块包括占位控制器和摄像头,上 述占位模块用于检测上架至机柜的设备的占位信息,并向与机柜相连的控制系统发送占位信息,具体包括:占位模块,通过占位控制器检测上架至机柜的设备的占位信息,通过摄像头扫描设备的标识信息获取到设备的标识,并向与机柜相连的控制系统发送设备的标识和占位信息。通过该方案,控制系统可以获取每一台设备对应的占位信息,该方案,既可以通过控制系统快速地查找到需要查找的设备所在的位置,也可以对每一台设备的上架位置做系统化管理。In a possible implementation manner, the above-mentioned placeholder module includes a placeholder controller and a camera, and the above placeholder module is used to detect the placeholder information of the equipment racked to the cabinet and send the placeholder information to the control system connected to the cabinet , Which specifically includes: a placeholder module, which detects the placeholder information of the equipment racked to the cabinet through the placeholder controller, scans the equipment's identification information through the camera to obtain the equipment's identity, and sends the equipment's identity and to the control system connected to the cabinet Placeholder information. Through this scheme, the control system can obtain the occupation information corresponding to each device. This scheme can not only quickly find the location of the equipment to be found through the control system, but also make a system for the shelf position of each equipment化管理。 Management.
在一种可能的实现方式中,上述机柜内部包括N个槽位,上述占位模块还包括N个占位指示灯,一个占位指示灯安装于一个槽位,一个占位指示灯用于指示该占位指示灯对应的槽位是否被占用,N为正整数。该方案中,以槽位为单位,将机柜内的空间划分为N个槽位,一个上架的设备占用一个或多个槽位,并且,被占用的槽位对应的指示灯可以指示该槽位已被占用,通过指示灯的方式,可以更快速的获取机柜内的槽位的占用情况,以便进行系统化的管理。In a possible implementation manner, the above cabinet includes N slots, and the above-mentioned occupancy module further includes N occupancy indicators, one occupancy indicator is installed in one slot, and one occupancy indicator is used to indicate Whether the slot corresponding to the place indicator is occupied, N is a positive integer. In this solution, the space in the cabinet is divided into N slots in units of slots. One shelf device occupies one or more slots, and the indicator corresponding to the occupied slot can indicate the slot. It has been occupied, and the status of the slot in the cabinet can be obtained more quickly through the indicator light for systematic management.
在一种可能的实现方式中,上述柜体内部还可以包括接电模块,接电模块用于向上架至机柜的设备提供电源,并且获取机柜的电源占用信息,然后向控制系统发送该电源占用信息,其中,电源占用信息用于指示上架至机柜的设备所使用的接电模块的电源接口及用电量。该方案中,机柜中的接电模块能检测到上架至机柜的设备的电源占用信息,将该电源占用信息发送到控制系统后,控制系统可以根据电源占用信息确定机柜内的电源接口和电量分配信息,从而可以更有效地对机柜内的电源接口和电量进行系统化的管理。In a possible implementation, the above cabinet may further include a power connection module, which is used to provide power to the equipment racked up to the cabinet, and obtain the power occupancy information of the cabinet, and then send the power occupancy to the control system Information, where the power occupancy information is used to indicate the power interface and power consumption of the power-on module used by the equipment racked to the cabinet. In this solution, the power connection module in the cabinet can detect the power occupancy information of the equipment racked to the cabinet, and after sending the power occupancy information to the control system, the control system can determine the power interface and power distribution in the cabinet according to the power occupancy information Information, so that the power interface and power in the cabinet can be more effectively managed systematically.
在一种可能的实现方式中,上述柜体内部还包括网络端口模块,网络端口模块用于向上架至机柜的设备提供网络,并且获取设备的网络状态信息,然后向控制系统发送所述网络状态信息。该方案中,机柜中的网络端口模块能检测到上架至机柜的设备的网络状态信息,将该网络状态信息发送到控制系统后,控制系统可以根据网络状态信息确定机柜内的设备的网络使用状况,从而可以更有效地对机柜内的设备的网络进行系统化的管理。In a possible implementation manner, the above cabinet further includes a network port module, the network port module is used to provide a network to the equipment racked to the cabinet, and obtain network status information of the equipment, and then send the network status to the control system information. In this solution, the network port module in the cabinet can detect the network status information of the equipment racked to the cabinet, and after sending the network status information to the control system, the control system can determine the network usage status of the equipment in the cabinet based on the network status information In this way, the network of equipment in the cabinet can be managed more effectively.
在一种可能的实现方式中,上述网络端口包括切换开关,该切换开关用于将网络端口模块连接至第一网络交换机或第二网络交换机。其中,第一网络交换机和第二网络交换机为不同的网络交换机,在一个时刻,网络端口模块连接在一个网络交换机上。该方案通过切换开关,实现了网络端口模块在第一网络交换机和第二网络交换机之间的切换连接,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation, the network port includes a switch, and the switch is used to connect the network port module to the first network switch or the second network switch. Wherein, the first network switch and the second network switch are different network switches, and at a moment, the network port module is connected to one network switch. This solution realizes the switch connection between the network port module between the first network switch and the second network switch through a switch. When a network switch fails, it can be quickly switched to another network switch to quickly solve the cabinet The problem of network connection failure within the device.
在一种可能的实现方式中,上述机柜外侧包括机柜指示灯,机柜指示灯用于指示上架至该机柜的设备出现故障。和/或,机柜指示灯用于指示上架至该机柜的设备的故障已经修复。和/或,机柜指示灯用于指示查找的设备存在于该机柜。该方案通过在机柜外侧设置机柜指示灯,通过机柜指示灯可以快速地获取到上架至该机柜内的设备的一些信息。In a possible implementation manner, the outside of the cabinet includes a cabinet indicator light, and the cabinet indicator light is used to indicate that a device racked to the cabinet has a failure. And/or, the indicator light of the cabinet is used to indicate that the failure of the equipment racked to the cabinet has been repaired. And/or, the indicator light of the cabinet is used to indicate that the searched device exists in the cabinet. In this solution, by setting cabinet indicator lights on the outside of the cabinet, the cabinet indicator lights can quickly obtain some information about the equipment racked into the cabinet.
在一种可能的实现方式中,上述机柜外侧还可以包括机柜标识信息,机柜标识信息用于指示上架至该机柜的设备的信息。该机柜标识信息可以为二维码,通过扫描该二维码,可以获取到该机柜内的设备的信息。通过该方案,可以通过机柜外侧的机柜标识信息来快速地获取上架至该机柜内的设备的详细信息。In a possible implementation manner, the outside of the cabinet may further include cabinet identification information, and the cabinet identification information is used to indicate information of equipment racked to the cabinet. The cabinet identification information may be a two-dimensional code. By scanning the two-dimensional code, the information of the equipment in the cabinet can be obtained. With this solution, the detailed information of the equipment racked into the cabinet can be quickly obtained through the cabinet identification information outside the cabinet.
第二方面,本申请提供一个机柜系统,该机柜系统包括控制系统和上述第一方面任一实施例中的机柜。其中,控制系统用于接收并呈现机柜发送的信息。In a second aspect, the present application provides a cabinet system including a control system and the cabinet in any embodiment of the first aspect described above. Among them, the control system is used to receive and present the information sent by the cabinet.
在一种可能的实现方式中,机柜发送的信息可以为占位信息,和/或,电源占用信息,和/或,网络状态信息。In a possible implementation manner, the information sent by the cabinet may be occupancy information, and/or, power occupancy information, and/or, network status information.
上述方案通过控制系统接收并呈现机柜发送的信息,可以从控制系统中快速地获取到每一台机柜内的设备的信息,以便更高效地实现对机柜内的设备进行系统化的管理。The above solution receives and presents the information sent by the cabinet through the control system, and can quickly obtain the information of the equipment in each cabinet from the control system, so as to more efficiently realize the systematic management of the equipment in the cabinet.
第三方面,本申请提供一种占位监控方法,该方法包括:在检测到机柜的M个占位开关的状态发生改变时,生成占位信息。其中,机柜内包括N个 槽位,一个槽位内安装有一个占位开关,一个占位开关的状态用于指示该占位开关对应的槽位内是否安装有设备,占位信息用于指示上架至机柜的设备占据机柜的位置信息,N为正整数,M为不大于N的正整数。然后,向与机柜相连的控制系统发送占位信息。该方案中,设备上架到机柜时,根据设备占用的机柜空间位置,会相应的改变占位开关的状态,并生成占位信息,然后向控制系统发送占位信息,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。In a third aspect, the present application provides a placeholder monitoring method, which includes generating placeholder information when it is detected that the status of the M placeholder switches of the cabinet changes. Among them, the cabinet includes N slots, one slot is installed with a placeholder switch, the status of a placeholder switch is used to indicate whether a device is installed in the slot corresponding to the placeholder switch, and the placeholder information is used to indicate The equipment racked up to the cabinet occupies the position information of the cabinet, N is a positive integer, and M is a positive integer not greater than N. Then, send the occupancy information to the control system connected to the cabinet. In this solution, when a device is racked into a cabinet, the status of the occupancy switch will be changed accordingly according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
在一种可能的实现方式中,上述方法还可以包括:通过机柜上的摄像头扫描上架至机柜的设备的标识信息获取到设备的标识。上述向与机柜相连的控制系统发送占位信息,包括:向与机柜相连的控制系统发送设备的标识和占位信息。该方案获取了设备的标识和该设备对应的占位信息,然后一起发送至控制系统,因此,控制信息可以获取每一台设备对应的占位信息,从而可以通过控制系统快速地查找到需要查找的设备所在的位置,也可以对每一台设备的上架位置做系统化管理。In a possible implementation manner, the above method may further include: scanning the identification information of the device racked to the cabinet through a camera on the cabinet to obtain the device identification. The above-mentioned sending the occupation information to the control system connected to the cabinet includes: sending the device identification and the occupation information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
在一种可能的实现方式中,上述占位信息包括设备占用的机柜的槽位的信息,即设备占用的机柜的槽位的个数及位置。通过获取每一个设备在机柜中占用的槽位个数及位置,可以更高效地对机柜内的占位空间进行系统化管理。In a possible implementation manner, the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device. By obtaining the number and position of the slots occupied by each device in the cabinet, the space occupied in the cabinet can be systematically managed more efficiently.
在一种可能的实现方式中,上述检测到机柜的M个占位开关的状态发生改变,包括:当机柜的设备下架时,检测到机柜的M个占位开关的状态发生改变。或者,当机柜的设备上架时,检测到机柜的M个占位开关的状态发生改变。该方案中,在机柜内的设备上架或者下架时,其占位开关的状态会发生改变,用于指示该占位开关对应的槽位的占用状态发生改变。In a possible implementation manner, the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes. In this solution, when the equipment in the cabinet is put on or off the shelf, the status of the occupancy switch will change, which is used to indicate that the occupancy status of the slot corresponding to the occupancy switch has changed.
第四方面,本申请提供一种占位监控装置,该装置包括:占位检测单元和占位信息发送单元。占位检测单元,用于在检测到机柜的M个占位开关的状态发生改变时,生成占位信息。其中,机柜内部包括N个槽位,一个槽位内安装有一个占位开关,一个占位开关的状态用于指示该占位开关对应的槽 位内是否安装有设备,占位信息用于指示上架至机柜的设备占据机柜的位置信息,N为正整数,M为不大于N的正整数。占位信息发送单元,用于向与机柜相连的控制系统发送占位信息。该方案中,设备上架到机柜时,根据设备占用的机柜空间位置,会相应的改变占位开关的状态,并生成占位信息,然后向控制系统发送占位信息,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。In a fourth aspect, the present application provides a placeholder monitoring device, which includes a placeholder detection unit and a placeholder information sending unit. The occupancy detection unit is used to generate occupancy information when it is detected that the status of the M occupancy switches of the cabinet has changed. Among them, the cabinet includes N slots, a slot switch is installed in a slot, the status of a place switch is used to indicate whether a device is installed in the slot corresponding to the place switch, and the place information is used to indicate The equipment racked up to the cabinet occupies the position information of the cabinet, N is a positive integer, and M is a positive integer not greater than N. The placeholder information sending unit is used to send placeholder information to the control system connected to the cabinet. In this solution, when a device is racked into a cabinet, the status of the occupancy switch will be changed accordingly according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
在一种可能的实现方式中,上述占位监控装置还可以包括设备标识获取单元,用于控制机柜上的摄像头,并通过摄像头扫描上架至机柜的设备的标识信息以获取设备的标识。上述占位信息发送单元,具体用于向与机柜相连的控制系统发送设备的标识和占位信息。该方案获取了设备的标识和该设备对应的占位信息,然后一起发送至控制系统,因此,控制信息可以获取每一台设备对应的占位信息,从而可以通过控制系统快速地查找到需要查找的设备所在的位置,也可以对每一台设备的上架位置做系统化管理。In a possible implementation manner, the above-mentioned occupation monitoring device may further include an equipment identification acquisition unit for controlling a camera on the cabinet, and scanning the identification information of the equipment racked to the cabinet through the camera to obtain the equipment identification. The above-mentioned placeholder information sending unit is specifically used to send the device identification and placeholder information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
在一种可能的实现方式中,上述占位信息包括设备占用的机柜的槽位的信息,即设备占用的机柜的槽位的个数及位置。通过获取每一个设备在机柜中占用的槽位个数及位置,可以更高效地对机柜内的占位空间进行系统化管理。In a possible implementation manner, the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device. By obtaining the number and position of the slots occupied by each device in the cabinet, the space occupied in the cabinet can be systematically managed more efficiently.
在一种可能的实现方式中,上述检测到机柜的M个占位开关的状态发生改变,包括:当机柜的设备下架时,检测到机柜的M个占位开关的状态发生改变。或者,当机柜的设备上架时,检测到机柜的M个占位开关的状态发生改变。该方案中,在机柜内的设备上架或者下架时,其占位开关的状态会发生改变,用于指示该占位开关对应的槽位的占用状态发生改变。In a possible implementation manner, the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes. In this solution, when the equipment in the cabinet is put on or off the shelf, the status of the occupancy switch will change, which is used to indicate that the occupancy status of the slot corresponding to the occupancy switch has changed.
第五方面,本申请提供一种网络切换方法,该方法包括:接收控制系统发送的网络切换命令,然后根据网络切换命令,控制机柜内的切换开关切换连接的网络交换机。该方案通过网络切换命令,切换连接的网络交换机,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快 速地解决机柜内的设备的网络连接故障问题。According to a fifth aspect, the present application provides a network switching method. The method includes: receiving a network switching command sent by a control system, and then, according to the network switching command, controlling a switch in the cabinet to switch the connected network switch. This solution uses the network switching command to switch the connected network switches. When a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述网络交换机包括第一网络交换机和第二网络交换机,其中,第一网络交换机为切换前使用的网络交换机。上述根据网络切换命令,控制机柜内的切换开关切换连接的网络交换机,具体可以包括:根据网络切换命令,控制切换开关从与第一网络交换机相连切换至与第二网络交换机相连。该方案通过使用两个网络交换机,在当前连接的第一网络交换机出现网络故障时,可以通过网络切换命令控制切换开关迅速切换至没有网络故障的第二网络交换机,以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation manner, the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching. The above-mentioned switching of the connected network switch by controlling the switch in the cabinet according to the network switching command may specifically include: controlling the switch to switch from being connected to the first network switch to being connected to the second network switch according to the network switching command. This solution uses two network switches. When a network failure occurs in the currently connected first network switch, the switch can be quickly switched to the second network switch without network failure through the network switch command to quickly solve the equipment in the cabinet. Network connection problem.
在一种可能的实现方式中,上述网络切换命令是控制系统根据机柜的网络状态信息确定当前使用的网络交换机出现网络故障时生成的。该方案中,控制系统获取机柜的网络状态信息,在根据机柜的网络状态信息确定该机柜当前使用的网络交换机出现网络故障时,生成网络切换命令,以使机柜切换连接的网络交换机,从而可以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation, the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet. In this solution, the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure based on the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
在一种可能的实现方式中,上述接收控制系统发送的网络切换命令之前,还包括:向控制系统上报机柜的网络状态信息。通过该方案,可以使控制系统根据网络状态信息确定需要生成网络切换命令的时机,在需要切换网络交换机时,及时地生成网络切换命令,以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation manner, before receiving the network switching command sent by the control system, the method further includes: reporting the network status information of the cabinet to the control system. With this solution, the control system can determine the timing of the need to generate a network switching command based on the network status information. When the network switch needs to be switched, the network switching command can be generated in time to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述根据网络切换命令,控制机柜内的切换开关切换连接的网络交换机之后,还包括:控制点亮机柜指示灯,该机柜指示灯用于指示上架至机柜的设备的故障已经修复。通过该方案,可以方便快捷的实现机柜的反馈,以确定机柜的网络故障问题已经通过切换网络交换机的方式解决。In a possible implementation manner, after controlling the switch in the cabinet to switch the connected network switch according to the network switching command, the method further includes: controlling the lighting of the cabinet indicator, which is used to indicate the equipment racked to the cabinet Has been repaired. Through this solution, the feedback of the cabinet can be conveniently and quickly realized to determine that the network failure of the cabinet has been solved by switching the network switch.
第六方面,本申请提供一种网络切换装置,该装置包括接收单元和切换单元。其中,接收单元用于接收控制系统发送的网络切换命令。切换单元,用于根据网络切换命令,控制机柜内的切换开关切换连接的网络交换机。该 方案通过网络切换命令,切换连接的网络交换机,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。In a sixth aspect, the present application provides a network switching device, which includes a receiving unit and a switching unit. The receiving unit is used to receive the network switching command sent by the control system. The switching unit is used to control the switch in the cabinet to switch the connected network switch according to the network switching command. This solution uses the network switching command to switch the connected network switches. When a network switch has a network failure, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述网络交换机包括第一网络交换机和第二网络交换机,其中,第一网络交换机为切换前使用的网络交换机。上述切换单元,具体用于根据网络切换命令,控制切换开关从与第一网络交换机相连切换至与第二网络交换机相连。该方案通过使用两个网络交换机,在当前连接的第一网络交换机出现网络故障时,可以通过网络切换命令控制切换开关迅速切换至没有网络故障的第二网络交换机,以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation manner, the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching. The above-mentioned switching unit is specifically used to control the switching switch from connecting to the first network switch to connecting to the second network switch according to the network switching command. This solution uses two network switches. When a network failure occurs in the currently connected first network switch, the switch can be quickly switched to the second network switch without network failure through the network switch command to quickly solve the equipment in the cabinet. Network connection problem.
在一种可能的实现方式中,上述网络切换命令是控制系统根据机柜的网络状态信息确定当前使用的网络交换机出现网络故障时生成的。该方案中,控制系统获取机柜的网络状态信息,在根据机柜的网络状态信息确定该机柜当前使用的网络交换机出现网络故障时,生成网络切换命令,以使机柜切换连接的网络交换机,从而可以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation, the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet. In this solution, the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure based on the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
在一种可能的实现方式中,上述装置还可以包括网络状态信息发送单元,用于向控制系统上报机柜的网络状态信息。通过该方案,可以使控制系统根据网络状态信息确定需要生成网络切换命令的时机,在需要切换网络交换机时,及时地生成网络切换命令,以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation manner, the above device may further include a network state information sending unit, which is used to report the network state information of the cabinet to the control system. With this solution, the control system can determine the timing of the need to generate a network switching command based on the network status information. When the network switch needs to be switched, the network switching command can be generated in time to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述装置还可以包括指示灯控制单元,用于控制点亮机柜指示灯,该机柜指示灯用于指示上架至机柜的设备的故障已经修复。通过该方案,可以方便快捷的实现机柜的反馈,以确定机柜的网络故障问题已经通过切换网络交换机的方式解决。In a possible implementation manner, the above-mentioned device may further include an indicator light control unit for controlling the lighting of the cabinet indicator light, and the cabinet indicator light is used to indicate that the failure of the equipment racked to the cabinet has been repaired. Through this solution, the feedback of the cabinet can be conveniently and quickly realized to determine that the network failure of the cabinet has been solved by switching the network switch.
第七方面,本申请提供一种计算设备,该计算设备包括:In a seventh aspect, the present application provides a computing device, the computing device includes:
处理器、存储器、收发器、总线接口;其中,处理器、存储器与收发器之间通过总线连接;Processor, memory, transceiver, bus interface; among them, the processor, memory and transceiver are connected by bus;
所述处理器,用于读取所述存储器中的程序,执行上述网络切换方法;The processor is configured to read the program in the memory and execute the above network switching method;
所述存储器,用于存储一个或多个可执行程序,可以存储所述处理器在执行操作时所使用的数据。The memory is used to store one or more executable programs, and may store data used by the processor when performing operations.
第八方面,本申请提供一种非暂态计算机可读存储介质,计算机存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述网络切换方法。In an eighth aspect, the present application provides a non-transitory computer-readable storage medium, in which instructions are stored in a computer storage medium, which, when run on a computer, causes the computer to perform the network switching method described above.
第九方面,本申请提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述网络切换方法。In a ninth aspect, the present application provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the network switching method described above.
附图说明BRIEF DESCRIPTION
图1为一种现有的机柜示意图;Figure 1 is a schematic diagram of an existing cabinet;
图2为本申请提供的一种机柜系统架构示意图;2 is a schematic diagram of a cabinet system architecture provided by this application;
图3为本申请提供的一种机柜示意图;Figure 3 is a schematic diagram of a cabinet provided by this application;
图4为本申请提供的一种占位模块结构示意图;4 is a schematic structural diagram of a placeholder module provided by this application;
图5为本申请提供的一种接电模块结构示意图;5 is a schematic structural diagram of a power receiving module provided by this application;
图6为本申请提供的一种占位监控方法流程示意图;FIG. 6 is a schematic flow chart of a method for occupancy monitoring provided by this application;
图7为本申请提供的一种网络切换方法流程示意图;7 is a schematic flowchart of a network switching method provided by this application;
图8为本申请提供的一种占位监控装置示意图;8 is a schematic diagram of a occupancy monitoring device provided by the application;
图9为本申请提供的一种网络切换装置示意图;9 is a schematic diagram of a network switching device provided by this application;
图10为本申请提供的一种计算机设备的结构示意图。10 is a schematic structural diagram of a computer device provided by this application.
具体实施方式detailed description
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述。方法实施例中的具体操作方法也可以应用于装置实施例或系统实施例中。其中,在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be described in further detail below with reference to the accompanying drawings. The specific operation method in the method embodiment may also be applied to the device embodiment or the system embodiment. In the description of the present application, unless otherwise stated, the meaning of "plurality" is two or more.
首先,对现有技术中的机柜作详细说明,以图1所示的一种现有的机柜 为例,该机柜具有抗振动、抗冲击、耐腐蚀、防辐射等性能。而对于该机柜的内部硬件设置,该机柜包括有接电模块和网络端口模块,接电模块安装在机柜内部的一个侧面上,通常为一排接电插口,用于向机柜内的设备提供电源。网络端口模块安装在机柜内的顶面上或者底面上,通常为一排网络插口,用于向机柜内的设备提供网络。First, the cabinet in the prior art will be described in detail. Taking an existing cabinet shown in FIG. 1 as an example, the cabinet has anti-vibration, anti-impact, anti-corrosion, anti-radiation and other properties. For the internal hardware settings of the cabinet, the cabinet includes an electrical connection module and a network port module. The electrical connection module is installed on a side inside the cabinet, usually a row of electrical sockets, used to provide power to the equipment in the cabinet . The network port module is installed on the top or bottom of the cabinet, usually a row of network sockets, used to provide network to the equipment in the cabinet.
这类传统机柜,在使用中,可能会存在以下问题:Such traditional cabinets may have the following problems in use:
问题1,无法清楚的获取机柜内部的空间占用情况,难以对机柜内的空间进行系统化的管理。Problem 1, the space occupation inside the cabinet cannot be obtained clearly, and it is difficult to systematically manage the space inside the cabinet.
问题2,机柜内的设备电源线较乱,难以管理。Problem 2: The power cables of the equipment in the cabinet are chaotic and difficult to manage.
问题3,无法得知机柜内部的设备的具体信息。Question 3, I cannot get the specific information of the equipment inside the cabinet.
问题4,当机柜出现网络故障问题时,无法及时修复。Question 4. When the cabinet has a network failure, it cannot be repaired in time.
针对上述问题,本申请提供一种机柜系统,如图2所示,为本申请提供的一种机柜系统。该机柜系统包括控制系统和机柜,该控制系统可以为一台电脑或者其他控制设备。控制系统用于接收并呈现机柜发送的信息,机柜发送的信息用于指示机柜内的设备的信息,调试人员可以通过控制系统来实现对机柜内的设备进行系统化管理。In response to the above problems, this application provides a cabinet system, as shown in FIG. 2, which is a cabinet system provided by this application. The cabinet system includes a control system and a cabinet. The control system may be a computer or other control equipment. The control system is used to receive and present the information sent by the cabinet. The information sent by the cabinet is used to indicate the information of the equipment in the cabinet. The debugger can realize the systematic management of the equipment in the cabinet through the control system.
在一种可能的实现方式中,机柜发送的信息可以为设备的占位信息,和/或,电源占用信息,和/或,网络状态信息。占位信息用于指示机柜内的设备在该机柜内占据的位置信息。电源占用信息用于指示上架至机柜的设备所使用的接电模块的电源接口及用电量。网络状态信息用于指示机柜当前是否存在网络故障问题。In a possible implementation manner, the information sent by the cabinet may be occupancy information of the device, and/or, power occupancy information, and/or, network status information. The occupation information is used to indicate the position information occupied by the equipment in the cabinet in the cabinet. The power occupancy information is used to indicate the power interface and power consumption of the power receiving module used by the equipment racked to the cabinet. The network status information is used to indicate whether the cabinet currently has a network fault.
通过上述机柜系统,控制系统接收机柜发送的信息,并将这些信息呈现后,可以使得调试人员根据控制系统呈现的信息,更高效地完成对机柜内的设备进行系统化管理。并且,可以获取到机柜内部的设备的具体信息。解决了上述问题1、问题2、问题3。Through the above cabinet system, the control system receives the information sent by the cabinet and presents the information, so that the debugger can more efficiently complete the systematic management of the equipment in the cabinet according to the information presented by the control system. And, you can get the specific information of the equipment inside the cabinet. Solved the above problem 1, problem 2, problem 3.
下面对于上述机柜系统内的机柜做具体说明,如图3所示,为本申请提供的一种机柜,该机柜包括柜体、安装于柜体内部的占位模块100。占位模块 100用于检测上架至机柜的设备的占位信息,并向与机柜相连的控制系统发送占位信息。该方案中,机柜中的占位模块能检测到上架至机柜的设备的占位信息,将该占位信息发送到控制系统后,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。The following specifically describes the cabinets in the above cabinet system. As shown in FIG. 3, this is a cabinet provided by the present application. The cabinet includes a cabinet body and a placeholder module 100 installed inside the cabinet body. The occupancy module 100 is used to detect the occupancy information of the equipment racked to the cabinet and send the occupancy information to the control system connected to the cabinet. In this solution, the occupancy module in the cabinet can detect the occupancy information of the equipment racked to the cabinet, and after sending the occupancy information to the control system, the control system can determine the allocation of the occupancy space in the cabinet according to the occupancy information Situation, so that the system can effectively manage the space occupied by the cabinet.
在一种可能的实现方式中,上述占位模块100安装在机柜内部的一个侧面,占位模块包括占位控制器和摄像头,如图4所示,为本申请提供的一种占位模块示意图,包括占位控制器101和摄像头102。占位控制器101为条形,竖直安装在机柜内,占位模块100通过占位控制器101检测上架至机柜的设备的占位信息。摄像头102安装在竖直导轨上,可以上下移动,用于扫描设备的标识信息获取设备的标识。上述占位模块100具体用于:通过占位控制器101检测上架至机柜的设备的占位信息,通过摄像头102扫描设备的标识信息获取到设备的标识,并向与机柜相连的控制系统发送设备的标识和占位信息。In a possible implementation manner, the above-mentioned placeholder module 100 is installed on one side inside the cabinet, and the placeholder module includes a placeholder controller and a camera, as shown in FIG. 4, which is a schematic diagram of a placeholder module provided by the present application , Including occupancy controller 101 and camera 102. The occupancy controller 101 has a bar shape and is vertically installed in the cabinet. The occupancy module 100 detects the occupancy information of the equipment racked to the cabinet through the occupancy controller 101. The camera 102 is installed on a vertical rail and can move up and down, and is used to scan the identification information of the device to obtain the device identification. The above occupancy module 100 is specifically used to detect the occupancy information of the device racked to the cabinet through the occupancy controller 101, scan the identification information of the device through the camera 102 to obtain the identification of the device, and send the device to the control system connected to the cabinet Logo and placeholder information.
在一种可能的实现方式中,上述机柜内部包括N个槽位,一个槽位指的是机柜内部的一个单位的空间大小,一个单位的空间大小的具体占用体积可根据实际需要进行设定,本申请不做限制。上述占位模块100还包括N个占位指示灯,一个占位指示灯安装于一个槽位,一个占位指示灯用于指示该占位指示灯对应的槽位是否被占用,N为正整数。In a possible implementation manner, the above cabinet includes N slots, one slot refers to the space size of a unit inside the cabinet, and the specific occupied volume of a unit space size can be set according to actual needs, There are no restrictions on this application. The above occupancy module 100 further includes N occupancy indicators, one occupancy indicator is installed in one slot, one occupancy indicator is used to indicate whether the slot corresponding to the occupancy indicator is occupied, and N is a positive integer .
通过上述占位模块100,可以获取得到机柜内部的设备的占位信息,根据机柜内部的设备的占位信息,可以得知机柜内部的占位空间,进而对机柜内的空间进行系统化的管理。Through the above occupancy module 100, the occupancy information of the equipment inside the cabinet can be obtained, and according to the occupancy information of the equipment inside the cabinet, the occupancy space inside the cabinet can be known, and then the space in the cabinet can be systematically managed .
在一种可能的实现方式中,上述图3所示的机柜还可以包括接电模块200,用于向上架至机柜的设备提供电源,并且获取机柜的电源占用信息,然后向控制系统发送该电源占用信息,其中,电源占用信息用于指示上架至机柜的设备所使用的接电模块的电源接口及用电量。举例来说,接电模块200例如可以为一种智能插座,当上架至机柜的设备接入该智能插座时,插座可以为 设备提供电源,并且可以生成该设备的用电量信息,发送至控制系统,同时,该智能插座还可以检测得到每一台设备占用了该智能插座的哪一个电源接口,并将检测得到的关于设备的电源接口的信息发送至控制系统。In a possible implementation, the cabinet shown in FIG. 3 may further include a power connection module 200, which is used to provide power to the equipment racked to the cabinet, and obtain power occupancy information of the cabinet, and then send the power to the control system Occupancy information, where the power supply occupancy information is used to indicate the power interface and power consumption of the power receiving module used by the equipment racked to the cabinet. For example, the power receiving module 200 may be, for example, a smart socket. When a device racked into a cabinet is connected to the smart socket, the socket may provide power to the device, and may generate power consumption information of the device and send it to the control At the same time, the smart socket can also detect which power interface of the smart socket is occupied by each device, and send the detected information about the power interface of the device to the control system.
在一种可能的实现方式中,上述接电模块200可以为两个独立插座,如图5所示,当一台设备上架至机柜时,同时接入第一插座201和第二插座202。其中,第一插座201为主用插座,为设备提供电源,第二插座202备用插座,在通常情况下,不为设备提供电源,当第一插座201出现故障时,启用第二插座202为设备提供电源。In a possible implementation manner, the power receiving module 200 may be two independent sockets. As shown in FIG. 5, when a piece of equipment is racked into the cabinet, the first socket 201 and the second socket 202 are simultaneously connected. Among them, the first socket 201 is the main socket, which provides power for the device, and the second socket 202 is the spare socket. Under normal circumstances, the device does not provide power. When the first socket 201 fails, the second socket 202 is enabled as the device Provide power.
通过上述接电模块200,可以获取到机柜内的每一台设备接入的电源接口位置,即可得知每一根电源线对应的设备以及接入的电源接口的位置,进而可以对机柜内的设备的电源线进行管理,解决了电源线过乱难以管理的问题。Through the above power connection module 200, the position of the power interface connected to each device in the cabinet can be obtained, that is, the device corresponding to each power cord and the position of the power interface connected can be obtained, and then the cabinet can be The power cord of the device is managed, which solves the problem that the power cord is too chaotic and difficult to manage.
在一种可能的实现方式中,上述图3所示的机柜还可以包括网络端口模块300,用于向上架至机柜的设备提供网络,并且获取设备的网络状态信息,然后向控制系统发送所述网络状态信息。一台设备网络状态信息可以反映该设备的网络使用状况,比如,设备是否存在网络故障、设备的网速、设备的流量总量等。根据网络状态信息,可以确定设备是否还处于工作,比如,若设备在一段时间内的流量总量小于预设流量阈值,则确定该设备不处于工作,或者可以称为该设备不被需要,对于这样的设备,可以选择将其下架,以节省机柜内的空间,进而上架其他设备。In a possible implementation manner, the cabinet shown in FIG. 3 may further include a network port module 300, which is used to provide a network to the equipment racked up to the cabinet, obtain network status information of the equipment, and then send the control system Network status information. The network status information of a device can reflect the network usage status of the device, for example, whether the device has a network failure, the network speed of the device, and the total amount of traffic of the device. According to the network status information, it can be determined whether the device is still working. For example, if the total amount of traffic of the device in a period of time is less than the preset flow threshold, it is determined that the device is not working, or it can be said that the device is not needed. You can choose to remove such equipment to save space in the cabinet, and then add other equipment.
在一种可能的实现方式中,上述网络端口模块300可以包括切换开关,上述网络端口模块300可以通过切换开关连接至第一网络交换机或第二网络交换机。其中,第一网络交换机和第二网络交换机为不同的网络交换机,在一个时刻,网络端口模块连接在一个网络交换机上。网络端口模块300连接上网络交换机后可以为连接在网络端口模块300上的设备提供网络。切换开关可以在第一网络交换机和第二网络交换机之间进行连接切换,且会在当前连接的网络交换机出现网络故障时进行切换。该方案通过切换开关,实现了网络端口模块在第一网络交换机和第二网络交换机之间的切换连接,当一个 网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。即该方案可以解决上述问题4。In a possible implementation manner, the network port module 300 may include a switch, and the network port module 300 may be connected to the first network switch or the second network switch through the switch. Wherein, the first network switch and the second network switch are different network switches, and at a moment, the network port module is connected to one network switch. After the network port module 300 is connected to the network switch, it can provide a network for devices connected to the network port module 300. The switch can switch the connection between the first network switch and the second network switch, and will switch when a network failure of the currently connected network switch occurs. This solution realizes the switch connection between the network port module between the first network switch and the second network switch through a switch. When a network switch fails, it can be quickly switched to another network switch to quickly solve the cabinet The problem of network connection failure within the device. That is, this solution can solve the above problem 4.
在一种可能的实现方式中,上述机柜外侧包括机柜指示灯400,机柜指示灯例如可以设置在机柜外侧顶端(如图3所示的位置),或者可以设置在机柜外侧侧面,对于机柜指示灯的设置位置本申请不做限制,可根据实际需要进行调整。机柜指示灯用于指示上架至该机柜的设备出现故障。和/或,机柜指示灯用于指示上架至该机柜的设备的故障已经修复。和/或,机柜指示灯用于指示查找的设备存在于该机柜。举个例子,机柜指示灯例如可以为一盏可以变色的灯,通过不同的颜色,来指示不同的信息,也可以为多盏不同的灯,一盏灯负责指示相应的信息。In a possible implementation manner, the outside of the cabinet includes a cabinet indicator light 400. The cabinet indicator light may be provided at the top of the outside of the cabinet (as shown in FIG. 3, for example), or may be provided on the outside side of the cabinet. The application location is not limited in this application, and can be adjusted according to actual needs. The cabinet indicator light is used to indicate that the equipment racked up to the cabinet is faulty. And/or, the indicator light of the cabinet is used to indicate that the failure of the equipment racked to the cabinet has been repaired. And/or, the indicator light of the cabinet is used to indicate that the searched device exists in the cabinet. For example, the indicator light of the cabinet may be, for example, a light that can change color, indicating different information through different colors, or a plurality of different lights, and one light is responsible for indicating the corresponding information.
在一种可能的实现方式中,上述机柜外侧还可以包括机柜标识信息500(图3中以该机柜标识信息500为二维码为例),机柜标识信息用于指示上架至该机柜的设备的信息以及机柜的一些信息。In a possible implementation manner, the outside of the cabinet may further include cabinet identification information 500 (the cabinet identification information 500 in FIG. 3 is a two-dimensional code as an example), and the cabinet identification information is used to indicate the equipment racked to the cabinet. Information and some information of the cabinet.
举例来说,通过扫描二维码,可以从机柜连接的控制系统获取到该机柜内部的占位空间信息,电源接口信息,以及上架至该机柜内部的每一台设备的设备标识、设备用电量、设备网络使用信息、设备的位置等。For example, by scanning a two-dimensional code, you can obtain the space occupation information, power interface information, and the device identification and device power consumption of each device racked inside the cabinet from the control system connected to the cabinet Volume, device network usage information, device location, etc.
通过上述占位模块100,可以获取到机柜内的设备占位信息,确定机柜内的占位空间分配信息,进而解决上述问题1。通过上述接电模块200,确定了电源接口的分配信息,进而解决了上述问题2。通过上述网络端口模块300的切换开关,在第一网络交换机和第二网络交换机之间进行切换,可以迅速将网络端口模块300连接至没有网络故障的网络交换机,进而解决了上述问题4。同时,通过控制系统接收机柜发送的信息并呈现,通过控制系统或者机柜上的机柜指示灯400和机柜标识信息500都可以快捷地获取到机柜内部的设备信息。即解决了上述问题3。Through the above-mentioned occupying module 100, the device occupying information in the cabinet can be acquired, and the occupying space allocation information in the cabinet can be determined, thereby solving the above problem 1. Through the power connection module 200, the distribution information of the power supply interface is determined, thereby solving the above problem 2. By using the switch of the network port module 300 to switch between the first network switch and the second network switch, the network port module 300 can be quickly connected to the network switch without network failure, thereby solving the above problem 4. At the same time, the information sent by the cabinet is received and presented through the control system, and the device information inside the cabinet can be quickly obtained through the control system or the cabinet indicator 400 and the cabinet identification information 500 on the cabinet. That solves the above problem 3.
下面结合图6,对上述提到的机柜中的占位模块100的功能,进行具体说明,即图6所示的占位监控方法可应用于上述机柜,具体的,可用于上述机柜的占位模块100。需要说明的是,该方法也可以用于其他机柜。该方法可以 解决上述问题1,该方法包括:The function of the occupancy module 100 in the above-mentioned cabinet will be specifically described below with reference to FIG. 6, that is, the occupancy monitoring method shown in FIG. 6 can be applied to the above-mentioned cabinet, and specifically, can be used for the above-mentioned cabinet occupancy Module 100. It should be noted that this method can also be used in other cabinets. This method can solve the above problem 1. The method includes:
步骤601,在检测到机柜的M个占位开关的状态发生改变时,生成占位信息。 Step 601, when it is detected that the status of the M placeholder switches of the cabinet changes, placeholder information is generated.
其中,机柜内包括N个槽位,一个槽位内安装有一个占位开关,一个占位开关的状态用于指示该占位开关对应的槽位内是否安装有设备,占位信息用于指示上架至机柜的设备占据机柜的位置信息,N为正整数,M为不大于N的正整数。Among them, the cabinet includes N slots, one slot is installed with a placeholder switch, the status of a placeholder switch is used to indicate whether a device is installed in the slot corresponding to the placeholder switch, and the placeholder information is used to indicate The equipment racked up to the cabinet occupies the position information of the cabinet, N is a positive integer, and M is a positive integer not greater than N.
步骤602,向与机柜相连的控制系统发送占位信息。Step 602: Send the occupancy information to the control system connected to the cabinet.
上述方案中,设备上架到机柜时,根据设备占用的机柜空间位置,会相应的改变占位开关的状态,并生成占位信息,然后向控制系统发送占位信息,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。In the above solution, when the device is racked into the cabinet, the state of the occupancy switch will be changed according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
针对上述步骤601,在一种可能的实现方式中,上述占位开关的状态是由设备通过物理接触改变的。通常来说,上架至机柜的设备的体积与机柜匹配,在上架至机柜或者从机柜下架时,会触碰占位开关,以使占位开关的状态改变。当然,机柜有时也需要上架一些体积相对较小的设备,这种设备无法通过物理接触改变占位开关的状态。此时,需要调试人员手动去改变占位开关的状态。For the above step 601, in a possible implementation manner, the state of the above-mentioned placeholder switch is changed by the device through physical contact. Generally speaking, the volume of the equipment rack-mounted to the cabinet matches that of the rack. When rack-mounted to the rack or removed from the rack, the placeholder switch is touched to change the state of the placeholder switch. Of course, the cabinet sometimes needs to put some relatively small equipment, such equipment can not change the status of the occupancy switch through physical contact. At this time, the debugger needs to manually change the status of the occupancy switch.
在一种可能的实现方式中,上述占位信息是根据改变状态的M个占位开关的位置和个数生成的。根据占位开关的个数生成的占位信息用于表示该设备占据的机柜内的槽位的个数,即占用了机柜的空间大小,也可以表示设备的大小。根据占位开关的位置生成的占位信息用于表示设备在该机柜内占据的空间位置,即设备在机柜内的哪个位置。In a possible implementation manner, the above-mentioned occupation information is generated according to the position and number of M occupation switches that change state. The occupancy information generated according to the number of occupancy switches is used to indicate the number of slots in the cabinet occupied by the device, that is, the space occupied by the cabinet, or the size of the device. The occupation information generated according to the position of the occupation switch is used to indicate the space position occupied by the device in the cabinet, that is, where the device is in the cabinet.
在一种可能的实现方式中,上述方法还可以包括:通过机柜上的摄像头扫描上架至机柜的设备的标识信息获取到设备的标识。上述步骤602,具体可以包括:向与机柜相连的控制系统发送设备的标识和占位信息。在该实现方式中,设备的标识信息可以以二维码的形式贴于设备外表面,当然也可以贴 在用于上架设备的导轨上面。二维码的位置根据摄像头的位置来确定。In a possible implementation manner, the above method may further include: scanning the identification information of the device racked to the cabinet through a camera on the cabinet to obtain the device identification. The above step 602 may specifically include: sending the device identification and occupation information to the control system connected to the cabinet. In this implementation manner, the identification information of the device may be affixed to the outer surface of the device in the form of a two-dimensional code, and of course, it may also be affixed to the guide rail used to rack the device. The position of the two-dimensional code is determined according to the position of the camera.
上述设备上架至机柜前,需要在控制系统进行信息录入,控制信息根据录入的信息,生成该设备标识信息。比如,根据设备录入的信息,生成二维码,该二维码可以指示该设备的信息,将二维码贴在摄像头可以扫描到的位置,在摄像头扫描到该二维码之后,获取该设备的标识,设备的标识指示该设备。然后向与机柜相连的控制系统发送设备的标识和占位信息。该方案获取了设备的标识和该设备对应的占位信息,然后一起发送至控制系统,因此,控制信息可以获取每一台设备对应的占位信息,从而可以通过控制系统快速地查找到需要查找的设备所在的位置,也可以对每一台设备的上架位置做系统化管理。Before the above equipment is put on the cabinet, the information needs to be entered in the control system, and the control information generates the equipment identification information according to the entered information. For example, based on the information entered by the device, a two-dimensional code is generated. The two-dimensional code can indicate the information of the device. The two-dimensional code is pasted at a position that can be scanned by the camera. After the camera scans the two-dimensional code, the device is acquired. The device's logo indicates the device. Then send the device identification and occupation information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
上述占位监控方法,在设备上架到机柜时,根据设备占用的机柜空间位置,会相应的改变占位开关的状态,并生成占位信息,然后向控制系统发送占位信息,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。The above-mentioned occupation monitoring method, when the equipment is racked into the cabinet, according to the cabinet space occupied by the equipment, the status of the occupation switch will be changed accordingly, and the occupation information will be generated, and then the occupation information will be sent to the control system. The occupation information determines the allocation of the occupation space in the cabinet, so that the systematic management of the occupation space in the cabinet can be performed more effectively.
下面结合图7,对上述提到的机柜中的网络端口模块300的功能,进行具体说明,即图7所示的网络切换方法可应用于上述机柜,具体的,可用于上述机柜的网络端口模块300。需要说明的是,该方法也可以用于其他机柜。该方法可以解决上述问题4,该方法包括:The function of the network port module 300 in the above-mentioned cabinet will be specifically described below with reference to FIG. 7, that is, the network switching method shown in FIG. 7 may be applied to the above-mentioned cabinet, and specifically, may be used for the network port module of the above-mentioned cabinet 300. It should be noted that this method can also be used in other cabinets. This method can solve the above problem 4. The method includes:
步骤701,接收控制系统发送的网络切换命令。Step 701: Receive a network switching command sent by the control system.
步骤702,根据网络切换命令,控制机柜内的切换开关切换连接的网络交换机。Step 702: Control the switch in the cabinet to switch the connected network switch according to the network switching command.
其中,网络交换机是为机柜提供网络的设备,当网络交换机出现网络故障时,与该网络交换机相连的机柜也会出现网络故障问题。Among them, the network switch is a device that provides a network for the cabinet. When a network failure occurs in the network switch, the cabinet connected to the network switch may also experience a network failure.
上述方案通过网络切换命令,切换连接的网络交换机,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。The above scheme switches the connected network switches through network switching commands. When a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述网络交换机包括第一网络交换机和第二 网络交换机,其中,第一网络交换机为切换前使用的网络交换机。上述步骤702,具体可以包括:根据网络切换命令,控制切换开关从与第一网络交换机相连切换至与第二网络交换机相连。In a possible implementation manner, the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching. The above step 702 may specifically include: according to the network switching command, controlling the switching switch to switch from connecting to the first network switch to connecting to the second network switch.
具体来说,当机柜当前连接的第一网络交换机出现网络故障,即机柜出现网络故障问题时,会接收到控制系统发送的网络切换命令,此时根据网络切换命令,切换控制开关连接至第二网络交换机,以使机柜连接至第二网络交换机实现正常联网,解决了机柜出现的网络故障问题。然后再将机柜之前连接的第一网络交换机进行更换维修。以便在当前机柜连接的第二网络交换机出现网络故障时用于修复网络。Specifically, when the first network switch currently connected to the cabinet has a network failure, that is, the cabinet has a network failure problem, it will receive a network switching command sent by the control system. At this time, according to the network switching command, the switching control switch is connected to the second Network switch to connect the cabinet to the second network switch to achieve normal networking, and solve the problem of network failure in the cabinet. Then, replace and repair the first network switch connected to the cabinet. In order to repair the network when a network failure occurs in the second network switch connected to the current cabinet.
在一种可能的实现方式中,上述网络切换命令是控制系统根据机柜的网络状态信息确定当前使用的网络交换机出现网络故障时生成的。机柜实时检测自身的网络状态信息,并发送至控制系统,控制系统根据机柜的网络状态信息判断机柜是否存在网络故障,在确定机柜存在网络故障后,生成网络切换命令并发送。该方案中,控制系统获取机柜的网络状态信息,在根据机柜的网络状态信息确定该机柜当前使用的网络交换机出现网络故障时,生成网络切换命令,以使机柜切换连接的网络交换机,从而可以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation, the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet. The cabinet detects its own network status information in real time and sends it to the control system. The control system determines whether the cabinet has a network failure according to the network status information of the cabinet. After determining that the cabinet has a network failure, it generates a network switching command and sends it. In this solution, the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure based on the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
在一种可能的实现方式中,上述步骤702之后,还可以包括:控制点亮机柜指示灯,该机柜指示灯用于指示上架至机柜的设备的故障已经修复。通过该方案,可以方便快捷的实现机柜的反馈,以确定机柜的网络故障问题已经通过切换网络交换机的方式解决。该机柜指示灯例如可以为图3中所示的机柜指示灯400。In a possible implementation manner, after the above step 702, it may further include: controlling the lighting of the cabinet indicator, which is used to indicate that the failure of the equipment racked to the cabinet has been repaired. Through this solution, the feedback of the cabinet can be conveniently and quickly realized to determine that the network failure of the cabinet has been solved by switching the network switch. The cabinet indicator light may be, for example, the cabinet indicator light 400 shown in FIG. 3.
上述网络切换方法通过网络切换命令,切换连接的网络交换机,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。The above network switching method switches the connected network switches through the network switching command. When a network switch has a network failure, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
基于与上述图6所示的方法相同的构思,本申请还提供一种占位监控装置,如图8所示,该装置包括:Based on the same concept as the method shown in FIG. 6 above, the present application also provides a device for occupying monitoring, as shown in FIG. 8, the device includes:
占位检测单元801,用于在检测到机柜的M个占位开关的状态发生改变时,生成占位信息。The occupancy detection unit 801 is configured to generate occupancy information when it is detected that the status of the M occupancy switches of the cabinet has changed.
占位信息发送单元802,用于向与机柜相连的控制系统发送占位信息。The placeholder information sending unit 802 is used to send placeholder information to the control system connected to the cabinet.
上述方案中,设备上架到机柜时,根据设备占用的机柜空间位置,会相应的改变占位开关的状态,并生成占位信息,然后向控制系统发送占位信息,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。In the above solution, when the device is racked into the cabinet, the state of the occupancy switch will be changed according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
在一种可能的实现方式中,上述占位监控装置还可以包括设备标识获取单元803,用于控制机柜上的摄像头,并通过摄像头扫描上架至机柜的设备的标识信息以获取设备的标识。上述占位信息发送单元802,具体用于向与机柜相连的控制系统发送设备的标识和占位信息。In a possible implementation manner, the above-mentioned occupation monitoring device may further include a device identification acquisition unit 803 for controlling the camera on the cabinet, and scanning the identification information of the device racked to the cabinet through the camera to obtain the device identification. The above-mentioned placeholder information sending unit 802 is specifically used to send the device identification and placeholder information to the control system connected to the cabinet.
在一种可能的实现方式中,上述占位信息包括设备占用的机柜的槽位的信息,即设备占用的机柜的槽位的个数及位置。In a possible implementation manner, the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device.
在一种可能的实现方式中,上述检测到机柜的M个占位开关的状态发生改变,包括:当机柜的设备下架时,检测到机柜的M个占位开关的状态发生改变。或者,当机柜的设备上架时,检测到机柜的M个占位开关的状态发生改变。In a possible implementation manner, the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes.
上述占位监控装置的具体实施方式和有益效果,与前述图6所示的占位监控方法中所述的相同,可参考前述描述,在此不再赘述。The specific implementation and beneficial effects of the above-mentioned occupation monitoring device are the same as those described in the foregoing occupation monitoring method shown in FIG. 6, and reference may be made to the foregoing description, which will not be repeated here.
基于与上述图7所示的方法相同的构思,本申请还提供一种网络切换装置,如图9所示,该装置包括:Based on the same concept as the method shown in FIG. 7 above, the present application also provides a network switching device. As shown in FIG. 9, the device includes:
接收单元901,用于接收控制系统发送的网络切换命令。The receiving unit 901 is configured to receive a network switching command sent by the control system.
切换单元902,用于根据网络切换命令,控制机柜内的切换开关切换连接的网络交换机。The switching unit 902 is configured to control the switch in the cabinet to switch the connected network switch according to the network switching command.
上述方案通过网络切换命令,切换连接的网络交换机,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。The above scheme switches the connected network switches through network switching commands. When a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述网络交换机包括第一网络交换机和第二网络交换机,其中,第一网络交换机为切换前使用的网络交换机。上述切换单元,具体用于根据网络切换命令,控制切换开关从与第一网络交换机相连切换至与第二网络交换机相连。In a possible implementation manner, the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching. The above-mentioned switching unit is specifically used to control the switching switch from connecting to the first network switch to connecting to the second network switch according to the network switching command.
在一种可能的实现方式中,上述网络切换命令是控制系统根据机柜的网络状态信息确定当前使用的网络交换机出现网络故障时生成的。In a possible implementation, the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
在一种可能的实现方式中,上述装置还可以包括网络状态信息发送单元903,用于向控制系统上报机柜的网络状态信息。In a possible implementation, the above device may further include a network status information sending unit 903, which is used to report the network status information of the cabinet to the control system.
在一种可能的实现方式中,上述装置还可以包括指示灯控制单元904,用于控制点亮机柜指示灯,该机柜指示灯用于指示上架至机柜的设备的故障已经修复。In a possible implementation manner, the above-mentioned device may further include an indicator light control unit 904 for controlling the lighting of the cabinet indicator light, and the cabinet indicator light is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
上述网络切换装置的具体实施方式和有益效果,与前述图7所示的网络切换方法中所述的相同,可参考前述描述,在此不再赘述。The specific implementation and beneficial effects of the network switching device described above are the same as those described in the network switching method shown in FIG. 7 above, and reference may be made to the foregoing description, which will not be repeated here.
基于与上述图7所示的方法相同的构思,本申请还提供一种计算设备,如图10所示,该计算设备包括:Based on the same concept as the method shown in FIG. 7 above, the present application also provides a computing device. As shown in FIG. 10, the computing device includes:
处理器1001、存储器1002、收发器1003、总线接口1004;其中,处理器1001、存储器1002与收发器1003之间通过总线1005连接;A processor 1001, a memory 1002, a transceiver 1003, and a bus interface 1004; wherein, the processor 1001, the memory 1002, and the transceiver 1003 are connected through a bus 1005;
所述处理器1001,用于读取所述存储器1002中的程序,执行上述网络切换方法;The processor 1001 is configured to read the program in the memory 1002 and execute the above network switching method;
处理器1001可以是中央处理器(central processing unit,简称CPU),网络处理器(network processor,简称NP)或者CPU和NP的组合。还可以是硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,简称ASIC),可编程逻辑器件(programmable logic device,简称PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,简称CPLD),现场可编程逻辑门阵列(field-programmable gate array,简称FPGA),通用阵列逻辑(generic array logic,简称GAL)或其任意组合。The processor 1001 may be a central processing unit (central processing unit, CPU for short), a network processor (NP), or a combination of CPU and NP. It can also be a hardware chip. The aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above PLD can be a complex programmable logic device (complex programmable logic device (CPLD), field-programmable gate array (FPGA), general array logic (GAL) or any of them combination.
所述存储器1002,用于存储一个或多个可执行程序,可以存储所述处理 器1001在执行操作时所使用的数据。The memory 1002 is used to store one or more executable programs, and can store data used by the processor 1001 when performing operations.
具体地,程序可以包括程序代码,程序代码包括计算机操作指令。存储器1002可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,简称RAM);存储器1002也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,简称HDD)或固态硬盘(solid-state drive,简称SSD);存储器1002还可以包括上述种类的存储器的组合。Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 1002 may include volatile memory (volatile memory), such as random-access memory (RAM for short); the memory 1002 may also include non-volatile memory (non-volatile memory), such as flash memory ( flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 1002 may also include a combination of the above types of memory.
存储器1002存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory 1002 stores the following elements, executable modules or data structures, or their subsets, or their extended sets:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: including various operation instructions, used to realize various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: includes various system programs for implementing various basic services and processing hardware-based tasks.
总线1005可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 1005 may be a peripheral component interconnection (peripheral component interconnection, PCI for short) bus or an extended industry standard architecture (extended industry standard architecture, EISA for short) bus, or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only a thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
总线接口1004可以为有线通信接入口,无线总线接口或其组合,其中,有线总线接口例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线总线接口可以为WLAN接口。The bus interface 1004 may be a wired communication access port, a wireless bus interface, or a combination thereof, where the wired bus interface may be, for example, an Ethernet interface. The Ethernet interface may be an optical interface, an electrical interface, or a combination thereof. The wireless bus interface may be a WLAN interface.
基于同一发明构思,本申请实施例还提供了一种非暂态计算机可读存储介质,计算机存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述网络切换方法。Based on the same inventive concept, the embodiments of the present application also provide a non-transitory computer-readable storage medium, in which instructions are stored in the computer storage medium, and when the computer runs on the computer, the computer is allowed to execute the above network switching method.
基于同一发明构思,本申请实施例提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述网络切换方法。Based on the same inventive concept, the embodiments of the present application provide a computer program product containing instructions, which, when run on a computer, causes the computer to execute the above network switching method.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要 求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (13)

  1. 一种网络切换方法,其特征在于,包括:A network switching method, characterized in that it includes:
    接收控制系统发送的网络切换命令;Receive the network switching command sent by the control system;
    根据所述网络切换命令,控制机柜内的切换开关切换连接的网络交换机。According to the network switching command, control the switch in the cabinet to switch the connected network switch.
  2. 如权利要求1所述的方法,其特征在于,所述网络交换机包括第一网络交换机和第二网络交换机,所述第一网络交换机为切换前使用的网络交换机;The method according to claim 1, wherein the network switch comprises a first network switch and a second network switch, and the first network switch is a network switch used before switching;
    所述根据所述网络切换命令,控制机柜内的切换开关切换连接的网络交换机,包括:The controlling the switch in the cabinet to switch the connected network switch according to the network switching command includes:
    根据所述网络切换命令,控制所述切换开关从与所述第一网络交换机相连切换至与所述第二网络交换机相连。According to the network switching command, controlling the switching switch to switch from connecting to the first network switch to connecting to the second network switch.
  3. 如权利要求1或2所述的方法,其特征在于,所述网络切换命令是所述控制系统根据所述机柜的网络状态信息确定当前使用的网络交换机出现网络故障时生成的。The method according to claim 1 or 2, wherein the network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
  4. 如权利要求3所述的方法,其特征在于,所述接收控制系统发送的网络切换命令之前,还包括:The method according to claim 3, wherein before receiving the network switching command sent by the control system, the method further comprises:
    向所述控制系统上报所述机柜的网络状态信息。Report the network status information of the cabinet to the control system.
  5. 如权利要求1或2所述的方法,其特征在于,根据所述网络切换命令,控制机柜内的切换开关切换连接的网络交换机之后,还包括:The method according to claim 1 or 2, wherein after controlling the switch in the cabinet to switch the connected network switch according to the network switching command, the method further comprises:
    控制点亮机柜指示灯,所述机柜指示灯用于指示上架至所述机柜的设备的故障已经修复。Control to light the cabinet indicator, which is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
  6. 一种网络切换装置,其特征在于,包括:A network switching device, characterized in that it includes:
    接收单元,用于接收控制系统发送的网络切换命令;The receiving unit is used to receive the network switching command sent by the control system;
    切换单元,用于根据所述网络切换命令,控制机柜内的切换开关切换连接的网络交换机。The switching unit is configured to control the switch in the cabinet to switch the connected network switch according to the network switching command.
  7. 如权利要求6所述的装置,其特征在于,所述网络交换机包括第一网 络交换机和第二网络交换机,所述第一网络交换机为切换前使用的网络交换机;The apparatus according to claim 6, wherein the network switch comprises a first network switch and a second network switch, and the first network switch is a network switch used before switching;
    所述切换单元,具体用于根据所述网络切换命令,控制所述切换开关从与所述第一网络交换机相连切换至与所述第二网络交换机相连。The switching unit is specifically configured to control the switching switch to switch from connecting to the first network switch to connecting to the second network switch according to the network switching command.
  8. 如权利要求6或7所述的装置,其特征在于,所述网络切换命令是所述控制系统根据所述机柜的网络状态信息确定当前使用的网络交换机出现网络故障时生成的。The apparatus according to claim 6 or 7, wherein the network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
  9. 如权利要求8所述的装置,其特征在于,所述装置还包括网络状态信息发送单元,用于向所述控制系统上报所述机柜的网络状态信息。The apparatus according to claim 8, wherein the apparatus further comprises a network status information sending unit for reporting the network status information of the cabinet to the control system.
  10. 如权利要求6或7所述的装置,其特征在于,所述装置还包括机柜指示灯控制单元,用于控制点亮机柜指示灯,所述机柜指示灯用于指示上架至所述机柜的设备的故障已经修复。The device according to claim 6 or 7, wherein the device further comprises a cabinet indicator control unit for controlling the lighting of the cabinet indicator, the cabinet indicator is used to indicate equipment racked to the cabinet Has been repaired.
  11. 一种电子设备,其特征在于,包括处理器、存储器、收发器、总线接口,其中处理器、存储器与收发器之间通过总线连接;An electronic device, characterized by comprising a processor, a memory, a transceiver, and a bus interface, wherein the processor, the memory, and the transceiver are connected by a bus;
    所述处理器,用于读取所述存储器中的程序,执行权利要求1~5任一所述方法;The processor is configured to read the program in the memory and execute the method according to any one of claims 1 to 5;
    所述存储器,用于存储一个或多个可执行程序,可以存储所述处理器在执行操作时所使用的数据。The memory is used to store one or more executable programs, and may store data used by the processor when performing operations.
  12. 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行权利要求1~5任一所述方法。A non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 5. .
  13. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1~5任一所述方法。A computer program product, characterized in that the computer program product includes a calculation program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the The computer executes the method according to any one of claims 1 to 5.
PCT/CN2019/101410 2018-12-19 2019-08-19 Network switching method and device WO2020125041A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811557987.1 2018-12-19
CN201811557987.1A CN109617730A (en) 2018-12-19 2018-12-19 A kind of method for switching network and device

Publications (1)

Publication Number Publication Date
WO2020125041A1 true WO2020125041A1 (en) 2020-06-25

Family

ID=66009920

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/101410 WO2020125041A1 (en) 2018-12-19 2019-08-19 Network switching method and device

Country Status (2)

Country Link
CN (1) CN109617730A (en)
WO (1) WO2020125041A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617730A (en) * 2018-12-19 2019-04-12 中国银联股份有限公司 A kind of method for switching network and device
CN109672561A (en) * 2018-12-19 2019-04-23 中国银联股份有限公司 A kind of occupy-place monitoring method and device
CN111542187B (en) * 2020-05-15 2024-01-30 深圳日海智能设备有限公司 Monitoring cabinet, monitoring system and monitoring method based on cabinet space occupation detection
CN114501172A (en) * 2020-11-11 2022-05-13 荣群电讯股份有限公司 Telecommunication grade network switch

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095739A (en) * 2011-10-27 2013-05-08 英业达科技有限公司 Cabinet server system and node communication method thereof
CN103618563A (en) * 2013-12-16 2014-03-05 国家电网公司 Remote digital signal wire distribution system
US20150146594A1 (en) * 2013-11-27 2015-05-28 Cisco Technology, Inc. System and method for small cell power control in an enterprise network environment
CN105915385A (en) * 2016-05-31 2016-08-31 深圳市双赢伟业科技股份有限公司 Switch port state prompting method and device
CN109617730A (en) * 2018-12-19 2019-04-12 中国银联股份有限公司 A kind of method for switching network and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7756118B2 (en) * 2006-04-21 2010-07-13 Utah Scientific, Inc. Video switching system utilizing a prioritized common network
CN102984057B (en) * 2012-11-20 2016-01-20 中国舰船研究设计中心 A kind of Multi-service integration dual-redundancy network system
CN104639358B (en) * 2013-11-13 2018-03-09 中国石油化工股份有限公司 batch network port switching method and switching system
CN106534262B (en) * 2016-10-14 2019-06-07 北京博望华科科技有限公司 A kind of switching method of network information system failure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095739A (en) * 2011-10-27 2013-05-08 英业达科技有限公司 Cabinet server system and node communication method thereof
US20150146594A1 (en) * 2013-11-27 2015-05-28 Cisco Technology, Inc. System and method for small cell power control in an enterprise network environment
CN103618563A (en) * 2013-12-16 2014-03-05 国家电网公司 Remote digital signal wire distribution system
CN105915385A (en) * 2016-05-31 2016-08-31 深圳市双赢伟业科技股份有限公司 Switch port state prompting method and device
CN109617730A (en) * 2018-12-19 2019-04-12 中国银联股份有限公司 A kind of method for switching network and device

Also Published As

Publication number Publication date
CN109617730A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
WO2020125041A1 (en) Network switching method and device
WO2020124983A1 (en) Method, device and apparatus for monitoring site occupancy
CN106603265B (en) Management method, network device, and non-transitory computer-readable medium
US8656003B2 (en) Method for controlling rack system using RMC to determine type of node based on FRU's message when status of chassis is changed
US10042583B2 (en) Device management method, device, and device management controller
CN105700969B (en) server system
US9304562B2 (en) Server rack system and power management method applicable thereto
CN103135732B (en) Server cabinet system
CN107463456A (en) A kind of system and method for lifting double netcard NCSI management system switching efficiencies
CN106339058A (en) Dynamic power supply management method and system
EP3244319B1 (en) Flexible nvme drive management solution
US9928206B2 (en) Dedicated LAN interface per IPMI instance on a multiple baseboard management controller (BMC) system with single physical network interface
US20180210851A1 (en) Apparatus, method, and electronic device for implementing solid-state drive data interaction
TW201421258A (en) I2C bus structure and availability checking method
CN106254097A (en) A kind of ATS system two-shipper arbitration system judged based on third party and method
CN103701707A (en) Network equipment
CN105549696B (en) Rack-mounted server system with case management function
US9727104B2 (en) Various PSUs adaptive server and method
US20220283960A1 (en) High density peripheral card chassis
US20180267870A1 (en) Management node failover for high reliability systems
US20150113187A1 (en) Server System
CN105306352A (en) Industrial field bus protocol gateway device
CN104899177A (en) I2C (inter-integrated circuit) equipment control method and system
CN103375420A (en) Equipment cabinet system and fan control system and control method thereof
CN105446654A (en) Server control method and rack controller

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: 19900171

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19900171

Country of ref document: EP

Kind code of ref document: A1