CN113297124A - Device enumeration method, device, system and storage medium - Google Patents

Device enumeration method, device, system and storage medium Download PDF

Info

Publication number
CN113297124A
CN113297124A CN202010270973.2A CN202010270973A CN113297124A CN 113297124 A CN113297124 A CN 113297124A CN 202010270973 A CN202010270973 A CN 202010270973A CN 113297124 A CN113297124 A CN 113297124A
Authority
CN
China
Prior art keywords
resource
switching
target
equipment
node
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202010270973.2A
Other languages
Chinese (zh)
Other versions
CN113297124B (en
Inventor
赵元
陈继承
龙欣
周恒钊
郑晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010270973.2A priority Critical patent/CN113297124B/en
Publication of CN113297124A publication Critical patent/CN113297124A/en
Application granted granted Critical
Publication of CN113297124B publication Critical patent/CN113297124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a device enumeration method, a device, a system and a storage medium. In an embodiment of the present application, a network system includes: a plurality of switching devices, and a plurality of node devices connected to upstream ports of the plurality of switching devices; the plurality of switching devices are interconnected, and the downstream ports of the plurality of switching devices are connected with the resource device, so that the resource device sharing can be realized among the plurality of node devices, that is, one node device can use the resource device mounted by other node devices. Based on the specific network architecture, in the embodiment of the application, the switching device can determine the target resource device which the node device connected with the switching device has the use authority; and according to the application requirements corresponding to the node devices connected with the exchange device, the resource configuration is carried out on the target resource device, and further the device enumeration of the special network system is realized.

Description

Device enumeration method, device, system and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a device enumeration method, a device, a system, and a storage medium.
Background
A high-speed serial computer extended bus (PCIE) architecture generally includes a Root Component (Root Complex), a Switch (Switch), and various end devices (endpoints). For such devices, after the CPU of the host is started, PCIE device enumeration is performed to find the devices, and a topology structure of a PCIE system is established.
However, the existing PCIE device enumeration method is not suitable for some customized networks, for example, a network system in which the communication method between the host and the host does not comply with the ethernet protocol, and the like. Therefore, the problem of device enumeration for some customized networks is to be solved urgently.
Disclosure of Invention
Aspects of the present disclosure provide a device enumeration method, device, system, and storage medium for implementing device enumeration for a customized network.
An embodiment of the present application provides a network system, including: a plurality of switching devices, and a plurality of node devices connected to upstream ports of the plurality of switching devices; the plurality of switching devices are interconnected, and the downstream ports of the plurality of switching devices are connected with resource devices;
a first switching device to: in response to a device enumeration trigger event, determining a target resource device of which the first node device has a usage right; the first node device is a node device to which the first switching device belongs; performing resource allocation on the target resource equipment according to the application requirement corresponding to the node equipment to which the first switching equipment belongs;
wherein, there is at least one target node device in the multiple node devices, and any target resource device with the use authority of the target node device includes: and resource devices which are hung on the downstream ports of other switching devices except the target switching device which is subordinate to the target node device.
The embodiment of the present application further provides a device enumeration method, which is applicable to a switching device, where the switching device includes an upstream port and a downstream port; the upstream port is connected with node equipment; the downstream port is connected with resource equipment; the switching equipment is also interconnected with switching equipment affiliated to other node equipment; the method comprises the following steps:
responding to a device enumeration trigger event, and determining a target resource device of which the node device to which the switching device belongs has a use authority;
performing resource allocation on the target resource equipment according to the application requirement corresponding to the node equipment to which the switching equipment belongs;
wherein, the target resource device includes the resource device mounted by the exchange device affiliated to other node devices.
An embodiment of the present application further provides a switching device, including: a memory, a processor, and a communications component; the communication assembly includes: an upstream port, a downstream port, and a network interface; the upstream port is used for connecting node equipment to which the switching equipment belongs; the downstream port is used for connecting resource equipment; the network interface is used for being in communication connection with switching equipment which is subordinate to other node equipment;
the memory for storing a computer program;
the processor is coupled to the memory for executing the computer program for performing the steps of the method.
An embodiment of the present application further provides a computer device, including: the host computer comprises a switching module and a host computer module connected with an upstream port of the switching module; a downstream port of the switching module is hung with resource equipment; the switching module is also in communication connection with switching modules affiliated to other computer equipment;
the switching module is configured to: responding to a device enumeration trigger event, and determining a target resource device of which the affiliated host module has the use authority; performing resource allocation on the target resource equipment according to the application requirement corresponding to the host module to which the exchange module belongs; wherein, the target resource device comprises the resource device mounted under the exchange module subordinate to other computer devices.
Embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the above-described method.
The network system provided by the embodiment of the application comprises: a plurality of switching devices, and a plurality of node devices connected to upstream ports of the plurality of switching devices; the plurality of switching devices are interconnected, and the downstream ports of the plurality of switching devices are connected with the resource device, so that the resource device sharing can be realized among the plurality of node devices, that is, one node device can use the resource device mounted by other node devices. Based on the specific network architecture, in the embodiment of the application, the switching device can determine the target resource device which the node device connected with the switching device has the use authority; and according to the application requirements corresponding to the node devices connected with the exchange device, the resource configuration is carried out on the target resource device, and further the device enumeration of the special network system is realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1a is a schematic structural diagram of a network system according to an embodiment of the present application;
fig. 1b is a schematic structural diagram of a switching device according to an embodiment of the present application;
fig. 1c is a schematic structural diagram of another network system provided in the embodiment of the present application;
FIG. 1d is a schematic diagram of a node in the network system shown in FIG. 1 c;
fig. 1e is a schematic diagram of an enumeration process provided in this application;
fig. 2 is a schematic flowchart of a device enumeration method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a switching device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For the technical problem that the existing device enumeration manner is not applicable to some customized networks, a network system provided by some embodiments of the present application includes: a plurality of switching devices, and a plurality of node devices connected to upstream ports of the plurality of switching devices; the plurality of switching devices are interconnected, and the downstream ports of the plurality of switching devices are connected with the resource device, so that the resource device sharing can be realized among the plurality of node devices, that is, one node device can use the resource device mounted by other node devices. Based on the specific network architecture, in the embodiment of the application, the switching device can determine the target resource device which the node device connected with the switching device has the use authority; and according to the application requirements corresponding to the node devices connected with the exchange device, the resource configuration is carried out on the target resource device, and further the device enumeration of the special network system is realized.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
It should be noted that: like reference numerals refer to like objects in the following figures and embodiments, and thus, once an object is defined in one figure or embodiment, further discussion thereof is not required in subsequent figures and embodiments.
In practical applications, a root port of the server device may be connected to a resource device (EP) through the PCIE switch device. However, according to the regulations of the PCIE standard protocol, the resource device mounted on the PCIE switch device can only be attached to the server device connected to the switch device, and cannot be used by other server devices, which not only causes resource waste, but also may affect the service performance of the server device.
In order to solve the above problem, an embodiment of the present application provides a new network system, as shown in fig. 1a, the network system includes: a plurality of switching devices 10, and a plurality of node devices 11 connected to upstream ports 10a of the plurality of switching devices 10. Preferably, one switching device 10 is subordinate to 1 node device 11. In the embodiment of the present application, if an Upstream Port (us Port)10a of one switch device 10 is connected to 1 node device 11, it can be understood that: the switching device 10 is subordinate to the node device 11 connected to its upstream port 10 a. In the embodiments of the present application, a plurality means 2 or more.
In this embodiment, the node device 11 may be a single server device, a cloud server array, or a Virtual Machine (VM) running in the cloud server array. The node device 11 may also refer to other computing devices having corresponding service capabilities, such as a terminal device (running a service program) such as a computer.
In this embodiment, each switching device 10 further includes: a Downstream Port (ds Port)10b and a network interface 10 c. Among them, the downstream port 10b is connected with a resource device 12. In the embodiment of the present application, the connection of the resource device 12 to the downstream port 10b is understood as: the downstream port 10b is connected directly or indirectly to the resource device 12. In the embodiment of the present application, the downstream port 10b is directly connected to the resource device 12b, and may also be referred to as the resource device 12b mounted on the downstream port 10 b. In this case, for one switching device 10, the number of network interfaces 10c may be 1 or more. For example, the network interfaces 10c may be 4, 6, or 8, and so on. For one switching device 10, the number of the downstream ports 10b may be 1 or more. When there are a plurality of downstream ports 10b of one switching device 10, at least one downstream port exists to be directly connected to the resource device 12, that is, at least one downstream port exists in the plurality of downstream ports of one switching device 10 to be loaded with the resource device 12.
In the embodiment of the present application, the implementation form of the resource device 12 is not limited. The resource devices 12 may provide computing resources and/or storage resources. In some embodiments, the resource device 12 may provide computing resources. For example, the resource devices 12 may include: a processor and its peripheral circuits. Wherein, the processor can be a Central Processing Unit (CPU), a Graphics Processing Unit (GPU) or a Micro Control Unit (MCU); programmable devices such as Field-Programmable Gate arrays (FPGAs), Programmable Array Logic devices (PALs), General Array Logic devices (GAL), Complex Programmable Logic Devices (CPLDs), etc. may also be used; or Advanced Reduced Instruction Set (RISC) processors (ARM), or System On Chip (SOC), etc., but is not limited thereto.
In this embodiment, the switch device 10 may be an independent physical machine, or may be a switch disposed on the node device 11. The switching device 10 may be implemented as a chip, i.e. a switch having an upstream port and a downstream port is implemented within the chip. The switch device 10 is a PCIE switch, a PCI switch, a USB switch, a SATA switch, or a SAS switch, etc. Wherein the type of the upstream and downstream ports of the switching device 10 is the same as the type of the switching device. For example, if the switch device 10 is a PCIE switch, the upstream and downstream ports of the PCIE switch are PCIE ports and follow a PCIE protocol; if the switching device 10a is a USB switch, the upstream and downstream ports of the USB switch are USB ports, and follow the USB protocol; and so on.
In the present embodiment, a plurality of switching devices 10 are interconnected. Wherein a plurality of switching devices 10a may be interconnected by their network interfaces 10 c. The plurality of switching devices 10 may be directly interconnected with each other, or indirectly interconnected with each other through other switching devices. Wherein, the number of other switching devices can be 1 or more. For example, the switch device a and the switch device B may be directly interconnected, or may be interconnected through another switch device C, and the arrangement may be interconnected through more other switch devices.
The plurality of switching devices 10 are interconnected to realize network communication among different switching devices. In the embodiment of the present application, a network protocol used for network communication between the switching devices 10 is not limited. Alternatively, the switching devices 10 may communicate with each other based on an ethernet communication protocol, a bluetooth protocol, a WiFi protocol, or a mobile network. Accordingly, the network format of the mobile network may be any one of 2G (gsm), 2.5G (gprs), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G + (LTE +), 5G, WiMax, etc. Alternatively, some customized non-standard network protocol may be used for communication between switching devices 10. Preferably, the network protocol followed for network communication between the different switching devices 10 is adapted to the communication protocol followed by the downstream port 10b of the switching device 10. Therefore, when the device enumeration is carried out subsequently, protocol conversion is not needed, and the device enumeration rate is improved. How to increase the device enumeration rate during device enumeration will be described in detail in the following description of the device enumeration process, which is not repeated herein.
When some customized non-standard network protocols can be used for communication between the switching devices 10, the communication bandwidth is not limited. For example, the network interface on the switching device 10 may employ a 100G high-speed customized network interface or the like.
For a plurality of node apparatuses 11, interconnection may be realized by interconnection of a plurality of switching apparatuses 10. Based on the network system architecture, the plurality of node devices 11 are interconnected by the plurality of switch devices 10, and in terms of physical structure, the plurality of node devices 11 have a connection relationship with the resource device 12 mounted on the downstream physical port 10b1 of the plurality of switch devices 10. However, according to the standard protocol, the resource device mounted on the switching device 10 can only belong to the node device connected to the upstream port 10a of the switching device, and cannot be used by other node devices.
In the present embodiment, in order to solve the above problem, a port virtualization technique is introduced, that is, 1 or more downstream virtual ports 10b2 may be provided for the switching device 10. As shown in fig. 1b, the downstream port 10b of the switching device 10 may include: downstream physical port 10b1 and downstream virtual port 10b 2. In the embodiment of the present application, the specific number of the downstream physical port 10b1 and the downstream virtual port 10b2 included in the switching device 10 is not limited. Wherein fig. 1b only illustrates the example where the number of downstream physical ports 10b1 is 4 and the number of downstream virtual ports 10b2 is 124. In FIG. 1b, ds ports 0/1/2/3 are downstream physical ports, and ds ports 4-127 are downstream virtual ports.
In this embodiment, the downstream physical port 10b1 may mount the resource device 12, i.e., the downstream physical port 10b1 is directly connected with the resource device 12. The downstream virtual port 10b2 of the switch device 10 may form a mapping with the downstream physical ports 10b1 of other switch devices. Thus, the connection relationship between the resource device 12 mounted on the downstream physical port 10b1 of the other switch device and the downstream virtual port 10b2 of the switch device 10 can be established, and for the node device 11 connected to the switch device 10, the resource device 12 mounted on the downstream physical port 10b1 of the other switch device is similar to the downstream physical port 10b1 of the switch device 10, so that the resource device 12 mounted on the downstream physical ports of the switch devices 10 in the network system can be pooled, and the node device 11 can access not only the resource device mounted on the downstream physical port of the switch device itself but also the resource device mounted on the downstream physical port of the switch device belonging to the other node device.
For the node apparatus 11, the resource apparatus 12 to which the downstream port 10b of the switching apparatus belonging to the node apparatus 11 is connected can be accessed. For the resource device mounted on the downstream physical port 10b1 of the switching device 10, the node device 11 to which the switching device 10 belongs may directly access the resource device. For the resource devices mounted on the downstream physical ports 10a of other switching devices, the node device 11 may access the resource devices mounted on the downstream physical ports of other switching devices according to the mapping relationship between the downstream virtual ports of the switching device 10 belonging to the node device 11 and the downstream physical ports of other switching devices, thereby implementing resource sharing between the node devices and implementing resource pooling.
Alternatively, the node apparatus 11 may send the access request to the switching apparatus 10 belonging to the node apparatus 11. The switching device 19 may determine, according to a preset mapping relationship between the downstream virtual port of each target switching device and the downstream physical ports of other switching devices except the target switching device, another switching device to which the downstream physical port having a mapping relationship with the downstream virtual port of the target switching device belongs, and forward the access request to the another switching device through a network in which the target switching device is interconnected with the another switching device. Accordingly, the other switch device sends an access request to the resource device 12 mounted on the downstream physical port that has a mapping relationship with the switch device 10. In this way, the resource device 12 can respond to the access request, thereby implementing the access of the node device 11 to the resource device mounted by the switching device belonging to other node devices.
It should be noted that fig. 1a only illustrates that each of the switching devices 10 and the node devices 11 is 4, and the number of the switching devices and the node devices is not limited. In the embodiment of the present application, the number of the switching devices 10 and the number of the node devices 11 are not limited, and the number of the node devices 11 is equal to the number of the switching devices 10.
In some embodiments, as shown in fig. 1c, the number of node devices 11 and switching devices 10 is 32. The 16 nodes shown in fig. 1c are communicatively connected, and one black dot represents one node. The structure of each node in FIG. 1c is shown in FIG. 1 d. Each node is composed of two node devices 11 and two switching devices 10, the node device 11 is connected with an upstream port 10a of the switching device 10, and a downstream physical port 10b1 of the switching device 10 is used for connecting resource devices. Fig. 1d illustrates only one switch device 10 including 4 downstream physical ports 10b1, and is not limiting. Further, the switch device 10 shown in fig. 1d is a PCIE switch, and has 1 PCIE upstream port and 4 PCIE downstream physical ports, where 1 upstream port is used for connecting and communicating with a PCIE root port of the node device 11 connected thereto.
Based on the network system architecture and the network operation principle, as for the node device 11, all the resource devices having the usage right are not necessarily mounted on the downstream physical ports of the switching devices belonging to the node device 11; of course, for the node device 11, the resource device 12 mounted on the downstream physical port 10a of the switching device 10 belonging to the node device 11 is not necessarily used by the node device 11, that is, the node device 11 does not necessarily have the right of use for the resource device 12 mounted on the downstream physical port 10a of the switching device 10 belonging to itself. In order to configure a resource device having a usage right for a plurality of node devices 11, as shown in fig. 1e, the network system provided in the embodiment of the present application may further include: a management device 13. Accordingly, the management device 13 can configure the resource device 12 having the usage right for the plurality of node devices 11.
Optionally, the management device 13 may provide a human-computer interaction interface, and a user configures the resource device 12 with usage rights for the plurality of node devices 11. Alternatively, the management device 13 may automatically configure the resource device 12 having the usage right for the plurality of node devices 11. Optionally, the management and control device 13 may dynamically configure the resource device 12 with usage right for the plurality of node devices 11 according to the demands of the plurality of node devices 11 on the resource and the usage of the resource device currently having usage right by the plurality of node devices 11.
Optionally, the management and control device 13 may monitor usage and resource demand of the plurality of node devices 11 on the currently allocated resource devices 12, and configure the resource devices 12 with usage rights for the plurality of node devices 11 as needed when it is monitored that resource device configuration needs to be performed again on the plurality of node devices 11. For example, if the management and control device 13 monitors that at least one node device a increases the resource demand of the plurality of node devices 11, and the resource device 12 currently allocated to the node device a cannot meet the resource demand of the node device a; if at least one node device B of the plurality of node devices 11, except for the node device a, does not fully occupy the currently allocated resource device 12, the policing device 13 may reconfigure the resource device for the plurality of node devices 11 again, for example, the policing device 13 may allocate the resource device 12, which has the usage right but is not used, to the node device a for use.
For a node device 11, all the resource devices 12 assigned with the usage right may be mounted on the downstream physical ports of the switching devices 10 owned by itself, or may be mounted on the downstream physical ports of the switching devices owned by other node devices; or some of the ports are mounted on the downstream physical ports of the switching device 10 belonging to the switching device, and the rest of the ports are mounted on the downstream physical ports of the switching devices belonging to other node devices. In the embodiment of the present application, for convenience of description and differentiation, a node device having a resource device with usage right including a resource device attached to a downstream physical port of a switching device affiliated to another node device is defined as a target node device. Namely, for any target node device, the resource device with the use right comprises: and resource devices mounted on the downstream physical ports of other switching devices except the switching device affiliated to the target node device.
Further, if the resource device having the usage right allocated to the node device 11 by the management and control device 13 includes a resource device mounted by a switching device affiliated to another node device, that is, at least one target node device exists in the plurality of node devices 11, the management and control device 13 may further record a mapping relationship between a downstream virtual port of the switching device affiliated to each target node device and downstream physical ports of other switching devices except the switching device affiliated to the target node device, where the downstream physical ports of other switching devices except the switching device affiliated to the target node device in the mapping relationship refer to: the downstream physical port of the switching device on which the resource device is actually mounted. Further, the management device 13 may also provide the mapping relationship to a plurality of switching devices 10. In the embodiment of the present application, the storage form in which the switching device 10 stores the mapping relationship between the downstream virtual port of the switching device and the downstream physical ports of other switching devices is not limited. Alternatively, the switching device 10 may store the mapping relationship between the downstream virtual port of the switching device and the downstream physical ports of the other switching devices in the form of entries, documents, or key values peer-to-peer. Alternatively, as shown in fig. 1e, the management device 13 may write the mapping relationship between the downstream virtual port of the switch device and the downstream physical ports of the other switch devices into the resource configuration tables of the plurality of switch devices 10.
Further, in the process that the management and control device 13 configures resource devices for the plurality of node devices 11, the usage right relationship between the node devices and the resource devices may also be recorded, and the usage right relationship is provided to the plurality of switching devices 10. The usage right relationship between the node device and the resource device can be expressed as: and the corresponding relation between the node equipment identification and the resource equipment identification. The node device identifier is information that uniquely identifies a node device, and may be a serial number of the node device. The identifier of the resource device refers to an identifier that can uniquely identify a resource device, and may be a serial number of the resource device, or may also be routing information of the resource device. In the embodiment of the present application, the storage form in which the switching device 10 stores the usage right relationship between the node device and the resource device is not limited. Alternatively, the switching device 10 may store the usage right relationship of the node device and the resource device in the form of an entry, a document, or a key value peer. Alternatively, as shown in fig. 1e, the management and control device 13 may write the usage right relationship between the node device and the resource device into the resource configuration tables of the plurality of switching devices 10.
Further, after the management and control device 13 configures the resource devices for the plurality of node devices 11, the plurality of node devices 11 may be instructed to perform device enumeration. Or, under some other device enumeration triggering events, the switching device 10 automatically enumerates the resource devices to which the node device 11 belongs and which have the usage right. The device enumeration process provided in the embodiments of the present application is exemplarily described below.
In the embodiment of the present application, the purpose of device enumeration performed by the multiple node devices 11 is to discover resource devices having usage rights. The device enumeration process includes: determining the resource device of which the node device 11 has the usage right and configuring the resource for the resource device of which the node device 11 has the usage right.
In this embodiment, the node device 11 does not know which resource devices 12 with usage rights are before device enumeration, and does not know which downstream port affiliated to the node device 11 the resource devices with usage rights are connected to. Based on this, the node device 11 may traverse the downstream port 10b of the switching device 10 belonging to the node device 11 during the device enumeration process. For the switching device 10, in response to a device enumeration trigger event, determining a target resource device to which a node device to which the switching device 10 belongs has a usage right; and performs resource allocation on the target resource device according to the application requirement corresponding to the node device to which the switching device 10 belongs.
Optionally, based on the above process of dynamically configuring, by the management and control device 13, the resource devices with usage rights for the plurality of node devices 11, it is known that the usage rights relationship between the node devices and the resource devices is maintained in the exchange device 10. Based on this, the switching device 10 may determine, according to the pre-configured usage right relationship between the node device and the resource device, a target resource device to which the node device 11 to which the switching device belongs has the usage right.
Wherein, under different enumeration scenarios, the device enumeration trigger events are different. Device enumeration trigger events are illustratively described below in connection with several enumeration scenarios.
Enumeration scenario 1: the switching device 10 may set an enumeration period, start a timer or a counter to time the enumeration period, and determine a target resource device to which the node device to which the switching device 10 belongs has a usage right when the enumeration period arrives. Accordingly, the device enumeration trigger event is the arrival of an enumeration cycle.
Enumeration scenario 2: the switching device 10 may monitor a usage right relationship between the stored node device and the resource device, and when it is monitored that the usage right relationship between the node device and the resource device changes, determine a target resource device to which the node device to which the switching device 10 belongs has a usage right. Correspondingly, the device enumeration trigger event is to monitor that the usage authority relationship between the node device and the resource device changes.
Enumeration scenario 3: the policing device 13 may instruct the plurality of node devices 11 to perform device enumeration after configuring the resource devices having the usage right for the plurality of node devices 11 each time. Accordingly, the node device 11 may send an enumeration configuration command to the switching device 10 affiliated with the node device 11. The switching device 10 receives the enumeration configuration command, and determines a target resource device to which the node device to which the switching device 10 belongs has a usage right in response to the enumeration configuration command. Accordingly, the device enumeration trigger event is the reception of an enumeration configuration command sent by a node device to which the switching device 10 belongs. Further, the process of device enumeration by the node device 11 may be understood as a process of traversing the downstream port 10b of the switching device 10 belonging to the node device 11. Optionally, when the node device 11 performs device enumeration, an enumeration configuration command may be sent to the switching devices 10 belonging to the node device 11, and the downstream ports 10b of the node device 11 are sequentially traversed. Alternatively, the node device 11 may traverse one downstream port 10b of the switch device 10 at a time, that is, the node device 11 issues one enumeration configuration command at a time, and correspondingly traverses one downstream port 10b of the switch device 10. The enumeration configuration command may include an identification of the target downstream port to be enumerated. The identity of the downstream port is information which uniquely identifies one downstream port. Optionally, the identity of the downstream port may be: a Bus Number, a Device Number, and a Function Number (BDF).
The identity of the downstream port of the switching device 10 may be configured by the node device 11 to which it belongs. Alternatively, the node device 11 may initialize the switching device 10 belonging to the node device 11 when the hardware instance needs to be loaded. Further, during the initialization process of the node device 11, the node device 11 may identify the node device 10 to which it belongs as a switch composed of 1 upstream port and a plurality of downstream ports by the node device 11. The node device 11 cannot enumerate to any resource device, regardless of whether the downstream port has a physically existing resource device, and the host can only see that the switching device 10 has 1 upstream port and a plurality of downstream ports. Further, the node device 11 may configure an identity for the downstream port 10b of the switching device 10 during the initialization process of the switching device 10.
For the switching device 10, in response to the enumeration configuration command, a device scan may be performed on the target downstream port traversed by the enumeration configuration command. In the embodiment of the present application, the switching device 10 may be any switching device of a plurality of switching devices. The enumeration process for each switching device is the same. The following takes the first switching device as an example, and an exemplary description is given to the device enumeration process. Wherein the first switching device is any one of the plurality of switching devices 10. For convenience of description and distinction, the node device to which the first switching device belongs is defined as a first node device.
For the first switching device, the first switching device may parse the received enumeration configuration command to obtain an identity of a target downstream port to be enumerated, which is included in the enumeration configuration command; reading the information of a register corresponding to the target downstream port according to the identity of the target downstream port; and determining whether the target downstream port is connected with the resource equipment or not according to the read information of the register. Optionally, the register stores identification information of whether the corresponding downstream port is connected with the resource device. Optionally, the identifier of whether the downstream port is connected with the resource device may be: VID corresponding to the function number in the identity of the downstream port; if VID is not 0, the downstream virtual port is connected with resource equipment; if VID is FFFF, it means that the downstream port is not connected with the resource device. Accordingly, the switching device 10 can determine whether the resource device is connected to the target downstream port according to the VID corresponding to the function number in the read id of the target downstream port.
Further, in a case that the target downstream port is connected with the resource device, the first switching device may generate the routing information of the first resource device connected to the target downstream port according to the identity of the target downstream port and the topology of the network system. Wherein, the topological structure of the network system includes: the name, location, and connection relationship between devices in the network system. The routing information of the first resource device may be a number of a node device to which the switching device mounting the first resource device belongs and a device number of the first resource device. Further, the first switching device may determine, according to the routing information and the usage right relationship between the node device and the resource device, whether the first node device to which the switching device belongs has a usage right for the first resource device; if the first node device 11 has no usage right for the first resource device, the first switch device responds to the enumeration configuration command, as shown by number 1 in fig. 1 e. Therefore, the communication path of the enumeration transaction of the invalid node can be shortened, the time consumed by enumeration is reduced, and the enumeration efficiency is improved.
Further, if the enumeration configuration command is a configuration read request, the first switching device may return an unsupported request or device absence information to the node device connected to the switching device; if the enumeration configuration command is a configuration write request, the first exchange device may return a non-support request to the exchange device; if the enumeration configuration command is a Message (Message), the enumeration configuration command is discarded.
Correspondingly, if the first node device to which the first exchange device belongs has the use right for the first resource device, the first resource device is used as a target resource device, and the resource configuration is performed on the first resource device according to the received enumeration configuration command. Wherein, the enumeration configuration command may reflect the application requirement of the node device 11 to which the first switching device belongs. For example, if the enumeration configuration command is a configuration read request (e.g., CfgRd configuration read request), the configuration read request may reflect a requirement of a node device read register to which the first switch device belongs. For another example, if the enumeration configuration command is a configuration write request (e.g., a CfgWr configuration write request), the configuration write request may reflect a requirement of a node device to which the first switch device belongs to write a register. For another example, if the enumeration configuration command is a Message (Message), the Message may reflect a requirement that the node device to which the first switching device belongs propagate the Message.
In some embodiments, there is at least one target node device in the plurality of node devices 11. The target node device refers to a resource device with a use right, and the target node device comprises: and the node equipment of the resource equipment mounted on the downstream physical port of the switching equipment belonging to other node equipment 11. Namely, for the target node device, the target resource device having the usage right comprises: and the resource equipment is mounted on the downstream physical port of the switching equipment which is subordinate to other node equipment. In this embodiment, if the node device to which the first switch device belongs is a target node device and the target downstream port to be enumerated is a downstream virtual port, as shown by reference number 2 in fig. 1e, the first switch device may forward the enumeration configuration command to other switch devices through a network interconnected with other switch devices. In this way, the other switching devices may perform resource configuration on the target resource device according to the enumeration configuration command. Optionally, the first switching device 10 may determine, according to the identity of the target downstream port and a preset mapping relationship between the downstream virtual port of each target switching device and the target downstream physical ports of other switching devices except the target switching device, a second switching device where the downstream physical port corresponding to the target downstream port is located, that is, a second switching device that physically mounts the target resource device. The first switching device may then forward the enumeration configuration command to the second switching device over the network interconnecting the first switching device and the second switching device.
For the communication method between the switching devices, reference may be made to the relevant contents of the above embodiments, and details are not described herein again. Preferably, the network protocol followed by the network communication between the different switching devices 10 is adapted to the communication protocol followed by the downstream port 10b of the switching device 10, i.e. the network protocol followed by the network communication between the different switching devices 10 is compatible with the communication protocol followed by the downstream port 10b of the switching device 10. In this way, the switching device 10 can directly forward the enumeration configuration command following the communication protocol followed by the downstream port 10b to other switching devices without performing protocol conversion, thereby improving device enumeration efficiency.
For example, the plurality of switch devices 10 are PCIE switch devices, the downstream port 10b is a PCIE port, and the PCIE protocol is followed, so that the network protocol followed by the communication between the different switch devices 10 is adapted to the PCIE, that is, the network protocol followed by the communication between the different switch devices 10 is compatible with the PCIE protocol. In this way, the switching device 10 may directly forward the enumeration configuration command following the PCIE protocol to other switching devices without performing protocol conversion on the enumeration configuration command, which is further beneficial to improving device enumeration efficiency.
For the second switching device that receives the enumeration configuration command forwarded by the other switching devices, the second switching device may generate routing information of the target resource device according to the identity of the target downstream port and the topology of the network system, which are included in the enumeration configuration command, and forward the enumeration configuration command to the target resource device through a downstream physical port on the second switching device, which is opposite to the target downstream port, according to the routing information. Accordingly, the target resource device may respond to the enumerate configuration command. Optionally, the target resource device may also return response information to the node device that issued the enumeration configuration command. Wherein the response information may be returned to the first switching device connected to the node device 11 that issued the enumeration configuration command through the same path as the enumeration configuration command. The first switching device schedules the response information to the upstream port 10a, and returns the response information to the node device 11 to which the first switching device belongs through the upstream port 10a, so as to complete traversal of the target downstream port, that is, complete device enumeration.
Optionally, the enumeration configuration commands are different, and the target resource device may respond to the enumeration configuration commands in different ways. For example, if the enumeration configuration command is a configuration read request, the target resource device may read data required by the configuration read request, encapsulate the read data into response information, and return the response information to the node device 11 that issued the enumeration configuration command. For another example, if the enumeration configuration command is a configuration write request, the target resource device may write data to be written, which is included in the configuration write request, into a corresponding register, and return completion response information (cmpl response) to the node device 11 that issued the enumeration configuration command.
In other embodiments, if the first node device to which the first switching device belongs is not the target node device, or the target downstream port to be enumerated is a downstream physical port, and the first node device has a usage right for the resource device mounted on the downstream physical port, as shown by reference numeral 3 in fig. 1e, the first switching device belonging to the node device 11 that issues the enumeration configuration command may send the enumeration configuration command to the target resource device through the target downstream port. The target resource device at this point is the resource device mounted on the target downstream port. Accordingly, the target resource device responds to the enumeration configuration command, and sends response information to the node device 11 that sent the enumeration configuration command. For the manner in which the target resource device responds to the enumeration configuration command, reference may be made to relevant contents of the foregoing embodiments, which are not described herein again.
In this embodiment, the switching device 10 in the network system may receive not only the enumeration configuration command sent by the node device 11 to which the switching device belongs, but also the enumeration configuration command sent by the node device 11 to which another switching device belongs, which is forwarded by another switching device. For convenience of description and distinction, an enumeration configuration command received by the switching device 10 and sent by the node device 11 to which the switching device belongs is defined as a first enumeration configuration command, and an enumeration configuration command received and forwarded by other switching devices is defined as a second enumeration configuration command. For the second enumeration configuration command, the identity of the target downstream port to be enumerated included in the second enumeration configuration command is the identity of the downstream virtual port of the switching device belonging to the node device which sends the second enumeration configuration command. The following is still exemplified by the first switching device. For ease of description and differentiation, the switching device that forwards the enumeration configuration command to the first switching device is defined as the third switching device. Wherein the third switching device is any switching device except the first switching device.
Correspondingly, the first switching device may receive a second enumeration configuration command forwarded by the third switching device, determine a target downstream physical port on the first switching device corresponding to the downstream virtual port to be enumerated, based on a mapping relationship between the downstream virtual port of each target switching device and target downstream virtual ports of other switching devices except the target switching device and an identity of the downstream virtual port to be enumerated; and forwarding the second enumeration configuration command to the resource device mounted on the target downstream physical port. The resource device mounted by the target downstream physical port may respond to the second enumeration configuration command. For a manner in which the resource device mounted on the target downstream physical port can respond to the second enumeration configuration command, reference may be made to relevant contents of the foregoing embodiments, and details are not described here.
In addition to the above system embodiments, the embodiments of the present application also provide a device enumeration method, and the device enumeration method provided by the embodiments of the present application is described below from the perspective of a switching device.
Fig. 2 is a flowchart illustrating a device enumeration method according to an embodiment of the present application. As shown in fig. 2, the method includes:
201. and responding to the device enumeration trigger event, and determining the target resource device of which the node device to which the switching device belongs has the use authority.
202. And according to the application requirements corresponding to the node equipment to which the switching equipment belongs, carrying out resource allocation on the target resource equipment.
In this embodiment, the switching device includes an upstream port and a downstream port. The upstream port is connected with node equipment to which the switching equipment belongs; the downstream port is connected with resource equipment; the switching equipment is also interconnected with switching equipment affiliated to other node equipment. For specific structures of the switching device and the network system where other switching devices are located, reference may be made to the relevant contents of the above system embodiments, and details are not described herein again.
In this embodiment, the switching device may be an independent physical machine, or may be a switching switch disposed in a node device to which the switching device belongs.
In this embodiment, for a node device, a resource device to which a downstream port of a switching device belonging to the node device is connected may be accessed. For the resource device mounted on the downstream physical port of the switching device, the node device to which the switching device belongs can directly access the resource device. For the resource devices mounted on the downstream physical ports of other switching devices, the node device may access the resource devices mounted on the downstream physical ports of other switching devices according to the mapping relationship between the downstream virtual ports of the switching devices belonging to the node device and the downstream physical ports of other switching devices, thereby implementing resource sharing between the node devices and implementing resource pooling.
For a node device, all resource devices having usage rights may be mounted on downstream physical ports of switching devices belonging to the node device, or may be mounted on downstream physical ports of switching devices belonging to other node devices; or part of the physical ports are mounted on the downstream physical ports of the switching equipment which is subordinate to the switching equipment, and the rest part of the physical ports are mounted on the downstream physical ports of the switching equipment which is subordinate to other node equipment. In the embodiment of the present application, for convenience of description and differentiation, a node device having a resource device with usage right including a resource device attached to a downstream physical port of a switching device affiliated to another node device is defined as a target node device. Namely, for any target node device, the resource device with the use right comprises: and resource devices mounted on the downstream physical ports of other switching devices except the switching device affiliated to the target node device.
In this embodiment of the present application, before performing device enumeration, a node device does not know which resource devices that have usage rights are, and does not know which downstream port affiliated to the node device the resource devices that have usage rights are connected to. Based on this, the node device may traverse the downstream port of the switching device belonging to the node device during the device enumeration process. For the switching device, in response to a device enumeration trigger event, determining a target resource device to which a node device to which the switching device belongs has a usage right; and according to the application requirement corresponding to the node equipment to which the switching equipment belongs, resource allocation is carried out on target resource equipment, and further equipment enumeration of a specific network is realized.
Wherein, under different enumeration scenarios, the device enumeration trigger events are different. Based on the enumeration scenarios 1, 2, and 3, the device enumeration trigger event may be: when an enumeration cycle set in the switching device arrives, the switching device monitors that the use authority relationship between the node device to which the switching device belongs and the resource device changes or the switching device receives an enumeration configuration command sent by the node device to which the switching device belongs.
In some embodiments, the switching device maintains a usage right relationship between the node device and the resource device. Based on this, the switching device may determine, according to the pre-configured usage right relationship between the node device and the resource device, a target resource device to which the node device to which the switching device belongs has the usage right. In this embodiment, the usage right relationship between the node device and the resource device at least includes usage rights of the resource device under the switching device affiliated to the other node device by one node device. The usage right relationship between the node device and the resource device may be provided to the switching device by the management and control device in the network system after allocating the resource device with the usage right to the plurality of node devices in the network system. For a specific implementation of the management and control device allocating resource devices with usage rights to multiple node devices, reference may be made to relevant contents of the above system embodiments, and details are not described herein again.
For the case that the device enumeration trigger event is that the switching device receives an enumeration configuration command sent by the node device to which the switching device belongs, the enumeration configuration command may include an identity of a target downstream port to be enumerated. Optionally, the identity of the downstream port may be: a Bus Number, a Device Number, and a Function Number (BDF). The identity of the downstream port of the switching device may be configured by the node device to which it belongs. For a specific implementation of configuring, by the node device, the identity for the downstream port of the switching device, reference may be made to relevant contents of the above system embodiment, which is not described herein again.
Based on the enumeration configuration instruction, an optional implementation manner of determining a target resource device to which the node device to which the switching device belongs has a usage right is as follows: under the condition that the target downstream port is connected with the resource equipment, generating routing information of first resource equipment connected with the target downstream port according to the identity of the target downstream port and the topological structure of the network system; determining whether the node equipment to which the switching equipment belongs has the use authority on the first resource equipment or not according to the routing information and the use authority relation between the node equipment and the resource equipment; and if the node equipment to which the switching equipment belongs has the use authority to the first resource equipment, taking the first resource equipment as target resource equipment. Correspondingly, if the node device to which the switching device belongs has no permission to use the first resource device, the switching device responds to the first enumeration configuration command.
Optionally, if the first enumeration configuration command is a configuration read request, the switching device returns an unsupported request or device absence information to the node device to which the switching device belongs; if the first enumeration configuration command is a configuration write request, the switching equipment returns a non-support request to the node equipment to which the switching equipment belongs; and if the first enumeration configuration command is a message, discarding the first enumeration configuration command.
Optionally, the switching device may read information of a register corresponding to the function number according to the function number in the identity of the target downstream port; and determining whether the target downstream port is connected with the resource equipment or not according to the information of the register. For the specific implementation of the information about the register and how to determine whether the target downstream port is connected to the resource device according to the information about the register, reference may be made to relevant contents of the above system embodiment, and details are not described herein again.
For a switching device, the downstream port includes: a downstream physical port and a downstream virtual port; the switching equipment is preset with a mapping relation between a downstream virtual port of the switching equipment and a target downstream physical port of other switching equipment; the node device to which the switching device belongs has a use right for the resource device mounted on the target downstream physical port.
Based on this, if the target downstream port is a downstream virtual port of the switching device, one implementation of step 202 is: determining target switching equipment where a target downstream physical port corresponding to a target downstream port is located according to a mapping relation between a downstream virtual port of the switching equipment and the target downstream physical ports of other switching equipment; forwarding the first enumeration configuration command to the target switching device through a network interconnected between the switching device and the target switching device, so that the target switching device performs resource configuration on the target resource device according to the first enumeration configuration command; the first enumeration configuration command may reflect an application requirement of a node device to which the switching device belongs. For a specific implementation manner of the target exchange device performing resource configuration on the target resource device according to the first enumeration configuration command, reference may be made to relevant contents of the above system embodiment, which is not described herein again.
Optionally, the network interconnecting the switching device and the target switching device follows a communication manner adapted to a communication protocol followed by the downstream physical port. Optionally, the downstream physical port is a PCIE interface; the communication protocol followed by the downstream physical port is the PCIE protocol.
In other embodiments, if the target downstream port is a downstream physical port of the switching device, one implementation of step 202 is: sending the first enumeration configuration command to the target resource device through the target downstream port so that the target resource device can respond to the first enumeration configuration command; wherein the first enumeration configuration command may reflect an application requirement of a node device to which the switching device is connected.
In some embodiments, the switching device may also respond to enumeration configuration commands forwarded by other switching devices. For convenience of description and distinction, an enumeration configuration command received by a switching device and sent by a node device to which the switching device belongs is defined as a first enumeration configuration command, and an enumeration configuration command received and forwarded by other switching devices is defined as a second enumeration configuration command. For the second enumeration configuration command, the identity of the target downstream port to be enumerated included in the second enumeration configuration command is the identity of the downstream virtual port of the switching device belonging to the node device which sends the second enumeration configuration command. Further, the switching device may determine, according to a mapping relationship between the downstream virtual ports of the other switching devices and the target downstream physical port of the switching device and the identity of the downstream virtual port to be enumerated, a target downstream physical port on the switching device corresponding to the downstream virtual port to be enumerated; and forwarding the second enumeration configuration command to the resource device mounted on the target downstream physical port corresponding to the downstream virtual port to be enumerated, so that the resource device mounted on the target downstream physical port corresponding to the downstream virtual port to be enumerated responds to the second enumeration configuration command.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subjects of steps 201 and 202 may be device a; for another example, the execution subject of step 201 may be device a, and the execution subject of step 202 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 201, 202, etc., are merely used for distinguishing different operations, and the sequence numbers do not represent any execution order per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the above-described method.
Fig. 3 is a schematic structural diagram of a switching device according to an embodiment of the present application. As shown in fig. 3, the switching apparatus includes: memory 31, processor 32 and communication component 33. The communication component 33 includes: an upstream port 33a, a downstream port 33b, and a network interface 33 c; the upstream port 33a is used for connecting node equipment to which the switching equipment belongs; the downstream port 33b is used to connect resource devices; the network interface 33c is used for communication connection with a switching device subordinate to another node device.
The memory 31 is used to store computer programs. The processor 32 is coupled to the memory 31 for executing a computer program for: responding to a device enumeration trigger event, and determining target resource devices of which the node devices to which the switching devices belong have the use permission; performing resource allocation on target resource equipment according to application requirements corresponding to node equipment to which the switching equipment belongs; wherein, the target resource device includes the resource device mounted by the exchange device affiliated to other node devices.
In some embodiments, when determining that the node device to which the switching device belongs has the target resource device with usage right, the processor 32 is specifically configured to: and determining the target resource equipment with the use authority of the node equipment to which the exchange equipment belongs according to the preset use authority relationship between the node equipment and the resource equipment. The usage right relation between the node device and the resource device at least comprises the usage right of one node device to the resource device under the exchange device which is subordinate to other node devices.
In some embodiments, the device enumeration trigger event is: and receiving a first enumeration configuration command sent by the node equipment to which the switching equipment belongs. The first enumeration configuration command includes an identification of a target downstream port to be enumerated. Correspondingly, when determining that the node device to which the switching device belongs has the target resource device with usage right, the processor 32 is specifically configured to: under the condition that the target downstream port is connected with the resource equipment, generating routing information of first resource equipment connected with the target downstream port according to the identity of the target downstream port and the topological structure of the network system; determining whether the node equipment to which the switching equipment belongs has the use authority on the first resource equipment or not according to the routing information and the use authority relation between the node equipment and the resource equipment; and if the node equipment to which the switching equipment belongs has the use authority to the first resource equipment, taking the first resource equipment as target resource equipment.
Accordingly, if the node device to which the switching device belongs has no usage right for the first resource device, the processor 32 responds to the first enumeration configuration command.
Further, when responding to the first enumeration configuration command, the processor 32 is specifically configured to: if the first enumeration configuration command is a configuration read request, returning an unsupported request or device nonexistence information to the node device to which the switching device belongs through the upstream port 33 a; if the first enumeration configuration command is a configuration write request, returning a non-support request to the node equipment to which the switching equipment belongs through the upstream port 33 a; and if the first enumeration configuration command is a message, discarding the first enumeration configuration command.
Optionally, the identity of the target downstream port is: a bus number, a device number, and a function number of the target downstream port.
Optionally, the processor 32 is further configured to: reading the information of a register corresponding to the function number according to the function number in the identity of the target downstream port; and determining whether the target downstream port is connected with the resource equipment or not according to the information of the register.
In other embodiments, downstream port 33b includes: downstream physical port 33b1 and downstream virtual port 33b 2. The memory 31 further stores a mapping relationship between the downstream virtual port of the switching device and the target downstream physical ports of other switching devices; the node device to which the switching device belongs has a use right for the resource device mounted on the target downstream physical port.
Based on this, when the processor 32 performs resource configuration on the target resource device, it is specifically configured to: if the target downstream port is a downstream virtual port of the switching device, determining the target switching device where the target downstream physical port corresponding to the target downstream port is located according to a mapping relation between the downstream virtual port of the switching device and target downstream physical ports of other switching devices; forwarding the first enumeration configuration command to the target switching device through a network interconnected between the switching device and the target switching device, so that the target switching device performs resource configuration on the target resource device according to the first enumeration configuration command; the first enumeration configuration command may reflect an application requirement of a node device to which the switching device belongs.
Optionally, the communication means followed by network interface 33c is adapted to the communication protocol followed by downstream physical port 33b 1.
Optionally, the downstream physical port 33b1 is a PCIE interface; the communication protocol followed by the downstream physical port is the PCIE protocol.
In some embodiments, when the processor 32 performs resource configuration on the target resource device, it is specifically configured to: if the target downstream port is a downstream physical port of the switching device, sending the first enumeration configuration command to the target resource device through the target downstream port so that the target resource device can respond to the first enumeration configuration command; wherein the first enumeration configuration command may reflect an application requirement of a node device to which the switching device is connected.
In other embodiments, processor 32 is further configured to: receiving a second enumeration configuration command forwarded by the other switching device through the network interface 33 c; the second enumeration configuration command includes: the identity of the downstream virtual port to be enumerated of other switching devices; determining a target downstream physical port corresponding to the downstream virtual port to be enumerated on the switching equipment according to the mapping relation between the downstream virtual ports of other switching equipment and the target downstream physical port of the switching equipment and the identity of the downstream virtual port to be enumerated; and forwarding the second enumeration configuration command to the resource device mounted on the target downstream physical port corresponding to the downstream virtual port to be enumerated, so that the resource device mounted on the target downstream physical port corresponding to the downstream virtual port to be enumerated responds to the second enumeration configuration command.
The switching device provided in this embodiment is any switching device in a network system, and the network system includes: a plurality of switching devices, and a plurality of node devices connected to upstream ports of the plurality of switching devices; the plurality of switching devices are interconnected, and the downstream ports of the plurality of switching devices are connected with the resource device, so that the resource device sharing can be realized among the plurality of node devices, that is, one node device can use the resource device mounted by other node devices. Based on this unique network architecture, the switching device can determine a target resource device to which the node device connected thereto has usage rights; and according to the application requirements corresponding to the node devices connected with the exchange device, the resource configuration is carried out on the target resource device, and further the device enumeration of the special network system is realized.
Fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 4, the computer apparatus includes: a switch module 41 and a host module 42 connected to an upstream port of the switch module 41; the downstream port of the switching module 41 is populated with resource modules 43; the switching module 41 is also communicatively connected to switching modules affiliated with other computer devices.
In this embodiment, the host module 42 may be a host system of a computer device, including: a Central Processing Unit (CPU) and/or a virtualized Central Processing Unit (vCPU).
The switch module 41 may be a switch disposed in the computer device. In this embodiment, the switching module 41 is configured to: in response to a device enumeration trigger event, determining the target resource device to which the affiliated host module 42 has usage rights; performing resource allocation on target resource equipment according to the application requirement corresponding to the host module to which the switching module 42 belongs; wherein, the target resource device comprises the resource device mounted under the exchange module subordinate to other computer devices.
In some embodiments, the switching module 41, when determining that the host module 42 to which the switching module belongs has the target resource device with usage right, is specifically configured to: and determining the target resource device with the use authority of the host module 42 to which the exchange module 41 belongs according to the pre-configured use authority relationship between the host module and the resource device. The use authority relationship between the host module and the resource device at least comprises the use authority of one host module to the resource device under the exchange module affiliated to other computer devices.
In some embodiments, the device enumeration trigger event is: a first enumeration configuration command sent by a host module 42 to which the switch module 41 belongs is received. The first enumeration configuration command includes an identification of a target downstream port to be enumerated. Accordingly, when determining that the host module to which the exchange module 41 belongs has the target resource device with usage right, the exchange module 41 is specifically configured to: under the condition that the target downstream port is connected with the resource equipment, generating routing information of first resource equipment connected with the target downstream port according to the identity of the target downstream port and the topological structure of the network system; determining whether the host module 42 to which the exchange module 41 belongs has the use authority for the first resource device according to the routing information and the use authority relationship between the host module and the resource device; if the host module 42 to which the exchange module 41 belongs has the usage right for the first resource device, the first resource device is regarded as a target resource device.
Accordingly, if the host module to which the switching module 41 belongs has no usage right for the first resource device, the switching module 41 responds to the first enumeration configuration command.
Further, when responding to the first enumeration configuration command, the exchange module 41 is specifically configured to: if the first enumeration configuration command is a configuration read request, returning an unsupported request or device absence information to the host module 42 to which the switching module 41 belongs through the upstream port; if the first enumeration configuration command is a configuration write request, returning a non-support request to the host module 42 to which the switching module 41 belongs through the upstream port; and if the first enumeration configuration command is a message, discarding the first enumeration configuration command.
Optionally, the identity of the target downstream port is: a bus number, a device number, and a function number of the target downstream port.
Optionally, the switching module 41 is further configured to: reading the information of a register corresponding to the function number according to the function number in the identity of the target downstream port; and determining whether the target downstream port is connected with the resource equipment or not according to the information of the register.
In other embodiments, the downstream port comprises: a downstream physical port and a downstream virtual port. The switching module 41 also stores the mapping relationship between its downstream virtual port and the target downstream physical ports of other switching modules; the host module 42 to which the switching module 41 belongs has a usage right for the resource device mounted on the target downstream physical port.
Based on this, when performing resource configuration on the target resource device, the switching module 41 is specifically configured to: if the target downstream port is a downstream virtual port of the switch module 41, determining a target switch module where a target downstream physical port corresponding to the target downstream port is located according to a mapping relationship between the downstream virtual port of the switch module 41 and target downstream physical ports of other switch modules; forwarding the first enumeration configuration command to the target exchange module through a network interconnected between the exchange module 41 and the target exchange module, so that the target exchange module performs resource configuration on the target resource device according to the first enumeration configuration command; the first enumeration configuration command may reflect an application requirement of a host module to which the exchange module belongs.
Optionally, the communication manner in which the switching module 41 communicates with other switching modules over the network is adapted to the communication protocol followed by the downstream physical port.
Optionally, the downstream physical port is a PCIE interface; the communication protocol followed by the downstream physical port is the PCIE protocol.
In some embodiments, when performing resource configuration on the target resource device, the switching module 41 is specifically configured to: if the target downstream port is a downstream physical port of the switching module, sending the first enumeration configuration command to the target resource device through the target downstream port so that the target resource device can respond to the first enumeration configuration command; wherein the first enumeration configuration command may reflect the application requirements of the host module 42 to which the switch module 41 is connected.
In other embodiments, the switch module 41 is further configured to: receiving a second enumeration configuration command forwarded by other switching modules; the second enumeration configuration command includes: the identity of the downstream virtual port to be enumerated of other switching modules; determining a target downstream physical port on the switch module 41 corresponding to the downstream virtual port to be enumerated according to a mapping relationship between the downstream virtual port of the other switch module and the target downstream physical port of the switch module 41 and an identity of the downstream virtual port to be enumerated; and forwarding the second enumeration configuration command to the resource device mounted on the target downstream physical port corresponding to the downstream virtual port to be enumerated, so that the resource device mounted on the target downstream physical port corresponding to the downstream virtual port to be enumerated responds to the second enumeration configuration command.
The computer device provided by this embodiment is any node in a network system, and the network system includes: the computer equipment comprises a plurality of computer equipment, and the computer equipment is interconnected through respective exchange modules, so that resource equipment sharing can be realized among the computer equipment, namely one computer equipment can use resource equipment mounted by exchange equipment in other computer equipment. Based on this unique network architecture, the switch module in the computer device can determine the target resource device to which the host module connected has usage rights; and according to the application requirement corresponding to the host module connected with the exchange module, the resource configuration is carried out on the target resource device, thereby realizing the device enumeration of the special network system.
In embodiments of the present application, the memory is used to store computer programs and may be configured to store other various data to support operations on the device on which it is located. Wherein the processor may execute a computer program stored in the memory to implement the corresponding control logic. The memory may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
In the embodiments of the present application, the processor may be any hardware processing device that can execute the above described method logic. Alternatively, the processor may be a Central Processing Unit (CPU), a virtualized CPU (vCPU), a Graphics Processing Unit (GPU), or a Micro Control Unit (MCU); programmable devices such as Field-Programmable Gate arrays (FPGAs), Programmable Array Logic devices (PALs), General Array Logic devices (GAL), Complex Programmable Logic Devices (CPLDs), etc. may also be used; or Advanced Reduced Instruction Set (RISC) processors (ARM), or System On Chip (SOC), etc., but is not limited thereto.
In embodiments of the present application, the communication component is configured to facilitate wired or wireless communication between the device in which it is located and other devices. The device in which the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G, 5G or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component may also be implemented based on Near Field Communication (NFC) technology, Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In the embodiment of the present application, the display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the display screen includes a touch panel, the display screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
In embodiments of the present application, a power supply component is configured to provide power to various components of the device in which it is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
In embodiments of the present application, the audio component may be configured to output and/or input audio signals. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals. For example, for devices with language interaction functionality, voice interaction with a user may be enabled through an audio component, and so forth.
It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (29)

1. A network system, comprising: a plurality of switching devices, and a plurality of node devices connected to upstream ports of the plurality of switching devices; the plurality of switching devices are interconnected, and the downstream ports of the plurality of switching devices are connected with resource devices;
a first switching device to: in response to a device enumeration trigger event, determining a target resource device of which the first node device has a usage right; the first node device is a node device to which the first switching device belongs; according to the application requirement corresponding to the first node equipment, resource configuration is carried out on the target resource equipment;
wherein, there is at least one target node device in the multiple node devices, and any target resource device with the use authority of the target node device includes: and resource devices which are hung on the downstream ports of other switching devices except the target switching device which is subordinate to the target node device.
2. The system of claim 1, wherein the first switching device, when determining that the first node device has the target resource device with usage right, is specifically configured to:
and determining the target resource equipment with the use authority of the first node equipment according to the pre-configured use authority relationship between the node equipment and the resource equipment.
3. The system of claim 2, the device enumeration trigger event being: receiving an enumeration configuration command sent by the first node device; the enumeration configuration command comprises an identity of a target downstream port to be enumerated;
when determining that the first node device has the target resource device with the usage right, the first switching device is specifically configured to:
under the condition that the target downstream port is connected with resource equipment, generating routing information of first resource equipment connected with the target downstream port according to the identity of the target downstream port and the topological structure of the network system;
determining whether the first node equipment has the use authority for the first resource equipment or not according to the routing information and the use authority relation between the node equipment and the resource equipment;
and if the first node equipment has the use permission for the first resource equipment, taking the first resource equipment as target resource equipment.
4. The system of claim 3, the downstream port comprising: a downstream physical port and a downstream virtual port; the plurality of switching devices are preset with mapping relations between the downstream virtual port of each target switching device and target downstream physical ports of other switching devices except the target switching device; and the target node equipment to which the target switching equipment belongs has the use authority to the resource equipment mounted on the target downstream physical port.
5. The system of claim 4, if the target downstream port is a downstream virtual port of the first switch device; when the first switching device performs resource configuration on the target resource device, the first switching device is specifically configured to:
determining second switching equipment where a target downstream physical port corresponding to the target downstream port is located according to the mapping relation;
forwarding the enumeration configuration command to the second switching device through an interconnected network between the first switching device and the second switching device, so that the second switching device performs resource configuration on the target resource device according to the enumeration configuration command;
wherein the enumeration configuration command may reflect an application requirement of a node device to which the switching device belongs.
6. The system according to claim 5, wherein when performing resource configuration on the target resource device according to the enumeration configuration command, the second switch device is specifically configured to:
forwarding the enumeration configuration command to the target resource device, so that the target resource device responds to the enumeration configuration command.
7. The system according to claim 4, wherein if the target downstream port is a downstream physical port of the first switching device, the first switching device is specifically configured to, when performing resource configuration on the target resource device:
sending the enumeration configuration command to the target resource device through the target downstream port, so that the target resource device can respond to the enumeration configuration command;
wherein the enumeration configuration command may reflect an application requirement of a node device to which the first switching device is connected.
8. The system of claim 3, the first switching device, further to:
and if the first node device has no use permission for the first resource device, the first exchange device responds to the enumeration configuration command.
9. The system of claim 4, further comprising: managing and controlling equipment;
the management and control device is used for: according to the requirements of the plurality of node devices on resources and the use conditions of the resource devices with the use permission at present, target resource devices with the use permission are dynamically configured for the plurality of node devices; and providing the usage right relation of the node device and the resource device to the plurality of switching devices.
10. The system of claim 9, the governing device, further to:
recording the mapping relation when configuring resource equipment with use authority for the plurality of node equipment each time; and providing the mapping relationship to the plurality of switching devices.
11. The system of claim 9, the governing device, further to:
and after configuring the resource devices with the use permission for the plurality of node devices each time, indicating the plurality of node devices to perform device enumeration.
12. The system according to any of claims 3-11, wherein each node device is configured to configure an identity for a downstream port of a switching device belonging to the node device.
13. A device enumeration method is applicable to a switching device, wherein the switching device comprises an upstream port and a downstream port; the upstream port is connected with node equipment; the downstream port is connected with resource equipment; the switching equipment is also interconnected with switching equipment affiliated to other node equipment; the method comprises the following steps:
responding to a device enumeration trigger event, and determining a target resource device of which the node device to which the switching device belongs has a use authority;
performing resource allocation on the target resource equipment according to the application requirement corresponding to the node equipment to which the switching equipment belongs;
wherein, the target resource device includes the resource device mounted by the exchange device affiliated to other node devices.
14. The method of claim 13, the determining that the node device to which the switching device belongs has a target resource device with usage rights, comprising:
determining target resource equipment with use authority of the node equipment to which the exchange equipment belongs according to a preset use authority relationship between the node equipment and the resource equipment;
the usage right relation between the node device and the resource device at least comprises the usage right of one node device to the resource device under the exchange device which is subordinate to other node devices.
15. The method of claim 14, the device enumeration trigger event being: receiving a first enumeration configuration command sent by node equipment to which the switching equipment belongs; the first enumeration configuration command comprises an identity of a target downstream port to be enumerated;
the determining, according to a pre-configured usage right relationship between the node device and the resource device, a target resource device to which the node device to which the switching device belongs has a usage right, includes:
under the condition that the target downstream port is connected with resource equipment, generating routing information of first resource equipment connected with the target downstream port according to the identity of the target downstream port and the topological structure of the network system;
determining whether the node equipment to which the switching equipment belongs has the use authority on the first resource equipment or not according to the routing information and the use authority relation between the node equipment and the resource equipment;
and if the node equipment to which the switching equipment belongs has the use authority for the first resource equipment, taking the first resource equipment as target resource equipment.
16. The method of claim 15, the identity of the target downstream port being: a bus number, a device number, and a function number of the target downstream port.
17. The method of claim 16, further comprising:
reading the information of a register corresponding to the function number according to the function number in the identity of the target downstream port;
and determining whether the target downstream port is connected with resource equipment or not according to the information of the register.
18. The method of claim 15, the downstream port comprising: a downstream physical port and a downstream virtual port; the switching equipment is preset with a mapping relation between a downstream virtual port of the switching equipment and a target downstream physical port of other switching equipment; and the node equipment to which the switching equipment belongs has the use authority to the resource equipment mounted on the target downstream physical port.
19. The method of claim 18, wherein if the target downstream port is a downstream virtual port of the switch device, the performing resource allocation on the target resource device according to an application requirement corresponding to a node device to which the switch device belongs includes:
determining target switching equipment where a target downstream physical port corresponding to the target downstream port is located according to a mapping relation between a downstream virtual port of the switching equipment and target downstream physical ports of other switching equipment;
forwarding the first enumeration configuration command to the target switching device through a network interconnected between the switching device and the target switching device, so that the target switching device performs resource configuration on the target resource device according to the first enumeration configuration command;
wherein the first enumeration configuration command may reflect an application requirement of a node device to which the switching device belongs.
20. The method of claim 19, wherein the network interconnecting the switching device and the target switching device conforms to a communication protocol conforming to the downstream physical port.
21. The method of claim 20, the downstream physical port is a PCIE interface; the communication protocol followed by the downstream physical port is a PCIE protocol.
22. The method of claim 18, wherein if the target downstream port is a downstream physical port of the switch device, the performing resource allocation on the target resource device according to an application requirement corresponding to a node device to which the switch device belongs includes:
sending the first enumeration configuration command to the target resource device through the target downstream port, so that the target resource device can respond to the first enumeration configuration command;
wherein the first enumeration configuration command may reflect an application requirement of a node device to which the switching device is connected.
23. The method of claim 15, further comprising:
and if the node equipment to which the switching equipment belongs has no use permission on the first resource equipment, responding to the first enumeration configuration command by the switching equipment.
24. The method of claim 23, the switching device responding to the first enumeration configuration command, comprising:
if the first enumeration configuration command is a configuration read request, returning an unsupported request or equipment nonexistence information to the node equipment to which the exchange equipment belongs;
if the first enumeration configuration command is a configuration write request, returning a non-support request to the node equipment to which the switching equipment belongs;
and if the first enumeration configuration command is a message, discarding the first enumeration configuration command.
25. The method of claim 18, further comprising:
receiving a second enumeration configuration command forwarded by other switching equipment; the second enumeration configuration command includes: the identity of the downstream virtual port to be enumerated of the other switching device;
determining a target downstream physical port corresponding to the downstream virtual port to be enumerated on the switching device according to a mapping relation between the downstream virtual port of the other switching device and the target downstream physical port of the switching device and the identity of the downstream virtual port to be enumerated;
forwarding the second enumeration configuration command to the resource device mounted on the target downstream physical port corresponding to the downstream virtual port to be enumerated, so that the resource device mounted on the target downstream physical port corresponding to the downstream virtual port to be enumerated responds to the second enumeration configuration command.
26. The method of any of claims 13-25, the switching device being a switching switch deployed at a node device to which the switching device belongs.
27. A switching device, comprising: a memory, a processor, and a communications component; the communication assembly includes: an upstream port, a downstream port, and a network interface; the upstream port is used for connecting node equipment to which the switching equipment belongs; the downstream port is used for connecting resource equipment; the network interface is used for being in communication connection with switching equipment which is subordinate to other node equipment;
the memory for storing a computer program;
the processor is coupled to the memory for executing the computer program for performing the steps of the method of any of claims 13-26.
28. A computer device, comprising: the host computer comprises a switching module and a host computer module connected with an upstream port of the switching module; a downstream port of the switching module is hung with resource equipment; the switching module is also in communication connection with switching modules affiliated to other computer equipment;
the switching module is configured to: responding to a device enumeration trigger event, and determining a target resource device of which the affiliated host module has the use authority; performing resource allocation on the target resource equipment according to the application requirement corresponding to the host module to which the exchange module belongs; wherein, the target resource device comprises the resource device mounted under the exchange module subordinate to other computer devices.
29. A computer-readable storage medium storing computer instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 13-26.
CN202010270973.2A 2020-04-08 2020-04-08 Device enumeration method, device, system and storage medium Active CN113297124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010270973.2A CN113297124B (en) 2020-04-08 2020-04-08 Device enumeration method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010270973.2A CN113297124B (en) 2020-04-08 2020-04-08 Device enumeration method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN113297124A true CN113297124A (en) 2021-08-24
CN113297124B CN113297124B (en) 2022-05-06

Family

ID=77317954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010270973.2A Active CN113297124B (en) 2020-04-08 2020-04-08 Device enumeration method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN113297124B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028430A (en) * 2023-03-28 2023-04-28 飞腾信息技术有限公司 Scanning method of pcie equipment and system-on-chip
WO2024082919A1 (en) * 2022-10-20 2024-04-25 思瑞浦微电子科技(苏州)股份有限公司 Topological network and management method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101124541A (en) * 2005-02-25 2008-02-13 国际商业机器公司 Modification of virtual adapter resources in a logically partitioned data processing system
CN102119508A (en) * 2008-06-10 2011-07-06 惠普开发有限公司 Presenting multi-function devices behind a switch hierarchy as a single function device
CN102707991A (en) * 2012-05-17 2012-10-03 中国科学院计算技术研究所 Multi-root I/O (Input/Output) virtualization sharing method and system
CN102722414A (en) * 2012-05-22 2012-10-10 中国科学院计算技术研究所 Input/output (I/O) resource management method for multi-root I/O virtualization sharing system
CN105721357A (en) * 2016-01-13 2016-06-29 华为技术有限公司 Exchange device, and peripheral component interconnection express (PCIe) system and initialization method thereof
US20180074978A1 (en) * 2010-04-20 2018-03-15 Avago Technologies General Ip (Singapore) Pte. Ltd. Inline pci-iov adapter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101124541A (en) * 2005-02-25 2008-02-13 国际商业机器公司 Modification of virtual adapter resources in a logically partitioned data processing system
CN102119508A (en) * 2008-06-10 2011-07-06 惠普开发有限公司 Presenting multi-function devices behind a switch hierarchy as a single function device
US20180074978A1 (en) * 2010-04-20 2018-03-15 Avago Technologies General Ip (Singapore) Pte. Ltd. Inline pci-iov adapter
CN102707991A (en) * 2012-05-17 2012-10-03 中国科学院计算技术研究所 Multi-root I/O (Input/Output) virtualization sharing method and system
CN102722414A (en) * 2012-05-22 2012-10-10 中国科学院计算技术研究所 Input/output (I/O) resource management method for multi-root I/O virtualization sharing system
CN105721357A (en) * 2016-01-13 2016-06-29 华为技术有限公司 Exchange device, and peripheral component interconnection express (PCIe) system and initialization method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024082919A1 (en) * 2022-10-20 2024-04-25 思瑞浦微电子科技(苏州)股份有限公司 Topological network and management method
CN116028430A (en) * 2023-03-28 2023-04-28 飞腾信息技术有限公司 Scanning method of pcie equipment and system-on-chip

Also Published As

Publication number Publication date
CN113297124B (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN108370341B (en) Resource allocation method, virtual network function manager and network element management system
CN113342478B (en) Resource management method, device, network system and storage medium
CN111654519B (en) Method and device for transmitting data processing requests
CN107959582B (en) Slice instance management method and device
CN102316043B (en) Port virtualization method, switch and communication system
CN112765084B (en) Computer device, virtualization acceleration device, data transmission method, and storage medium
CN113297124B (en) Device enumeration method, device, system and storage medium
CN102388583B (en) Series rate allocation method, relative device and system
CN109417492B (en) Network function NF management method and NF management equipment
US9075542B2 (en) Storage system
US20230359372A1 (en) Mirrored Memory Configuration Method and Apparatus, and Computer Storage Medium
CN110837488B (en) Message transmission method and device
CN113934674B (en) PCIE (peripheral component interface express) bus-based command transmission method and system on chip
CN115913937B (en) Container multi-network card network configuration method, device, equipment and storage medium
CN113300984B (en) Communication method, device, system and storage medium
CN110162396A (en) Method for recovering internal storage, device, system and storage medium
KR20210005653A (en) Terminal application activation method, device and system
US9116881B2 (en) Routing switch apparatus, network switch system, and routing switching method
CN114640726A (en) Message processing method, device, system and storage medium
CN114710549B (en) Dynamic management method, system and service node for network card in container platform
US10216664B2 (en) Remote resource access method and switching device
CN112671936B (en) Special transmission module adapting method and device for different domestic systems
CN109614354B (en) Interface distribution method, board card, equipment and storage medium
CN113342456A (en) Connection method, device, equipment and storage medium
US20200220812A1 (en) Smart Network Interface Peripheral Cards

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant