WO2022247575A1 - Interaction method and apparatus, and switching chip, medium and multi-node server - Google Patents

Interaction method and apparatus, and switching chip, medium and multi-node server Download PDF

Info

Publication number
WO2022247575A1
WO2022247575A1 PCT/CN2022/089736 CN2022089736W WO2022247575A1 WO 2022247575 A1 WO2022247575 A1 WO 2022247575A1 CN 2022089736 W CN2022089736 W CN 2022089736W WO 2022247575 A1 WO2022247575 A1 WO 2022247575A1
Authority
WO
WIPO (PCT)
Prior art keywords
network address
management unit
level management
network
address
Prior art date
Application number
PCT/CN2022/089736
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 WO2022247575A1 publication Critical patent/WO2022247575A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Definitions

  • the present application relates to the technical field of multi-node servers, and in particular to an interaction method, device, switching chip, medium and multi-node server.
  • the SMC and BMC interact through the network.
  • the BMC cannot exchange data with the SMC and other BMCs through the internal network and provide external management services through the external network address through a network port. Therefore, the BMC needs to provide additional network ports. To obtain the network address externally, the cost is relatively high.
  • the purpose of this application is to provide an interaction method, an interaction device, a switching chip, a medium and a multi-node server, which can reduce costs.
  • the specific plan is as follows:
  • This application provides an interactive method applied to switching chips, including:
  • the network address is forwarded to the upper-level management unit or the lower-level management unit; the network address is an internal network address or an external network address; the lower-level management unit receives the network through a network port in a mixed mode of a network static address and a dynamic address. address.
  • the forwarding the network address to an upper-level management unit or a lower-level management unit includes:
  • the upper-level management unit or the lower-level management unit before forwarding the network address to the upper-level management unit or the lower-level management unit, it also includes:
  • the forwarding frequency of the network address within the preset time period is greater than the preset frequency, determine it as a risky website and prompt the user;
  • the step of forwarding the network address to an upper-level management unit or a lower-level management unit is performed.
  • the network address after obtaining the network address, it also includes:
  • switch to the standby switch chip When it is determined that the switch chip itself fails, switch to the standby switch chip, and use the standby switch chip to continue the interaction process.
  • each slave switching chip After receiving multiple network addresses issued by multiple superior management units, according to the working status of each slave switching chip and its own working status, determine the switching chip that participates in forwarding the network address, and control the corresponding switching chip Execute the interactive process.
  • the application provides an interactive device, including:
  • a forwarding module configured to forward the network address to a superior management unit or a lower management unit; the network address is an internal network address or an external network address;
  • the port receives the network address.
  • the application provides a switching chip, including:
  • a processor configured to implement the steps of the above-mentioned interactive method when executing the computer program.
  • the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned interaction method are realized.
  • This application provides a multi-node server, including:
  • An upper-level management unit a switch chip connected to the upper-level management unit, and a plurality of lower-level management units connected to the switch chip;
  • the lower-level management unit has a network port in a promiscuous mode of a network static address and a dynamic address;
  • the switching chip is used to obtain a network address, and forward the network address to the upper-level management unit or the lower-level management unit;
  • the network address is an internal network address or an external network address;
  • the lower-level management unit is configured to use the network port to receive the network address sent by the switch chip.
  • the present application provides an interaction method, which is applied to a switch chip, including: obtaining a network address; forwarding the network address to an upper-level management unit or a lower-level management unit; the network address is an internal network address or an external network address; the The lower-level management unit receives the network address through a network port in a mixed mode of a network static address and a dynamic address.
  • this application divides the internal network address and the external network address by configuring the switching chip, and forwards the internal network address or the external network address to the upper-level management unit or the lower-level management unit, realizing the interaction of the internal network address, and the lower-level management unit
  • the network port of the network has a mixed mode of network static address and dynamic address, and through this mixed mode, the network port of a lower-level management unit can support external network addresses and internal network addresses at the same time, reducing costs.
  • the present application also provides an interaction device, a switching chip, a medium, and a multi-node server, all of which have the above-mentioned beneficial effects, and will not be repeated here.
  • FIG. 1 is a schematic structural diagram of a multi-node server provided in an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of another multi-node server provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of an interaction method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an interaction device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a switch chip provided in an embodiment of the present application.
  • FIG. 6 is a structural diagram of another switch chip provided by the embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another multi-node server provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the SMC and BMC interact through the network.
  • the BMC cannot exchange data with the SMC and other BMCs through the internal network and provide external management services through the external network address through a network port. Therefore, the BMC needs to provide additional network ports. To obtain the network address externally, the cost is relatively high.
  • this embodiment provides a multi-node server, including: an upper-level management unit, a switching chip connected to the upper-level management unit, and a network port connected to the switching chip and having a network static address and a dynamic address in a promiscuous mode
  • the switching chip is used to obtain the network address and forward the network address to the upper-level management unit or the lower-level management unit;
  • the network address is an internal network address or an external network address;
  • the lower-level management unit is used to use the network
  • the port receives the network address sent by the switch chip.
  • the switching chip By configuring the switching chip to divide the internal network address and external network address, and forward the internal network address or external network address to the upper-level management unit or the lower-level management unit, the interaction of the inner network address is realized, and the network port in the lower-level management unit has The hybrid mode of network static address and dynamic address, through this hybrid mode, the network port of a subordinate management unit can support both external network address and internal network address, which saves a port of each subordinate management unit and reduces the cost.
  • FIG. 1 is a schematic structural diagram of a multi-node server provided in an embodiment of the present application, including:
  • the lower-level management unit 300 has a network port in a mixed mode of a network static address and a dynamic address;
  • the switching chip 200 is used to obtain the network address, and forward the network address to the upper-level management unit 100 or the lower-level management unit 300;
  • the network address is an internal network address or an external network address;
  • the lower-level management unit 300 is configured to use a network port to receive the network address sent by the switch chip 200 .
  • the switch chip 200 is used to interconnect the upper-level management unit 100 and the lower-level management unit 300 to realize a physical connection path. Moreover, the switch chip 200 obtains a network address, which is an internal network address or an external network address, so that the switch chip 200 can divide internal and external networks.
  • the upper-level management unit 100 and the lower-level management unit 300 interact through the intranet. Specifically, the upper-level management unit 100 sends the interaction data to the switching chip 200, and the switching chip 200 forwards it to the lower-level management unit 300, and the lower-level management unit 300 passes the network. The interface receives the interaction data.
  • the lower-level management unit 300 has a network port in a promiscuous mode, and one network port can support internal network addresses and external network addresses, and rely on the switch chip 200 to achieve internal data exchange and external network management.
  • the lower-level management unit 300 can perform network interaction through the internal network address, wherein the lower-level management unit 300 has a fixed internal network address and a dynamic external network address.
  • the internal network address is used for data interaction on the internal network
  • the external network address is used for For data interaction on the external network
  • the lower-level management unit 300 accesses the external network address through the web after obtaining the external network address.
  • the present application does not limit the number of lower-level management units 300, and the user can customize the settings.
  • the switch chip 200 sends the first external network address to the upper-level management unit 100; After the switch chip 200 receives the second external network address to the lower-level management unit 300, the switch chip 200 sends the second external network address to the network port of the lower-level management unit 300, and the lower-level management unit 300 obtains the second external network through the network port.
  • the exchange chip 200 when the exchange chip 200 receives the exchange data from the upper management unit 100 to the lower management unit 300, the exchange chip 200 sends the exchange data to the lower management unit 300; similarly, when the exchange chip 200 receives the first lower management unit After the unit exchanges data with the second lower-level management unit, the switch chip 200 sends the exchanged data to the second lower-level management unit.
  • this embodiment divides the internal network address and the external network address by configuring the switching chip 200, and forwards the internal network address or the external network address to the upper-level management unit 100 or the lower-level management unit 300, thereby realizing the internal network address.
  • Interaction, and the network port in the lower management unit 300 has a mixed mode of network static address and dynamic address. Through this mixed mode, a network port of the lower management unit 300 can support external network address and internal network address at the same time, reducing the cost.
  • the switch chip 200 is further configured to determine whether it is an external network address or an internal network address according to identification information of the network address.
  • the switch chip 200 can identify internal and external network addresses through identification information of network addresses. Each time the network address is allocated, the identification information is used to mark whether the network address is an internal network address or an external network address, and the identification information can improve the efficiency and accuracy of determining the network address type. For example, the identification information a is set for the internal network address, and the identification information b is set for the external network address. After the switch chip 200 receives the network address, it first reads the identification information. If the identification information is a, then it is determined that the network address is an internal network address. If the identification information is b, it is determined that the network address is an external network address, and if the identification information is c, it is required to obtain the network address again. It can be seen that in this embodiment, the identification information is used to mark whether the network address is an internal network address or an external network address, and the identification information can improve the efficiency and accuracy of network address type determination.
  • the switch chip 200 is also used to obtain a network address through DHCP.
  • the DHCP Dynamic Host Configuration Protocol
  • the DHCP server greatly simplifies some network management tasks that previously needed to be done manually, and improves management efficiency.
  • the switch chip 200 obtains a network address allocated from a DHCP server through DHCP.
  • the network address can be a fixed address or a dynamically changing address, which can be set according to actual conditions.
  • the upper-level management unit 100 and the lower-level management unit 300 perform data interaction through an internal network address.
  • the switch chip 200 After the switch chip 200 receives the exchange data from the upper-level management unit 100 to the lower-level management unit 300, the switch chip 200 sends the exchange data to the lower-level management unit 300; After the exchange data of the second lower-level management unit, the switch chip 200 sends the exchange data to the second lower-level management unit.
  • the upper-level management unit 100 may also directly perform data interaction with the lower-level management unit 300 through a network port. Specifically, details will not be described in this embodiment.
  • the number of switch chips is greater than 1, and each switch chip is communicatively connected with the upper-level management unit and the lower-level management unit.
  • FIG. 7 is a schematic structural diagram of another multi-node server provided in the embodiment of the present application, including multiple switch chips, and each switch chip can implement network address forwarding function, improving the forwarding efficiency.
  • the switch chip is further configured to switch to a standby switch chip when it is determined that the switch chip itself fails, and use the standby switch chip to continue executing the interaction process.
  • use the backup switching chip to update the main switching chip to continue working to ensure normal work and improve the reliability and efficiency of forwarding. .
  • the switch chip is also used to determine to participate in forwarding according to the working status of each slave switching chip and its own working status after receiving multiple network addresses issued by multiple upper-level management units.
  • the switch chip with the network address controls the corresponding switch chip to execute the interaction process. Specifically, it is determined that the current switch chip is the master switch chip, and other switch chips are slave switch chips, and each switch chip uploads the working status to the master switch chip in real time.
  • the master switch chip determines the network address participating in the forwarding according to the working status of each slave switch chip and its own working status, and controls the corresponding slave switch chip to perform the forwarding operation. It realizes that multiple switching chips participate in the forwarding of network addresses, which improves the forwarding efficiency.
  • FIG. Network transmission dotted line indicates internal network transmission.
  • the management units in the multi-node server are interconnected by using network switching chips.
  • the internal and external networks are divided by configuring switching chips; the lower-level management unit supports network static address and dynamic address mixed mode; the upper-level management unit and each lower-level management unit interact through the internal network; externally obtain network addresses through DHCP to provide management functions.
  • the network port (eth0) of the lower-level management unit can perform network interaction in the mixed mode of configuring network static addresses and dynamic addresses.
  • the internal network address of BMC1 is 192.168.0.113; the external network address is: 100.2.76.128;
  • the internal network address is 192.168.0.112; the external network address is: 100.2.76.31.
  • the interaction mode between multi-level management units on a new multi-node server is based on adding a network switching chip to perform data network isolation and exchange.
  • multi-level management units including upper-level management units and lower-level management units
  • one network port can support internal network address and external network address, and rely on the switching chip to achieve internal data interaction and external management network.
  • the internal network address is used for data exchange, and the external port forwards the external network data to each management unit, so that the lower-level management units can obtain the external network address through DHCP and provide external network services.
  • the SMC and BMC interact through the network.
  • the BMC cannot exchange data with the SMC and other BMCs through the internal network through a network port, and provide external management services through the external network address. Therefore, the BMC needs to provide an additional network.
  • the port is used to obtain the network address externally, and the cost is relatively high.
  • Figure 3 is a flow chart of an interaction method provided by an embodiment of this application, specifically including:
  • the multi-node server includes: an upper-level management unit, a switch chip connected to the upper-level management unit, and a plurality of lower-level management units connected to the switch chip; the lower-level management unit has a network static address and a dynamic address. Network ports in promiscuous mode.
  • the network address is an internal network address or an external network address; the lower-level management unit receives the network address through a network port in a mixed mode of network static addresses and dynamic addresses.
  • this embodiment divides the internal network address and the external network address by configuring the switching chip, and forwards the internal network address or the external network address to the upper-level management unit or the lower-level management unit, realizing the interaction of the internal network address, and
  • the network port in the lower-level management unit has a mixed mode of network static address and dynamic address. Through this mixed mode, the network port of a lower-level management unit can support external network address and internal network address at the same time, which reduces the cost.
  • obtaining the network address includes: obtaining the network address through DHCP.
  • the DHCP (Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol) server assigns network addresses and ensures that the addresses assigned to each management unit are different.
  • the DHCP server greatly simplifies the management efficiency of network management tasks. Obtain the network address allocated from the DHCP server through DHCP.
  • the network address can be a fixed address or a dynamically changing address, which can be set according to the actual situation.
  • the method further includes: determining whether it is an external network address or an internal network address according to identification information of the network address.
  • internal and external network addresses are identified through identification information of network addresses.
  • the identification information is used to mark whether the network address is an internal network address or an external network address, and the identification information can improve the efficiency and accuracy of determining the network address type.
  • the identification information a is set for the internal network address
  • the identification information b is set for the external network address.
  • the switch chip 200 After the switch chip 200 receives the network address, it first reads the identification information. If the identification information is a, then it is determined that the network address is an internal network address. If the identification information is b, it is determined that the network address is an external network address, and if the identification information is c, it is required to obtain the network address again. It can be seen that in this embodiment, the identification information is used to mark whether the network address is an internal network address or an external network address, and the identification information can improve the efficiency and accuracy of network address type determination.
  • forwarding the network address to the upper-level management unit or the lower-level management unit includes: checking whether the format of the network address conforms to the setting specification; if the format of the network address conforms to the setting If the specification is specified, the network address is forwarded to the upper-level management unit or lower-level management unit.
  • the setting specification includes but is not limited to the format of the URL that complies with the regulations, or the format of the setup URL that can be accessed. Only when the setting specification is met can it be determined that the URL can be accessed by the upper-level management unit or the lower-level management unit, and the access is guaranteed. reliability.
  • the network address to the upper-level management unit or the lower-level management unit in order to avoid the occurrence of access risks, before forwarding the network address to the upper-level management unit or the lower-level management unit, it also includes: judging whether the forwarding frequency of the network address within the preset time period is greater than the preset frequency ; If the forwarding frequency of the network address within the preset time period is greater than the preset frequency, it will be determined as a risky website, and the user will be prompted; if the forwarding frequency of the network address within the preset time period is not greater than the preset frequency, the network will be executed Steps for forwarding addresses to upper-level management units or lower-level management units.
  • the number of switch chips is greater than 1, and each switch chip is communicatively connected with the upper-level management unit and the lower-level management unit.
  • the method further includes: when it is determined that the switch chip itself fails, switching to the standby switch chip, and using the standby switch chip to continue the interaction process. Determine one switching chip as the main switching chip, and the other switching chip as the backup switching chip. When the main switching chip fails, use the backup switching chip to update the main switching chip to continue working to ensure normal work and improve the reliability and efficiency of forwarding. .
  • it also includes:
  • each slave switching chip After receiving multiple network addresses issued by multiple upper-level management units, according to the working status of each slave switching chip and its own working status, determine the switching chip that participates in forwarding the network address, and control the corresponding switching chip to perform the interaction process. Specifically, it is determined that the current switch chip is the master switch chip, and other switch chips are slave switch chips, and each switch chip uploads the working status to the master switch chip in real time.
  • the master switch chip After receiving multiple network addresses issued by multiple upper-level management units, determines the network address participating in the forwarding according to the working status of each slave switch chip and its own working status, and controls the corresponding slave switch chip to perform the forwarding operation. It realizes that multiple switching chips participate in the forwarding of network addresses, which improves the forwarding efficiency.
  • FIG. 4 is the implementation A schematic structural diagram of an interactive device provided as an example, including:
  • Obtaining module 401 configured to obtain a network address
  • the forwarding module 402 is used to forward the network address to the upper-level management unit or the lower-level management unit; the network address is an internal network address or an external network address; the lower-level management unit receives the network address through a network port in a mixed mode of network static address and dynamic address.
  • this embodiment divides the internal network address and the external network address by configuring the switching chip, and forwards the internal network address or the external network address to the upper-level management unit or the lower-level management unit, realizing the interaction of the internal network address, and
  • the network port in the lower-level management unit has a mixed mode of network static address and dynamic address. Through this mixed mode, the network port of a lower-level management unit can support external network address and internal network address at the same time, which reduces the cost.
  • the forwarding module 402 includes:
  • a verification unit configured to verify whether the format of the network address complies with the set specification
  • a forwarding unit configured to forward the network address to an upper-level management unit or a lower-level management unit if the format of the network address conforms to the setting specification.
  • a judging module configured to judge whether the forwarding frequency of the network address within the preset time period is greater than the preset frequency
  • a prompting module configured to determine that the network address is a risky website and prompt the user if the forwarding frequency of the network address within the preset time period is greater than the preset frequency
  • An executing module configured to execute the step of forwarding the network address to an upper-level management unit or a lower-level management unit if the forwarding frequency of the network address within a preset time period is not greater than the preset frequency.
  • the identification module is used to determine whether it is an external network address or an internal network address according to the identification information of the network address.
  • the switch module is configured to switch to a standby switch chip when it is determined that the switch chip itself fails, and use the standby switch chip to continue the interaction process.
  • the allocation module is configured to determine the switching chip that participates in forwarding the network address according to the working status of each slave switching chip and its own working status after receiving multiple network addresses issued by the multiple upper management units, Control the corresponding switching chip to execute the interaction process.
  • a switch chip provided by an embodiment of the present application is introduced below, and the switch chip described below and the method described above may be referred to in correspondence.
  • FIG. 5 is a schematic structural diagram of a switch chip provided in an embodiment of the present application, including:
  • Memory 501 for storing computer programs
  • the processor 502 is configured to implement the steps of the above-mentioned interaction method when executing the computer program.
  • the memory 501 includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and computer-readable instructions
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the processor 502 provides computing and control capabilities for the switching chip.
  • the following steps can be implemented: obtaining the network address; forwarding the network address to the upper-level management unit or the lower-level management unit; the network address is an internal network address or an external network address; the lower-level management unit receives the network address through the network port in the mixed mode of the network static address and the dynamic address.
  • this embodiment divides the internal network address and the external network address by configuring the switching chip, and forwards the internal network address or the external network address to the upper-level management unit or the lower-level management unit, realizing the interaction of the internal network address, and
  • the network port in the lower-level management unit has a mixed mode of network static address and dynamic address. Through this mixed mode, the network port of a lower-level management unit can support external network address and internal network address at the same time, which reduces the cost.
  • the processor 502 executes the computer subroutine stored in the memory 501, the following steps can be implemented: check whether the format of the network address conforms to the set specification; if the format of the network address conforms to the set specification, then Forwards network addresses to upper-level management units or lower-level management units.
  • the processor 502 executes the computer subroutine stored in the memory 501, the following steps can be implemented: judging whether the forwarding frequency of the network address within the preset time period is greater than the preset frequency; If the forwarding frequency within the preset time period is greater than the preset frequency, it will be determined as a risky website, and the user will be prompted; if the forwarding frequency of the network address within the preset time period is not greater than the preset frequency, the network address will be forwarded to the upper management unit or the steps of the subordinate snap-in.
  • the processor 502 executes the computer subroutine stored in the memory 501, the following steps can be implemented: after obtaining the network address, it also includes: determining whether it is an external network address or an internal network address according to the identification information of the network address .
  • the processor 502 executes the computer subroutine stored in the memory 501, the following steps can be implemented: when it is determined that the switch chip itself fails, switch to the standby switch chip, and use the standby switch chip to continue to perform interactive operations. process.
  • the processor 502 executes the computer subroutine stored in the memory 501
  • the following steps can be implemented: after receiving multiple network addresses issued by multiple upper-level management units, according to each slave switch chip
  • the working status and its own working status determine the switching chip participating in the forwarding network address, and control the corresponding switching chip to execute the interaction process.
  • FIG. 6 is a structural diagram of another switching chip provided in the embodiment of the present application.
  • the switching chip also includes:
  • the input interface 503 is connected with the processor 502 and is used for acquiring externally imported computer programs, parameters and instructions, which are controlled by the processor 502 and stored in the memory 501 .
  • the input interface 503 may be connected with an input device to receive parameters or instructions manually input by the user.
  • the input device may be a touch layer covered on the display screen, or may be a button, a trackball or a touch pad provided on the terminal shell, or may be a keyboard, a touch pad, or a mouse.
  • the display unit 504 is connected to the processor 502 and configured to display data sent by the processor 502 .
  • the display unit 504 may be a display screen on a PC (Personal Computer, personal computer), a liquid crystal display, or an electronic ink display.
  • the network port 505 is connected with the processor 502 and is used for communicating with various external terminal devices.
  • the communication technology used in the communication connection can be wired communication technology or wireless communication technology, such as mobile high-definition link technology (Mobile High-Definition Link, MHL), universal serial bus (Universal Serial Bus, USB), high-definition multimedia interface (High-Definition Definition Multimedia Interface, HDMI), wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, communication technology based on IEEE802.11s, etc.
  • a computer-readable storage medium provided by an embodiment of the present application is introduced below, and the computer-readable storage medium described below and the method described above may refer to each other correspondingly.
  • FIG. 8 is a schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • a computer program 610 is stored on the computer-readable storage medium 60 .
  • the computer program 610 is executed by the processor, the above steps of the interactive method are implemented.
  • this embodiment divides the internal network address and the external network address by configuring the switching chip, and forwards the internal network address or the external network address to the upper-level management unit or the lower-level management unit, realizing the interaction of the internal network address, and
  • the network port in the lower-level management unit has a mixed mode of network static address and dynamic address. Through this mixed mode, the network port of a lower-level management unit can support external network address and internal network address at the same time, which reduces the cost.
  • each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
  • the description is relatively simple, and for the related information, please refer to the description of the method part.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

Abstract

Disclosed in the present application are an interaction method and apparatus, and a switching chip, a medium and a multi-node server. The method comprises: acquiring a network address; forwarding the network address to an upper-level management unit or a lower-level management unit, wherein the network address is an internal network address or an external network address; and the lower-level management unit receives the network address by means of a network port in a hybrid mode of a network static address and a network dynamic address. In the present application, an internal network address and an external network address are distinguished by means of configuring a switching chip, and the internal network address or the external network address is forwarded to an upper-level management unit or a lower-level management unit, such that interaction of the internal network address is realized. Moreover, a network port in the lower-level management unit has a hybrid mode of a network static address and a network dynamic address, and by means of the hybrid mode, one network port of the lower-level management unit can support the external network address and the internal network address at the same time, thereby reducing costs.

Description

一种交互方法、装置、交换芯片、介质和多节点服务器An interaction method, device, switching chip, medium and multi-node server
本申请要求在2021年05月27日提交中国专利局、申请号为202110583329.5、发明名称为“一种多节点服务器、交互方法、装置、交换芯片和介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on May 27, 2021, with the application number 202110583329.5, and the title of the invention is "a multi-node server, interaction method, device, switching chip and medium", all of which The contents are incorporated by reference in this application.
技术领域technical field
本申请涉及多节点服务器技术领域,特别涉及一种交互方法、装置、交换芯片、介质和多节点服务器。The present application relates to the technical field of multi-node servers, and in particular to an interaction method, device, switching chip, medium and multi-node server.
背景技术Background technique
随着用户对计算机的计算需求的提高,设备的类型发展越来越丰富。针对于多节点多级管理单元服务器的应用场景越来越多,很多客户需要上级管理单元SMC(System Management Controller,系统管理控制器)可以对外提供管理服务,下级管理单元BMC(Baseboard Management Controller,系统管理控制器)也可以对外提供管理服务。With the improvement of users' computing demands on computers, the types of devices are becoming more and more abundant. There are more and more application scenarios for multi-node and multi-level management unit servers. Many customers need the upper-level management unit SMC (System Management Controller, System Management Controller) to provide external management services, and the lower-level management unit BMC (Baseboard Management Controller, system management controller) can also provide external management services.
相关技术中采用的是SMC与BMC通过网络交互,BMC不能通过一个网口实现通过内网与SMC及其他BMC进行数据交互以及通过外网络地址对外提供管理服务,因此,需要BMC提供额外的网络端口来对外获取网络地址,成本较高。In related technologies, the SMC and BMC interact through the network. The BMC cannot exchange data with the SMC and other BMCs through the internal network and provide external management services through the external network address through a network port. Therefore, the BMC needs to provide additional network ports. To obtain the network address externally, the cost is relatively high.
因此,如何提供一种解决上述技术问题的方案是本领域技术人员目前需要解决的问题。Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present.
发明内容Contents of the invention
本申请的目的是提供一种交互方法、交互装置、交换芯片、介质和多节点服务器,能够降低成本。其具体方案如下:The purpose of this application is to provide an interaction method, an interaction device, a switching chip, a medium and a multi-node server, which can reduce costs. The specific plan is as follows:
本申请提供了一种交互方法,应用于交换芯片,包括:This application provides an interactive method applied to switching chips, including:
获取网络地址;Get the network address;
将所述网络地址转发至上级管理单元或下级管理单元;所述网络地址为内网络地址或外网络地址;所述下级管理单元通过网络静态地址和动态地址的混杂模式的网络端口接收所述网络地址。The network address is forwarded to the upper-level management unit or the lower-level management unit; the network address is an internal network address or an external network address; the lower-level management unit receives the network through a network port in a mixed mode of a network static address and a dynamic address. address.
可选地,所述将所述网络地址转发至上级管理单元或下级管理单元,包括:Optionally, the forwarding the network address to an upper-level management unit or a lower-level management unit includes:
校验所述网络地址的格式是否符合设定规范;Verifying whether the format of the network address complies with the set specification;
若所述网络地址的格式符合所述设定规范,则将所述网络地址转发至上级管理单元或下级管理单元。If the format of the network address conforms to the setting specification, forward the network address to the upper-level management unit or the lower-level management unit.
可选地,所述将所述网络地址转发至上级管理单元或下级管理单元之前,还包括:Optionally, before forwarding the network address to the upper-level management unit or the lower-level management unit, it also includes:
判断所述网络地址在预设时间段内的转发频次是否大于预设频次;judging whether the forwarding frequency of the network address within the preset time period is greater than the preset frequency;
若所述网络地址在预设时间段内的转发频次大于所述预设频次,则确定为风险网址,并提示用户;If the forwarding frequency of the network address within the preset time period is greater than the preset frequency, determine it as a risky website and prompt the user;
若所述网络地址在预设时间段内的转发频次不大于所述预设频次,则执行所述将所述网络地址转发至上级管理单元或下级管理单元的步骤。If the forwarding frequency of the network address within a preset period of time is not greater than the preset frequency, the step of forwarding the network address to an upper-level management unit or a lower-level management unit is performed.
可选地,所述获取网络地址之后,还包括:Optionally, after obtaining the network address, it also includes:
根据所述网络地址的标识信息确定是所述外网络地址还是所述内网络地址。Determine whether it is the external network address or the internal network address according to the identification information of the network address.
可选地,还包括:Optionally, also include:
当确定所述交换芯片本身发生故障时,切换至备用交换芯片,并利用所述备用交换芯片继续执行交互过程。When it is determined that the switch chip itself fails, switch to the standby switch chip, and use the standby switch chip to continue the interaction process.
可选地,还包括:Optionally, also include:
当接收到多个所述上级管理单元下发的多个所述网络地址后,根据各个从交换芯片的工作状态以及自身的工作状态,确定参与转发的网络地址的交换芯片,控制对应的交换芯片执行交互过程。After receiving multiple network addresses issued by multiple superior management units, according to the working status of each slave switching chip and its own working status, determine the switching chip that participates in forwarding the network address, and control the corresponding switching chip Execute the interactive process.
本申请提供了一种交互装置,包括:The application provides an interactive device, including:
获取模块,用于获取网络地址;Obtaining a module for obtaining a network address;
转发模块,用于将所述网络地址转发至上级管理单元或下级管理单元;所述网络地址为内网络地址或外网络地址;所述下级管理单元通过网络静态地址和动态地址的混杂模式的网络端口接收所述网络地址。A forwarding module, configured to forward the network address to a superior management unit or a lower management unit; the network address is an internal network address or an external network address; The port receives the network address.
本申请提供了一种交换芯片,包括:The application provides a switching chip, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上所述交互方法的步骤。A processor configured to implement the steps of the above-mentioned interactive method when executing the computer program.
本申请提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述交互方法的步骤。The present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned interaction method are realized.
本申请提供了一种多节点服务器,包括:This application provides a multi-node server, including:
上级管理单元、与所述上级管理单元连接的交换芯片、与所述交换芯片连接的多个下级管理单元;所述下级管理单元具有网络静态地址和动态地址的混杂模式的网络端口;An upper-level management unit, a switch chip connected to the upper-level management unit, and a plurality of lower-level management units connected to the switch chip; the lower-level management unit has a network port in a promiscuous mode of a network static address and a dynamic address;
其中,所述交换芯片,用于获取网络地址,并将所述网络地址转发至上级管理单元或下级管理单元;所述网络地址为内网络地址或外网络地址;Wherein, the switching chip is used to obtain a network address, and forward the network address to the upper-level management unit or the lower-level management unit; the network address is an internal network address or an external network address;
所述下级管理单元,用于利用所述网络端口接收所述交换芯片发送的所述网络地址。The lower-level management unit is configured to use the network port to receive the network address sent by the switch chip.
本申请提供了一种交互方法,应用于交换芯片,包括:获取网络地址;将所述网络地址转发至上级管理单元或下级管理单元;所述网络地址为内网络地址或外网络地址;所述下级管理单元通过网络静态地址和动态地址的混杂模式的网络端口接收所述网络地址。The present application provides an interaction method, which is applied to a switch chip, including: obtaining a network address; forwarding the network address to an upper-level management unit or a lower-level management unit; the network address is an internal network address or an external network address; the The lower-level management unit receives the network address through a network port in a mixed mode of a network static address and a dynamic address.
可见,本申请通过配置交换芯片来划分内网络地址和外网络地址,并将内网络地址或者外网络地址转发至上级管理单元或者下级管理单元,实现了内网地址的交互,且下级管理单元中的网络端口具有网络静态地址和动态地址的混杂模式,通过该混杂模式达到一个下级管理单元的网络端口可以同时支持外网地址和内网地址,降低了成本。It can be seen that this application divides the internal network address and the external network address by configuring the switching chip, and forwards the internal network address or the external network address to the upper-level management unit or the lower-level management unit, realizing the interaction of the internal network address, and the lower-level management unit The network port of the network has a mixed mode of network static address and dynamic address, and through this mixed mode, the network port of a lower-level management unit can support external network addresses and internal network addresses at the same time, reducing costs.
本申请同时还提供了一种交互装置、交换芯片、介质和多节点服务器,均具有上述有益效果,在此不再赘述。The present application also provides an interaction device, a switching chip, a medium, and a multi-node server, all of which have the above-mentioned beneficial effects, and will not be repeated here.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面 描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本申请实施例提供的一种多节点服务器的结构示意图;FIG. 1 is a schematic structural diagram of a multi-node server provided in an embodiment of the present application;
图2为本申请实施例提供的另一种多节点服务器的结构示意图;FIG. 2 is a schematic structural diagram of another multi-node server provided by an embodiment of the present application;
图3为本申请实施例提供的一种交互方法的流程图;FIG. 3 is a flowchart of an interaction method provided by an embodiment of the present application;
图4为本申请实施例提供的一种交互装置的结构示意图;FIG. 4 is a schematic structural diagram of an interaction device provided by an embodiment of the present application;
图5为本申请实施例提供的一种交换芯片的结构示意图;FIG. 5 is a schematic structural diagram of a switch chip provided in an embodiment of the present application;
图6为本申请实施例提供的另一种交换芯片的结构图;FIG. 6 is a structural diagram of another switch chip provided by the embodiment of the present application;
图7为本申请实施例提供的另一种多节点服务器的结构示意图;FIG. 7 is a schematic structural diagram of another multi-node server provided by an embodiment of the present application;
图8为本申请实施例提供的一种计算机可读存储介质的结构示意图。FIG. 8 is a schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
相关技术中采用的是SMC与BMC通过网络交互,BMC不能通过一个网口实现通过内网与SMC及其他BMC进行数据交互以及通过外网络地址对外提供管理服务,因此,需要BMC提供额外的网络端口来对外获取网络地址,成本较高。In related technologies, the SMC and BMC interact through the network. The BMC cannot exchange data with the SMC and other BMCs through the internal network and provide external management services through the external network address through a network port. Therefore, the BMC needs to provide additional network ports. To obtain the network address externally, the cost is relatively high.
基于上述技术问题,本实施例提供一种多节点服务器,包括:上级管理单元、与上级管理单元连接的交换芯片、与交换芯片连接的且具有网络静态地址和动态地址的混杂模式的网络端口的多个下级管理单元;其中,交换芯片,用于获取网络地址,并将网络地址转发至上级管理单元或下级管理单元;网络地址为内网络地址或外网络地址;下级管理单元,用于利用网络端口接收交换芯片发送的网络地址。通过配置交换芯片来划分内网络地址和外网络地址,并将内网络地址或者外网络地址转发至上级管理单元或者下级管理单元,实现了内网地址的交互,且下级管理单元中的网络端口具有网络静态地 址和动态地址的混杂模式,通过该混杂模式达到一个下级管理单元的网络端口可以同时支持外网地址和内网地址,节省了每个下级管理单元的一个端口,降低了成本。Based on the above technical problems, this embodiment provides a multi-node server, including: an upper-level management unit, a switching chip connected to the upper-level management unit, and a network port connected to the switching chip and having a network static address and a dynamic address in a promiscuous mode A plurality of lower-level management units; among them, the switching chip is used to obtain the network address and forward the network address to the upper-level management unit or the lower-level management unit; the network address is an internal network address or an external network address; the lower-level management unit is used to use the network The port receives the network address sent by the switch chip. By configuring the switching chip to divide the internal network address and external network address, and forward the internal network address or external network address to the upper-level management unit or the lower-level management unit, the interaction of the inner network address is realized, and the network port in the lower-level management unit has The hybrid mode of network static address and dynamic address, through this hybrid mode, the network port of a subordinate management unit can support both external network address and internal network address, which saves a port of each subordinate management unit and reduces the cost.
请参考图1,图1为本申请实施例提供的一种多节点服务器的结构示意图,包括:Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a multi-node server provided in an embodiment of the present application, including:
上级管理单元100、与上级管理单元100连接的交换芯片200、与交换芯片200连接的多个下级管理单元300;下级管理单元300具有网络静态地址和动态地址的混杂模式的网络端口;The upper-level management unit 100, the switch chip 200 connected to the upper-level management unit 100, and a plurality of lower-level management units 300 connected to the switch chip 200; the lower-level management unit 300 has a network port in a mixed mode of a network static address and a dynamic address;
其中,交换芯片200,用于获取网络地址,并将网络地址转发至上级管理单元100或下级管理单元300;网络地址为内网络地址或外网络地址;Wherein, the switching chip 200 is used to obtain the network address, and forward the network address to the upper-level management unit 100 or the lower-level management unit 300; the network address is an internal network address or an external network address;
下级管理单元300,用于利用网络端口接收交换芯片200发送的网络地址。The lower-level management unit 300 is configured to use a network port to receive the network address sent by the switch chip 200 .
本实施例通过交换芯片200进行上级管理单元100和下级管理单元300间的互联,实现物理连接的通路。并且,交换芯片200获取网络地址,该网络地址为内网络地址或外网络地址,以便交换芯片200划分内外网络。In this embodiment, the switch chip 200 is used to interconnect the upper-level management unit 100 and the lower-level management unit 300 to realize a physical connection path. Moreover, the switch chip 200 obtains a network address, which is an internal network address or an external network address, so that the switch chip 200 can divide internal and external networks.
其中,上级管理单元100和下级管理单元300通过内网进行交互,具体的,上级管理单元100将交互数据发送至交换芯片200,交换芯片200转发至下级管理单元300,且下级管理单元300通过网络接口接收该交互数据。Wherein, the upper-level management unit 100 and the lower-level management unit 300 interact through the intranet. Specifically, the upper-level management unit 100 sends the interaction data to the switching chip 200, and the switching chip 200 forwards it to the lower-level management unit 300, and the lower-level management unit 300 passes the network. The interface receives the interaction data.
可以理解的是,下级管理单元300具有混杂模式的网络端口,可以达到一个网络端口可以支持内网络地址和外网络地址,依托交换芯片200达到对内数据交互和对外管理网络。下级管理单元300可以通过内网络地址进行网络交互,其中,下级管理单元300具有固定的内网络地址和动态的外网络地址,一般的,内网络地址用于内网的数据交互,外网络地址用于外网的数据交互,下级管理单元300得到该外网络地址后,通过web访问该外网络地址。本申请也不对下级管理单元300的数量进行限定,用户可自定义设置。It can be understood that the lower-level management unit 300 has a network port in a promiscuous mode, and one network port can support internal network addresses and external network addresses, and rely on the switch chip 200 to achieve internal data exchange and external network management. The lower-level management unit 300 can perform network interaction through the internal network address, wherein the lower-level management unit 300 has a fixed internal network address and a dynamic external network address. Generally, the internal network address is used for data interaction on the internal network, and the external network address is used for For data interaction on the external network, the lower-level management unit 300 accesses the external network address through the web after obtaining the external network address. The present application does not limit the number of lower-level management units 300, and the user can customize the settings.
利用交换芯片200进行交互的方式进行进一步阐述,例如,当交换芯片200接收到对上级管理单元100的第一外网络地址后,交换芯片200将该第一外网络地址发送至上级管理单元100;当交换芯片200接收到对下级管理单元300的第二外网络地址后,交换芯片200将第二外网络地址发送至下级管理单元300的网络端口,下级管理单元300通过网络端口得到第二外网络地址;当交换芯片200接收到上级管理单元100对下级管理单元300的交换数据后, 交换芯片200将该交换数据发送至下级管理单元300;同样的,当交换芯片200接收到第一下级管理单元对第二下级管理单元的交换数据后,交换芯片200将该交换数据发送至第二下级管理单元。For further elaboration by using the exchange chip 200 to interact, for example, after the switch chip 200 receives the first external network address to the upper-level management unit 100, the switch chip 200 sends the first external network address to the upper-level management unit 100; After the switch chip 200 receives the second external network address to the lower-level management unit 300, the switch chip 200 sends the second external network address to the network port of the lower-level management unit 300, and the lower-level management unit 300 obtains the second external network through the network port. address; when the exchange chip 200 receives the exchange data from the upper management unit 100 to the lower management unit 300, the exchange chip 200 sends the exchange data to the lower management unit 300; similarly, when the exchange chip 200 receives the first lower management unit After the unit exchanges data with the second lower-level management unit, the switch chip 200 sends the exchanged data to the second lower-level management unit.
基于上述技术方案,本实施例通过配置交换芯片200来划分内网络地址和外网络地址,并将内网络地址或者外网络地址转发至上级管理单元100或者下级管理单元300,实现了内网地址的交互,且下级管理单元300中的网络端口具有网络静态地址和动态地址的混杂模式,通过该混杂模式达到一个下级管理单元300的网络端口可以同时支持外网地址和内网地址,降低了成本。Based on the above technical solution, this embodiment divides the internal network address and the external network address by configuring the switching chip 200, and forwards the internal network address or the external network address to the upper-level management unit 100 or the lower-level management unit 300, thereby realizing the internal network address. Interaction, and the network port in the lower management unit 300 has a mixed mode of network static address and dynamic address. Through this mixed mode, a network port of the lower management unit 300 can support external network address and internal network address at the same time, reducing the cost.
可选地,为了提高网络地址类型确定的效率和准确性,交换芯片200还用于根据网络地址的标识信息确定是外网络地址还是内网络地址。Optionally, in order to improve the efficiency and accuracy of determining the network address type, the switch chip 200 is further configured to determine whether it is an external network address or an internal network address according to identification information of the network address.
本实施例中交换芯片200可以通过网络地址的标识信息识别内外网络地址。每次分配网络地址时通过标识信息来标记网络地址是内网络地址还是外网络地址,通过标识信息能够提高网络地址类型确定的效率和准确性。例如,对内网络地址设置标识信息a,对外网络地址设置标识信息b,交换芯片200接收到网络地址后,先读取标识信息,如果标识信息是a,则确定该网络地址为内网络地址,如果标识信息是b,则确定该网络地址为外网络地址,如果标识信息是c,则要求重新获取网络地址。可见,本实施例通过标识信息来标记网络地址是内网络地址还是外网络地址,通过标识信息能够提高网络地址类型确定的效率和准确性。In this embodiment, the switch chip 200 can identify internal and external network addresses through identification information of network addresses. Each time the network address is allocated, the identification information is used to mark whether the network address is an internal network address or an external network address, and the identification information can improve the efficiency and accuracy of determining the network address type. For example, the identification information a is set for the internal network address, and the identification information b is set for the external network address. After the switch chip 200 receives the network address, it first reads the identification information. If the identification information is a, then it is determined that the network address is an internal network address. If the identification information is b, it is determined that the network address is an external network address, and if the identification information is c, it is required to obtain the network address again. It can be seen that in this embodiment, the identification information is used to mark whether the network address is an internal network address or an external network address, and the identification information can improve the efficiency and accuracy of network address type determination.
可选地,交换芯片200还用于通过DHCP获取网络地址。Optionally, the switch chip 200 is also used to obtain a network address through DHCP.
其中,DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)服务器分配网络地址,并且确保分配给每个管理单元的地址不同,DHCP服务器极大地简化了以前需要用手工来完成的一些网络管理任务,提高了管理效率。交换芯片200通过DHCP从DHCP服务器得到分配的网络地址,该网络地址可以是固定地址还可以是动态变化地址,可根据实际情况设定。Among them, the DHCP (Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol) server assigns network addresses and ensures that the addresses assigned to each management unit are different. The DHCP server greatly simplifies some network management tasks that previously needed to be done manually, and improves management efficiency. The switch chip 200 obtains a network address allocated from a DHCP server through DHCP. The network address can be a fixed address or a dynamically changing address, which can be set according to actual conditions.
可选地,上级管理单元100与下级管理单元300通过内网络地址进行数据交互。当交换芯片200接收到上级管理单元100对下级管理单元300的交 换数据后,交换芯片200将该交换数据发送至下级管理单元300;同样的,当交换芯片200接收到第一下级管理单元对第二下级管理单元的交换数据后,交换芯片200将该交换数据发送至第二下级管理单元。Optionally, the upper-level management unit 100 and the lower-level management unit 300 perform data interaction through an internal network address. After the switch chip 200 receives the exchange data from the upper-level management unit 100 to the lower-level management unit 300, the switch chip 200 sends the exchange data to the lower-level management unit 300; After the exchange data of the second lower-level management unit, the switch chip 200 sends the exchange data to the second lower-level management unit.
在另一种可实现的实施方式中,上级管理单元100还可以直接与下级管理单元300通过网络端口进行数据交互,具体的,本实施例不再进行赘述。In another implementable manner, the upper-level management unit 100 may also directly perform data interaction with the lower-level management unit 300 through a network port. Specifically, details will not be described in this embodiment.
基于上述任一实施例,为了保证高效率进行地址转发操作,交换芯片的数量大于1,且每一个交换芯片均与上级管理单元以及下级管理单元通信连接。Based on any of the above embodiments, in order to ensure high-efficiency address forwarding operations, the number of switch chips is greater than 1, and each switch chip is communicatively connected with the upper-level management unit and the lower-level management unit.
以两个交换芯片为例,请参考图7,图7为本申请实施例提供的另一种多节点服务器的结构示意图,包括多个交换芯片,且每个交换芯片均可实现网络地址转发的功能,提高了转发的效率。Taking two switch chips as an example, please refer to FIG. 7. FIG. 7 is a schematic structural diagram of another multi-node server provided in the embodiment of the present application, including multiple switch chips, and each switch chip can implement network address forwarding function, improving the forwarding efficiency.
在一种可实现的实施方式中,交换芯片还用于当确定交换芯片本身发生故障时,切换至备用交换芯片,并利用备用交换芯片继续执行交互过程。确定一个交换芯片为主交换芯片,另一交换芯片为备用交换芯片,当主交换芯片故障后,采用备交换芯片更新为主交换芯片继续工作,保证工作正常进行,提高了转发的可靠性以及转发效率。In a practicable implementation manner, the switch chip is further configured to switch to a standby switch chip when it is determined that the switch chip itself fails, and use the standby switch chip to continue executing the interaction process. Determine one switching chip as the main switching chip, and the other switching chip as the backup switching chip. When the main switching chip fails, use the backup switching chip to update the main switching chip to continue working to ensure normal work and improve the reliability and efficiency of forwarding. .
在另一种可实现的实施方式中,交换芯片还用于当接收到多个上级管理单元下发的多个网络地址后,根据各个从交换芯片的工作状态以及自身的工作状态,确定参与转发的网络地址的交换芯片,控制对应的交换芯片执行交互过程。具体的,确定当前交换芯片为主交换芯片,其他交换芯片为从交换芯片,且各个交换芯片实时上传工作状态至主交换芯片,当接收到多个上级管理单元下发的多个网络地址后,主交换芯片根据各个从交换芯片的工作状态以及自身的工作状态确定参与转发的网络地址,控制对应的从交换芯片执行转发操作。实现了多个交换芯片参与转发网络地址,提高了转发效率。In another practicable implementation, the switch chip is also used to determine to participate in forwarding according to the working status of each slave switching chip and its own working status after receiving multiple network addresses issued by multiple upper-level management units. The switch chip with the network address controls the corresponding switch chip to execute the interaction process. Specifically, it is determined that the current switch chip is the master switch chip, and other switch chips are slave switch chips, and each switch chip uploads the working status to the master switch chip in real time. After receiving multiple network addresses issued by multiple upper-level management units, The master switch chip determines the network address participating in the forwarding according to the working status of each slave switch chip and its own working status, and controls the corresponding slave switch chip to perform the forwarding operation. It realizes that multiple switching chips participate in the forwarding of network addresses, which improves the forwarding efficiency.
基于上述任一实施例,本实施例提供一种具体的多节点服务器,具体请参考图2,图2为本申请实施例提供的另一种多节点服务器的结构示意图,其中,实线表示外网络传输,虚线表示内网络传输。多节点服务器中的管理单元利用网络交换芯片进行互联。通过配置交换芯片来划分内外网络;下级管 理单元支持网络静态地址和动态地址混杂模式;上级管理单元和各个下级管理单元之间通过内网交互;对外通过DHCP获取网络地址,提供管理功能。以下级管理单元网络端口(eth0)在配置网络静态地址和动态地址的混杂模式下是可以进行网络交互,例如,BMC1的内网络地址是192.168.0.113;外网络地址是:100.2.76.128;BMC2的内网络地址是192.168.0.112;外网络地址是:100.2.76.31。Based on any of the above embodiments, this embodiment provides a specific multi-node server. For details, please refer to FIG. 2. FIG. Network transmission, dotted line indicates internal network transmission. The management units in the multi-node server are interconnected by using network switching chips. The internal and external networks are divided by configuring switching chips; the lower-level management unit supports network static address and dynamic address mixed mode; the upper-level management unit and each lower-level management unit interact through the internal network; externally obtain network addresses through DHCP to provide management functions. The network port (eth0) of the lower-level management unit can perform network interaction in the mixed mode of configuring network static addresses and dynamic addresses. For example, the internal network address of BMC1 is 192.168.0.113; the external network address is: 100.2.76.128; The internal network address is 192.168.0.112; the external network address is: 100.2.76.31.
可见,本实施例提供的一种新型多节点服务器上多级管理单元间交互方式,基于增加网络交换芯片,来进行数据网络隔离和交换,多级管理单元间(包括上级管理单元和下级管理单元)借助网络混合模式达到一个网络端口可以支持内网络地址和外网络地址,依托交换芯片达到对内数据交互和对外管理网络。针对内部管理单元间交互采用内网络地址进行数据交互,对外端口将对外网络数据进行转发给各个管理单元,从而达到下级管理单元可以通过DHCP获取到对外网络地址,对外提供网络服务。It can be seen that the interaction mode between multi-level management units on a new multi-node server provided by this embodiment is based on adding a network switching chip to perform data network isolation and exchange. Between multi-level management units (including upper-level management units and lower-level management units) ) With the help of network hybrid mode, one network port can support internal network address and external network address, and rely on the switching chip to achieve internal data interaction and external management network. For the interaction between internal management units, the internal network address is used for data exchange, and the external port forwards the external network data to each management unit, so that the lower-level management units can obtain the external network address through DHCP and provide external network services.
相关技术中采用的是SMC与BMC通过网络交互,BMC不能通过一个网口实现通过内网与SMC及其他BMC进行数据交互,以及通过外网络地址对外提供管理服务,因此,需要BMC提供额外的网络端口来对外获取网络地址,成本较高。In the related technology, the SMC and BMC interact through the network. The BMC cannot exchange data with the SMC and other BMCs through the internal network through a network port, and provide external management services through the external network address. Therefore, the BMC needs to provide an additional network. The port is used to obtain the network address externally, and the cost is relatively high.
基于上述技术问题,本申请提供一种交互方法,请参考图3,图3为本申请实施例提供的一种交互方法的流程图,具体包括:Based on the above technical problems, this application provides an interaction method, please refer to Figure 3, Figure 3 is a flow chart of an interaction method provided by an embodiment of this application, specifically including:
S301、获取网络地址;S301. Obtain a network address;
本实施例应用于多节点服务器,该多节点服务器包括:上级管理单元、与上级管理单元连接的交换芯片、与交换芯片连接的多个下级管理单元;下级管理单元具有网络静态地址和动态地址的混杂模式的网络端口。This embodiment is applied to a multi-node server, and the multi-node server includes: an upper-level management unit, a switch chip connected to the upper-level management unit, and a plurality of lower-level management units connected to the switch chip; the lower-level management unit has a network static address and a dynamic address. Network ports in promiscuous mode.
S302、将网络地址转发至上级管理单元或下级管理单元;网络地址为内网络地址或外网络地址;下级管理单元通过网络静态地址和动态地址的混杂模式的网络端口接收网络地址。S302. Forward the network address to the upper-level management unit or the lower-level management unit; the network address is an internal network address or an external network address; the lower-level management unit receives the network address through a network port in a mixed mode of network static addresses and dynamic addresses.
基于上述技术方案,本实施例通过配置交换芯片来划分内网络地址和外网络地址,并将内网络地址或者外网络地址转发至上级管理单元或者下级管理单元,实现了内网地址的交互,且下级管理单元中的网络端口具有网络静 态地址和动态地址的混杂模式,通过该混杂模式达到一个下级管理单元的网络端口可以同时支持外网地址和内网地址,降低了成本。Based on the above technical solution, this embodiment divides the internal network address and the external network address by configuring the switching chip, and forwards the internal network address or the external network address to the upper-level management unit or the lower-level management unit, realizing the interaction of the internal network address, and The network port in the lower-level management unit has a mixed mode of network static address and dynamic address. Through this mixed mode, the network port of a lower-level management unit can support external network address and internal network address at the same time, which reduces the cost.
可选地,获取网络地址,包括:通过DHCP获取网络地址。Optionally, obtaining the network address includes: obtaining the network address through DHCP.
DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)服务器分配网络地址,并且确保分配给每个管理单元的地址不同,DHCP服务器极大地简化了网络管理任务的管理效率。通过DHCP从DHCP服务器得到分配的网络地址,该网络地址可以是固定地址还可以是动态变化地址,可根据实际情况设定。The DHCP (Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol) server assigns network addresses and ensures that the addresses assigned to each management unit are different. The DHCP server greatly simplifies the management efficiency of network management tasks. Obtain the network address allocated from the DHCP server through DHCP. The network address can be a fixed address or a dynamically changing address, which can be set according to the actual situation.
可选地,获取网络地址之后,还包括:根据网络地址的标识信息确定是外网络地址还是内网络地址。Optionally, after acquiring the network address, the method further includes: determining whether it is an external network address or an internal network address according to identification information of the network address.
本实施例通过网络地址的标识信息识别内外网络地址。每次分配网络地址时通过标识信息来标记网络地址是内网络地址还是外网络地址,通过标识信息能够提高网络地址类型确定的效率和准确性。例如,对内网络地址设置标识信息a,对外网络地址设置标识信息b,交换芯片200接收到网络地址后,先读取标识信息,如果标识信息是a,则确定该网络地址为内网络地址,如果标识信息是b,则确定该网络地址为外网络地址,如果标识信息是c,则要求重新获取网络地址。可见,本实施例通过标识信息来标记网络地址是内网络地址还是外网络地址,通过标识信息能够提高网络地址类型确定的效率和准确性。In this embodiment, internal and external network addresses are identified through identification information of network addresses. Each time the network address is allocated, the identification information is used to mark whether the network address is an internal network address or an external network address, and the identification information can improve the efficiency and accuracy of determining the network address type. For example, the identification information a is set for the internal network address, and the identification information b is set for the external network address. After the switch chip 200 receives the network address, it first reads the identification information. If the identification information is a, then it is determined that the network address is an internal network address. If the identification information is b, it is determined that the network address is an external network address, and if the identification information is c, it is required to obtain the network address again. It can be seen that in this embodiment, the identification information is used to mark whether the network address is an internal network address or an external network address, and the identification information can improve the efficiency and accuracy of network address type determination.
由于方法部分的实施例与多节点服务器部分的实施例相互对应,因此方法部分的实施例请参见多节点服务器部分的实施例的描述,这里暂不赘述。Since the embodiment of the method part corresponds to the embodiment of the multi-node server part, please refer to the description of the embodiment of the multi-node server part for the embodiment of the method part, and details will not be repeated here.
基于上述任一实施例,为了保证网络地址转发的可靠性,将网络地址转发至上级管理单元或下级管理单元,包括:校验网络地址的格式是否符合设定规范;若网络地址的格式符合设定规范,则将网络地址转发至上级管理单元或下级管理单元。Based on any of the above embodiments, in order to ensure the reliability of network address forwarding, forwarding the network address to the upper-level management unit or the lower-level management unit includes: checking whether the format of the network address conforms to the setting specification; if the format of the network address conforms to the setting If the specification is specified, the network address is forwarded to the upper-level management unit or lower-level management unit.
其中设定规范包括但是不限定于符合规定的网址格式,或者能够访问的设定网址的格式,只要当符合设定规范时,才能确定该网址上级管理单元或者下级管理单元能够访问,保证了访问的可靠性。The setting specification includes but is not limited to the format of the URL that complies with the regulations, or the format of the setup URL that can be accessed. Only when the setting specification is met can it be determined that the URL can be accessed by the upper-level management unit or the lower-level management unit, and the access is guaranteed. reliability.
基于上述任一实施例,为了避免出现访问风险的情况发生,将网络地址转发至上级管理单元或下级管理单元之前,还包括:判断网络地址在预设时间段内的转发频次是否大于预设频次;若网络地址在预设时间段内的转发频次大于预设频次,则确定为风险网址,并提示用户;若网络地址在预设时间段内的转发频次不大于预设频次,则执行将网络地址转发至上级管理单元或下级管理单元的步骤。Based on any of the above embodiments, in order to avoid the occurrence of access risks, before forwarding the network address to the upper-level management unit or the lower-level management unit, it also includes: judging whether the forwarding frequency of the network address within the preset time period is greater than the preset frequency ; If the forwarding frequency of the network address within the preset time period is greater than the preset frequency, it will be determined as a risky website, and the user will be prompted; if the forwarding frequency of the network address within the preset time period is not greater than the preset frequency, the network will be executed Steps for forwarding addresses to upper-level management units or lower-level management units.
可以理解的是,当同一网络网址在设定时间段内高频次的转发,可能该网络地址的访问存在风险,因此,当网络地址在预设时间段内的转发频次大于预设频次,确定为风险网址,并提示用户,以便用户进行人工确定与检查,避免风险网址被频繁访问造成的数据丢失或者管理单元被攻击的情况的发生。It is understandable that when the same network URL is forwarded frequently within a set time period, there may be risks in accessing the network address. Therefore, when the forwarding frequency of a network address within a preset time period is greater than the preset frequency, it is determined It is a risky URL, and prompts the user, so that the user can manually determine and check, and avoid data loss caused by frequent access to the risky URL or the occurrence of the management unit being attacked.
基于上述任一实施例,为了保证高效率进行地址转发操作,交换芯片的数量大于1,且每一个交换芯片均与上级管理单元以及下级管理单元通信连接。Based on any of the above embodiments, in order to ensure high-efficiency address forwarding operations, the number of switch chips is greater than 1, and each switch chip is communicatively connected with the upper-level management unit and the lower-level management unit.
在一种可实现的实施方式中,还包括:当确定交换芯片本身发生故障时,切换至备用交换芯片,并利用备用交换芯片继续执行交互过程。确定一个交换芯片为主交换芯片,另一交换芯片为备用交换芯片,当主交换芯片故障后,采用备交换芯片更新为主交换芯片继续工作,保证工作正常进行,提高了转发的可靠性以及转发效率。In a practicable implementation manner, the method further includes: when it is determined that the switch chip itself fails, switching to the standby switch chip, and using the standby switch chip to continue the interaction process. Determine one switching chip as the main switching chip, and the other switching chip as the backup switching chip. When the main switching chip fails, use the backup switching chip to update the main switching chip to continue working to ensure normal work and improve the reliability and efficiency of forwarding. .
在另一种可实现的实施方式中,还包括:In another possible implementation, it also includes:
当接收到多个上级管理单元下发的多个网络地址后,根据各个从交换芯片的工作状态以及自身的工作状态,确定参与转发的网络地址的交换芯片,控制对应的交换芯片执行交互过程。具体的,确定当前交换芯片为主交换芯片,其他交换芯片为从交换芯片,且各个交换芯片实时上传工作状态至主交换芯片,当接收到多个上级管理单元下发的多个网络地址后,主交换芯片根据各个从交换芯片的工作状态以及自身的工作状态确定参与转发的网络地址,控制对应的从交换芯片执行转发操作。实现了多个交换芯片参与转发网络地址,提高了转发效率。After receiving multiple network addresses issued by multiple upper-level management units, according to the working status of each slave switching chip and its own working status, determine the switching chip that participates in forwarding the network address, and control the corresponding switching chip to perform the interaction process. Specifically, it is determined that the current switch chip is the master switch chip, and other switch chips are slave switch chips, and each switch chip uploads the working status to the master switch chip in real time. After receiving multiple network addresses issued by multiple upper-level management units, The master switch chip determines the network address participating in the forwarding according to the working status of each slave switch chip and its own working status, and controls the corresponding slave switch chip to perform the forwarding operation. It realizes that multiple switching chips participate in the forwarding of network addresses, which improves the forwarding efficiency.
下面对本申请实施例提供的一种交互装置进行介绍,下文描述的交互装置与上文描述的交互方法可相互对应参照,相关模块均设置于交换芯片中,参考图4,图4为本申请实施例提供的一种交互装置的结构示意图,包括:The following is an introduction to an interaction device provided by the embodiment of the present application. The interaction device described below and the interaction method described above can be referred to each other. The relevant modules are all set in the switching chip. Refer to Figure 4, which is the implementation A schematic structural diagram of an interactive device provided as an example, including:
获取模块401,用于获取网络地址;Obtaining module 401, configured to obtain a network address;
转发模块402,用于将网络地址转发至上级管理单元或下级管理单元;网络地址为内网络地址或外网络地址;下级管理单元通过网络静态地址和动态地址的混杂模式的网络端口接收网络地址。The forwarding module 402 is used to forward the network address to the upper-level management unit or the lower-level management unit; the network address is an internal network address or an external network address; the lower-level management unit receives the network address through a network port in a mixed mode of network static address and dynamic address.
基于上述技术方案,本实施例通过配置交换芯片来划分内网络地址和外网络地址,并将内网络地址或者外网络地址转发至上级管理单元或者下级管理单元,实现了内网地址的交互,且下级管理单元中的网络端口具有网络静态地址和动态地址的混杂模式,通过该混杂模式达到一个下级管理单元的网络端口可以同时支持外网地址和内网地址,降低了成本。Based on the above technical solution, this embodiment divides the internal network address and the external network address by configuring the switching chip, and forwards the internal network address or the external network address to the upper-level management unit or the lower-level management unit, realizing the interaction of the internal network address, and The network port in the lower-level management unit has a mixed mode of network static address and dynamic address. Through this mixed mode, the network port of a lower-level management unit can support external network address and internal network address at the same time, which reduces the cost.
可选地,转发模块402,包括:Optionally, the forwarding module 402 includes:
校验单元,用于校验所述网络地址的格式是否符合设定规范;A verification unit, configured to verify whether the format of the network address complies with the set specification;
转发单元,用于若所述网络地址的格式符合所述设定规范,则将所述网络地址转发至上级管理单元或下级管理单元。A forwarding unit, configured to forward the network address to an upper-level management unit or a lower-level management unit if the format of the network address conforms to the setting specification.
可选地,还包括:Optionally, also include:
判断模块,用于判断所述网络地址在预设时间段内的转发频次是否大于预设频次;A judging module, configured to judge whether the forwarding frequency of the network address within the preset time period is greater than the preset frequency;
提示模块,用于若所述网络地址在预设时间段内的转发频次大于所述预设频次,则确定为风险网址,并提示用户;A prompting module, configured to determine that the network address is a risky website and prompt the user if the forwarding frequency of the network address within the preset time period is greater than the preset frequency;
执行模块,用于若所述网络地址在预设时间段内的转发频次不大于所述预设频次,则执行所述将所述网络地址转发至上级管理单元或下级管理单元的步骤。An executing module, configured to execute the step of forwarding the network address to an upper-level management unit or a lower-level management unit if the forwarding frequency of the network address within a preset time period is not greater than the preset frequency.
可选地,还包括:Optionally, also include:
识别模块,用于根据网络地址的标识信息确定是外网络地址还是内网络地址。The identification module is used to determine whether it is an external network address or an internal network address according to the identification information of the network address.
可选地,还包括:Optionally, also include:
切换模块,用于当确定所述交换芯片本身发生故障时,切换至备用交换芯片,并利用所述备用交换芯片继续执行交互过程。The switch module is configured to switch to a standby switch chip when it is determined that the switch chip itself fails, and use the standby switch chip to continue the interaction process.
可选地,还包括:Optionally, also include:
分配模块,用于当接收到多个所述上级管理单元下发的多个所述网络地址后,根据各个从交换芯片的工作状态以及自身的工作状态,确定参与转发的网络地址的交换芯片,控制对应的交换芯片执行交互过程。The allocation module is configured to determine the switching chip that participates in forwarding the network address according to the working status of each slave switching chip and its own working status after receiving multiple network addresses issued by the multiple upper management units, Control the corresponding switching chip to execute the interaction process.
由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiment of the device part corresponds to the embodiment of the method part, please refer to the description of the embodiment of the method part for the embodiment of the device part, and details will not be repeated here.
下面对本申请实施例提供的一种交换芯片进行介绍,下文描述的交换芯片与上文描述的方法可相互对应参照。A switch chip provided by an embodiment of the present application is introduced below, and the switch chip described below and the method described above may be referred to in correspondence.
本申请还提供了一种交换芯片,参见图5所示,图5为本申请实施例提供的一种交换芯片的结构示意图,包括:The present application also provides a switch chip, as shown in FIG. 5, which is a schematic structural diagram of a switch chip provided in an embodiment of the present application, including:
存储器501,用于存储计算机程序; Memory 501, for storing computer programs;
处理器502,用于执行计算机程序时实现如上述交互方法的步骤。The processor 502 is configured to implement the steps of the above-mentioned interaction method when executing the computer program.
存储器501包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机可读指令,该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。处理器502为交换芯片提供计算和控制能力,执行存储器501中保存的计算机程序时,可以实现以下步骤:获取网络地址;将网络地址转发至上级管理单元或下级管理单元;网络地址为内网络地址或外网络地址;下级管理单元通过网络静态地址和动态地址的混杂模式的网络端口接收网络地址。The memory 501 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The processor 502 provides computing and control capabilities for the switching chip. When executing the computer program stored in the memory 501, the following steps can be implemented: obtaining the network address; forwarding the network address to the upper-level management unit or the lower-level management unit; the network address is an internal network address or an external network address; the lower-level management unit receives the network address through the network port in the mixed mode of the network static address and the dynamic address.
基于上述技术方案,本实施例通过配置交换芯片来划分内网络地址和外网络地址,并将内网络地址或者外网络地址转发至上级管理单元或者下级管理单元,实现了内网地址的交互,且下级管理单元中的网络端口具有网络静态地址和动态地址的混杂模式,通过该混杂模式达到一个下级管理单元的网络端口可以同时支持外网地址和内网地址,降低了成本。Based on the above technical solution, this embodiment divides the internal network address and the external network address by configuring the switching chip, and forwards the internal network address or the external network address to the upper-level management unit or the lower-level management unit, realizing the interaction of the internal network address, and The network port in the lower-level management unit has a mixed mode of network static address and dynamic address. Through this mixed mode, the network port of a lower-level management unit can support external network address and internal network address at the same time, which reduces the cost.
在一些具体的实施例中,处理器502执行存储器501中保存的计算机子程序时,可以实现以下步骤:校验网络地址的格式是否符合设定规范;若网络地址的格式符合设定规范,则将网络地址转发至上级管理单元或下级管理单元。In some specific embodiments, when the processor 502 executes the computer subroutine stored in the memory 501, the following steps can be implemented: check whether the format of the network address conforms to the set specification; if the format of the network address conforms to the set specification, then Forwards network addresses to upper-level management units or lower-level management units.
在一些具体的实施例中,处理器502执行存储器501中保存的计算机子程序时,可以实现以下步骤:判断网络地址在预设时间段内的转发频次是否大于预设频次;若网络地址在预设时间段内的转发频次大于预设频次,则确定为风险网址,并提示用户;若网络地址在预设时间段内的转发频次不大于预设频次,则执行将网络地址转发至上级管理单元或下级管理单元的步骤。In some specific embodiments, when the processor 502 executes the computer subroutine stored in the memory 501, the following steps can be implemented: judging whether the forwarding frequency of the network address within the preset time period is greater than the preset frequency; If the forwarding frequency within the preset time period is greater than the preset frequency, it will be determined as a risky website, and the user will be prompted; if the forwarding frequency of the network address within the preset time period is not greater than the preset frequency, the network address will be forwarded to the upper management unit or the steps of the subordinate snap-in.
在一些具体的实施例中,处理器502执行存储器501中保存的计算机子程序时,可以实现以下步骤:获取网络地址之后,还包括:根据网络地址的标识信息确定是外网络地址还是内网络地址。In some specific embodiments, when the processor 502 executes the computer subroutine stored in the memory 501, the following steps can be implemented: after obtaining the network address, it also includes: determining whether it is an external network address or an internal network address according to the identification information of the network address .
在一些具体的实施例中,处理器502执行存储器501中保存的计算机子程序时,可以实现以下步骤:当确定交换芯片本身发生故障时,切换至备用交换芯片,并利用备用交换芯片继续执行交互过程。In some specific embodiments, when the processor 502 executes the computer subroutine stored in the memory 501, the following steps can be implemented: when it is determined that the switch chip itself fails, switch to the standby switch chip, and use the standby switch chip to continue to perform interactive operations. process.
在一些具体的实施例中,处理器502执行存储器501中保存的计算机子程序时,可以实现以下步骤:当接收到多个上级管理单元下发的多个网络地址后,根据各个从交换芯片的工作状态以及自身的工作状态,确定参与转发的网络地址的交换芯片,控制对应的交换芯片执行交互过程。In some specific embodiments, when the processor 502 executes the computer subroutine stored in the memory 501, the following steps can be implemented: after receiving multiple network addresses issued by multiple upper-level management units, according to each slave switch chip The working status and its own working status determine the switching chip participating in the forwarding network address, and control the corresponding switching chip to execute the interaction process.
在上述实施例的基础上,作为可选实施方式,参见图6,图6为本申请实施例提供的另一种交换芯片的结构图,该交换芯片还包括:On the basis of the above-mentioned embodiments, as an optional implementation manner, refer to FIG. 6, which is a structural diagram of another switching chip provided in the embodiment of the present application. The switching chip also includes:
输入接口503,与处理器502相连,用于获取外部导入的计算机程序、参数和指令,经处理器502控制保存至存储器501中。该输入接口503可以与输入装置相连,接收用户手动输入的参数或指令。该输入装置可以是显示屏上覆盖的触摸层,也可以是终端外壳上设置的按键、轨迹球或触控板,也可以是键盘、触控板或鼠标等。The input interface 503 is connected with the processor 502 and is used for acquiring externally imported computer programs, parameters and instructions, which are controlled by the processor 502 and stored in the memory 501 . The input interface 503 may be connected with an input device to receive parameters or instructions manually input by the user. The input device may be a touch layer covered on the display screen, or may be a button, a trackball or a touch pad provided on the terminal shell, or may be a keyboard, a touch pad, or a mouse.
显示单元504,与处理器502相连,用于显示处理器502发送的数据。该显示单元504可以为PC机(Personal Computer,个人计算机)上的显示屏、液晶显示屏或者电子墨水显示屏等。The display unit 504 is connected to the processor 502 and configured to display data sent by the processor 502 . The display unit 504 may be a display screen on a PC (Personal Computer, personal computer), a liquid crystal display, or an electronic ink display.
网络端口505,与处理器502相连,用于与外部各终端设备进行通信连接。该通信连接所采用的通信技术可以为有线通信技术或无线通信技术,如移动高清链接技术(Mobile High-Definition Link,MHL)、通用串行总线(Universal Serial Bus,USB)、高清多媒体接口(High Definition Multimedia Interface, HDMI)、无线保真技术(WiFi)、蓝牙通信技术、低功耗蓝牙通信技术、基于IEEE802.11s的通信技术等。The network port 505 is connected with the processor 502 and is used for communicating with various external terminal devices. The communication technology used in the communication connection can be wired communication technology or wireless communication technology, such as mobile high-definition link technology (Mobile High-Definition Link, MHL), universal serial bus (Universal Serial Bus, USB), high-definition multimedia interface (High-Definition Definition Multimedia Interface, HDMI), wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, communication technology based on IEEE802.11s, etc.
由于交换芯片部分的实施例与方法部分的实施例相互对应,因此交换芯片部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiments of the switch chip part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the switch chip part, and details will not be repeated here.
下面对本申请实施例提供的一种计算机可读存储介质进行介绍,下文描述的计算机可读存储介质与上文描述的方法可相互对应参照。A computer-readable storage medium provided by an embodiment of the present application is introduced below, and the computer-readable storage medium described below and the method described above may refer to each other correspondingly.
本申请提供了一种计算机可读存储介质,请参考图8,图8为本申请实施例提供的一种计算机可读存储介质的结构示意图,计算机可读存储介质60上存储有计算机程序610,计算机程序610被处理器执行时实现如上交互方法的步骤。The present application provides a computer-readable storage medium. Please refer to FIG. 8 . FIG. 8 is a schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present application. A computer program 610 is stored on the computer-readable storage medium 60 . When the computer program 610 is executed by the processor, the above steps of the interactive method are implemented.
基于上述技术方案,本实施例通过配置交换芯片来划分内网络地址和外网络地址,并将内网络地址或者外网络地址转发至上级管理单元或者下级管理单元,实现了内网地址的交互,且下级管理单元中的网络端口具有网络静态地址和动态地址的混杂模式,通过该混杂模式达到一个下级管理单元的网络端口可以同时支持外网地址和内网地址,降低了成本。Based on the above technical solution, this embodiment divides the internal network address and the external network address by configuring the switching chip, and forwards the internal network address or the external network address to the upper-level management unit or the lower-level management unit, realizing the interaction of the internal network address, and The network port in the lower-level management unit has a mixed mode of network static address and dynamic address. Through this mixed mode, the network port of a lower-level management unit can support external network address and internal network address at the same time, which reduces the cost.
由于计算机可读存储介质部分的实施例与方法部分的实施例相互对应,因此计算机可读存储介质部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiments of the computer-readable storage medium part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the computer-readable storage medium part, and details will not be repeated here.
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本 申请的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. A skilled artisan may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
以上对本申请所提供的一种多节点服务器、交互方法、装置、交换芯片和介质进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。The above describes in detail the multi-node server, interaction method, device, switching chip and medium provided by the present application. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application, and the descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. It should be pointed out that those skilled in the art can make some improvements and modifications to the application without departing from the principles of the application, and these improvements and modifications also fall within the protection scope of the claims of the application.

Claims (10)

  1. 一种交互方法,其特征在于,应用于交换芯片,包括:An interactive method, characterized in that it is applied to a switching chip, comprising:
    获取网络地址;Get the network address;
    将所述网络地址转发至上级管理单元或下级管理单元;所述网络地址为内网络地址或外网络地址;所述下级管理单元通过网络静态地址和动态地址的混杂模式的网络端口接收所述网络地址。The network address is forwarded to the upper-level management unit or the lower-level management unit; the network address is an internal network address or an external network address; the lower-level management unit receives the network through a network port in a mixed mode of a network static address and a dynamic address. address.
  2. 根据权利要求1所述的交互方法,其特征在于,所述将所述网络地址转发至上级管理单元或下级管理单元,包括:The interaction method according to claim 1, wherein the forwarding the network address to the upper-level management unit or the lower-level management unit comprises:
    校验所述网络地址的格式是否符合设定规范;Verifying whether the format of the network address complies with the set specification;
    若所述网络地址的格式符合所述设定规范,则将所述网络地址转发至上级管理单元或下级管理单元。If the format of the network address conforms to the setting specification, forward the network address to the upper-level management unit or the lower-level management unit.
  3. 根据权利要求1所述的交互方法,其特征在于,所述将所述网络地址转发至上级管理单元或下级管理单元之前,还包括:The interaction method according to claim 1, wherein before forwarding the network address to the upper-level management unit or the lower-level management unit, further comprising:
    判断所述网络地址在预设时间段内的转发频次是否大于预设频次;judging whether the forwarding frequency of the network address within the preset time period is greater than the preset frequency;
    若所述网络地址在预设时间段内的转发频次大于所述预设频次,则确定为风险网址,并提示用户;If the forwarding frequency of the network address within the preset time period is greater than the preset frequency, determine it as a risky website and prompt the user;
    若所述网络地址在预设时间段内的转发频次不大于所述预设频次,则执行所述将所述网络地址转发至上级管理单元或下级管理单元的步骤。If the forwarding frequency of the network address within a preset period of time is not greater than the preset frequency, the step of forwarding the network address to an upper-level management unit or a lower-level management unit is performed.
  4. 根据权利要求1所述的交互方法,其特征在于,所述获取网络地址之后,还包括:The interaction method according to claim 1, characterized in that, after obtaining the network address, further comprising:
    根据所述网络地址的标识信息确定是所述外网络地址还是所述内网络地址。Determine whether it is the external network address or the internal network address according to the identification information of the network address.
  5. 根据权利要求1所述的交互方法,其特征在于,还包括:The interaction method according to claim 1, further comprising:
    当确定所述交换芯片本身发生故障时,切换至备用交换芯片,并利用所述备用交换芯片继续执行交互过程。When it is determined that the switch chip itself fails, switch to the standby switch chip, and use the standby switch chip to continue the interaction process.
  6. 根据权利要求1所述的交互方法,其特征在于,还包括:The interaction method according to claim 1, further comprising:
    当接收到多个所述上级管理单元下发的多个所述网络地址后,根据各个从交换芯片的工作状态以及自身的工作状态,确定参与转发的网络地址的交换芯片,控制对应的交换芯片执行交互过程。After receiving multiple network addresses issued by multiple superior management units, according to the working status of each slave switching chip and its own working status, determine the switching chip that participates in forwarding the network address, and control the corresponding switching chip Execute the interactive process.
  7. 一种交互装置,其特征在于,包括:An interactive device, characterized in that it comprises:
    获取模块,用于获取网络地址;Obtaining a module for obtaining a network address;
    转发模块,用于将所述网络地址转发至上级管理单元或下级管理单元;所述网络地址为内网络地址或外网络地址;所述下级管理单元通过网络静态地址和动态地址的混杂模式的网络端口接收所述网络地址。A forwarding module, configured to forward the network address to a superior management unit or a lower management unit; the network address is an internal network address or an external network address; The port receives the network address.
  8. 一种交换芯片,其特征在于,包括:A kind of exchange chip is characterized in that, comprises:
    存储器,用于存储计算机程序;memory for storing computer programs;
    处理器,用于执行所述计算机程序时实现如权利要求1至6任一项所述交互方法的步骤。A processor, configured to implement the steps of the interaction method according to any one of claims 1 to 6 when executing the computer program.
  9. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述交互方法的步骤。A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the interaction method according to any one of claims 1 to 6 are realized .
  10. 一种多节点服务器,其特征在于,包括:A multi-node server is characterized in that it comprises:
    上级管理单元、与所述上级管理单元连接的如权利要求8所述的交换芯片、与所述交换芯片连接的多个下级管理单元;所述下级管理单元具有网络静态地址和动态地址的混杂模式的网络端口;The upper-level management unit, the switch chip according to claim 8 connected to the upper-level management unit, and a plurality of lower-level management units connected to the switch chip; the lower-level management unit has a mixed mode of network static address and dynamic address network port;
    所述下级管理单元,用于利用所述网络端口接收所述交换芯片发送的所述网络地址。The lower-level management unit is configured to use the network port to receive the network address sent by the switch chip.
PCT/CN2022/089736 2021-05-27 2022-04-28 Interaction method and apparatus, and switching chip, medium and multi-node server WO2022247575A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110583329.5A CN113329104A (en) 2021-05-27 2021-05-27 Multi-node server, interaction method, device, exchange chip and medium
CN202110583329.5 2021-05-27

Publications (1)

Publication Number Publication Date
WO2022247575A1 true WO2022247575A1 (en) 2022-12-01

Family

ID=77421621

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/089736 WO2022247575A1 (en) 2021-05-27 2022-04-28 Interaction method and apparatus, and switching chip, medium and multi-node server

Country Status (2)

Country Link
CN (1) CN113329104A (en)
WO (1) WO2022247575A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329104A (en) * 2021-05-27 2021-08-31 山东英信计算机技术有限公司 Multi-node server, interaction method, device, exchange chip and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469168A (en) * 2010-11-01 2012-05-23 英业达股份有限公司 Method for setting network address
CN111277674A (en) * 2018-12-05 2020-06-12 瞻博网络公司 Managing address space across network elements
CN111800298A (en) * 2020-07-08 2020-10-20 苏州浪潮智能科技有限公司 Network node management method, device, equipment and readable medium
CN112286851A (en) * 2020-11-06 2021-01-29 百度在线网络技术(北京)有限公司 Server mainboard, server, control method, electronic device and readable medium
CN113329104A (en) * 2021-05-27 2021-08-31 山东英信计算机技术有限公司 Multi-node server, interaction method, device, exchange chip and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471673A (en) * 2015-11-19 2016-04-06 浪潮电子信息产业股份有限公司 method for realizing automatic batch tests on private server BMC network ports and sharing network ports
CN207799670U (en) * 2017-08-09 2018-08-31 郑州云海信息技术有限公司 A kind of dual system concentration outband management modular structure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469168A (en) * 2010-11-01 2012-05-23 英业达股份有限公司 Method for setting network address
CN111277674A (en) * 2018-12-05 2020-06-12 瞻博网络公司 Managing address space across network elements
CN111800298A (en) * 2020-07-08 2020-10-20 苏州浪潮智能科技有限公司 Network node management method, device, equipment and readable medium
CN112286851A (en) * 2020-11-06 2021-01-29 百度在线网络技术(北京)有限公司 Server mainboard, server, control method, electronic device and readable medium
CN113329104A (en) * 2021-05-27 2021-08-31 山东英信计算机技术有限公司 Multi-node server, interaction method, device, exchange chip and medium

Also Published As

Publication number Publication date
CN113329104A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
EP3316532B1 (en) Computer device, system and method for implementing load balancing
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
TWI458314B (en) Server system and management method thereof for transferring remote packet to host
EP2779546A1 (en) Port setting method, routing device, and computer program product
US10515043B2 (en) Smart interface card control method and apparatus through a virtualized management interface
CN111404753B (en) Flat network configuration method, computer equipment and storage medium
JP2013168140A (en) Method for deploying virtual machines
KR20140021677A (en) Method and apparatus for remote delivery of managed usb services via a mobile computing device
WO2021217849A1 (en) Blockchain node synchronization method, apparatus and device, and storage medium
CN110224917B (en) Data transmission method, device and system and server
WO2022247575A1 (en) Interaction method and apparatus, and switching chip, medium and multi-node server
WO2018076882A1 (en) Operating method for storage device, and physical server
CN103490945A (en) Method for detecting maximum telnet user quantity
WO2020151447A1 (en) Offline configuration method and apparatus for smart device
TW201426553A (en) Virtual machine management system and method
US20200162419A1 (en) Address assignment method and related device
CN105700823A (en) Method and apparatus for transmitting data between IP hard disks
CN109889421B (en) Router management method, device, terminal, system and storage medium
CN109819064B (en) Method for communication between modules, operating system module and conference panel
CN112073555A (en) Method for configuring IP address, electronic device and computer readable storage medium
CN111416851A (en) Method for session synchronization among multiple load balancers and load balancer
CN112910910B (en) Method, device, equipment and storage medium for processing OPCDA protocol message
JP5947540B2 (en) Management device and management device control method
TW201514690A (en) System and method of virtualization of a baseboard management controller
CN112671561B (en) Network card configuration method and equipment of cloud host

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE