CN116701287B - PCIE-based multi-device compatible device expansion method - Google Patents

PCIE-based multi-device compatible device expansion method Download PDF

Info

Publication number
CN116701287B
CN116701287B CN202310993462.7A CN202310993462A CN116701287B CN 116701287 B CN116701287 B CN 116701287B CN 202310993462 A CN202310993462 A CN 202310993462A CN 116701287 B CN116701287 B CN 116701287B
Authority
CN
China
Prior art keywords
preset
pcie
transmission
equipment
control module
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.)
Active
Application number
CN202310993462.7A
Other languages
Chinese (zh)
Other versions
CN116701287A (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.)
Xi'an Ganxin Technology Co ltd
Original Assignee
Xi'an Ganxin Technology Co 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 Xi'an Ganxin Technology Co ltd filed Critical Xi'an Ganxin Technology Co ltd
Priority to CN202310993462.7A priority Critical patent/CN116701287B/en
Publication of CN116701287A publication Critical patent/CN116701287A/en
Application granted granted Critical
Publication of CN116701287B publication Critical patent/CN116701287B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • G06F1/206Cooling means comprising thermal management
    • 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/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/111Switch interfaces, e.g. port details
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to the technical field of equipment expansion, in particular to a multi-equipment compatible equipment expansion method based on PCIE, which comprises the following steps of S1, completing the construction of the connection between a computer main board and multi-equipment; step S2, judging whether the data transmission condition of each device meets a preset standard or not; step S3, determining the reason that the data transmission condition of the single equipment does not accord with the preset standard; step S4, whether the data transmission condition of the equipment accords with a preset standard or not is secondarily judged; step S5, it is judged that the expansion of the single device is completed. The efficiency of the data transmission of the equipment to the computer main board is improved.

Description

PCIE-based multi-device compatible device expansion method
Technical Field
The invention relates to the technical field of equipment expansion, in particular to a multi-equipment compatible equipment expansion method based on PCIE.
Background
PCIE is an abbreviation for Peripheral Component Interconnect Express, chinese means external device interconnect express channel. It is a bus standard for computer, and is used for connecting computer main board with various external equipments, such as display card, network card and sound card.
PCIE inherits from PCI and PCI-x protocols and is the main stream I/O system bus in the current computer system. Compared with PCI and PCI-X, the PCIE bus has higher high bandwidth, the single-way (lane) unidirectional bandwidth of PCIE2.0 standard reaches 5Gpbs, and the PCIE3.0 standard reaches 8Gbps. Because of the serial transmission protocol, the PCIE bus can implement a longer transmission distance, and even can achieve a transmission distance of hundreds of meters by using an optical module. In addition, PCIE buses provide rich quality of service (QoS) characteristics, and point-to-point link reliability guarantees.
Chinese patent publication No.: CN114006875a discloses a method for expanding a PCIE system, a PCIE switching device and a PCIE system, wherein the PCIE switching device includes an upstream port, a port proxy device and a plurality of first downstream ports, the upstream port is connected with the port proxy device, the port proxy device is connected with the plurality of first downstream ports, and the first downstream ports are used for connecting PCIE endpoint devices; the connections of the plurality of first downstream ports and the PCIE endpoint devices below the plurality of first downstream ports share the same bus number. Sharing the same bus number by connecting the plurality of first downstream ports with the PCIE endpoint device below; it follows that the prior art has the following problems: when a plurality of devices are connected with a computer main board through ports, the planning of the transmission bandwidth occupied by each device is not considered, and after the expansion of the main board to the plurality of devices is completed, the data transmission condition of each device is monitored, so that the data transmission efficiency of the devices to the computer main board and the data transmission accuracy are affected.
Disclosure of Invention
Therefore, the invention provides a multi-device compatible device expansion method based on PCIE, which is used for solving the problems that when a plurality of devices are connected with a computer main board through ports, the transmission bandwidth occupied by each device is not considered to be planned, the situation of data transmission of each device is monitored after the expansion of the main board to the plurality of devices is completed, and the efficiency of the data transmission of the devices to the computer main board and the accuracy of the data transmission are affected in the prior art.
In order to achieve the above object, the present invention provides a method for expanding multi-device compatible devices based on PCIE, including:
step S1, connecting a computer main board with a plurality of switches through PCIE, and sequentially connecting each switch with a plurality of devices to complete the construction of the connection between the computer main board and the plurality of devices;
step S2, when the switch is newly added with equipment and the accumulated operation time length of the computer main board after the equipment is newly added reaches integer times of the preset operation time length, judging whether the data transmission condition of each equipment accords with a preset standard according to the acquired byte number of the data transmitted by each equipment in the preset time length, and when judging that the data transmission condition of a single equipment does not accord with the preset standard, adjusting the clock frequency of PCIE and/or the transmission bandwidth of the switch corresponding to the single equipment to a corresponding value according to the difference value of the second preset byte number and the byte number of the data transmitted by the equipment in the preset time length;
step S3, when the central control module judges that the data transmission condition of a single device does not meet the preset standard, controlling each device to sequentially transmit preset data information, determining the reason that the data transmission condition of the device does not meet the preset standard according to the recorded transmission time length used by each device to transmit the data information, judging whether to increase the rotating speed of a cooling fan in the computer main board to a corresponding value according to the reason, or controlling a switch connected with the device to increase the transmission bandwidth of the device to the corresponding value according to the number of times that the single device transmits data in the preset operation time length;
step S4, when the central control module judges that the data transmission condition of a single device meets the preset standard, the central control module controls the device to transmit preset data information, compares the data information acquired by the computer main board with the preset data information, judges whether the data transmission condition of the device meets the preset standard for the second time according to the comparison result, and determines whether to lower the clock frequency of the PCIE to a corresponding value according to the judgment result;
and S5, when the central control module secondarily judges that the data transmission condition of the single equipment meets the preset standard, controlling the equipment to maintain the current operation parameters, and judging that the expansion of the single equipment is completed.
Further, in the step S2, the central control module determines whether the data transmission status of the device meets the preset standard according to the obtained byte number of the data transmitted by the single device within the preset time period, and performs a secondary determination on whether the data transmission status of the device meets the preset standard when determining that the data transmission status of the single device meets the preset standard,
and determining the reason that the data transmission condition of the equipment does not meet the preset standard when the data transmission condition of the equipment does not meet the preset standard, or adjusting the clock frequency of PCIE and/or the corresponding transmission bandwidth of the switch for the equipment to a corresponding value.
Further, the central control module is provided with a plurality of processing modes aiming at the data transmission condition of the single equipment, wherein the processing modes do not accord with the preset standard, and the processing modes comprise:
determining the reason that the data transmission condition of the equipment does not accord with the preset standard according to the difference value between the transmission time length of the equipment for transmitting the preset data information and the average value of the transmission time lengths of the equipment for transmitting the preset data information in the first judging mode;
and under a second judging mode, according to the difference value between the second preset byte number and the byte number of the data transmitted by the single device in the preset duration, the clock frequency of the PCIE and/or the transmission bandwidth of the switch corresponding to the single device for the device are/is increased to a corresponding value.
Further, the first determination mode satisfies that the number of bytes of data transmitted by a single device in a preset duration is less than or equal to a first preset number of bytes, and the second determination mode satisfies that the number of bytes of data transmitted by a single device in a preset duration is less than or equal to a second preset number of bytes and greater than the first preset number of bytes.
Further, the central control module records the difference value between the transmission time length of transmitting preset data information by a single device and the average value of the transmission time length of transmitting the preset data information by each device as a transmission difference value in a first judging mode, and judges the reason that the data transmission condition of the device does not accord with the preset standard according to the transmission difference value; the central control module is provided with a plurality of processing modes aiming at the reasons, and the processing modes comprise:
when the reason is determined to be that the temperature of the computer main board is too high, the rotating speed of the heat reducing fan of the computer main board is adjusted to be a corresponding value according to the difference value between the preset transmission difference value and the transmission difference value, or,
and when the reason is determined to be insufficient transmission bandwidth of the single device, the transmission bandwidth of the corresponding switch aiming at the device is increased to a corresponding value according to the number of times of data transmission in the preset operation time of the device.
Further, the central control module judges that the reason is that the temperature of the computer main board is too high in a first transmission judging mode, or judges that the reason is that the transmission bandwidth of the single equipment is insufficient in a second transmission judging mode; the first transmission judgment mode meets the condition that the transmission difference value is smaller than or equal to a preset transmission difference value, and the second transmission judgment mode meets the condition that the transmission difference value is larger than the preset transmission difference value.
Further, the central control module controls a single device to transmit preset data information in a third judging mode, and compares the data information acquired by the computer main board with the preset data information to judge whether the data transmission condition of the device meets a preset standard or not secondarily according to the byte proportion of the acquired number of bytes of the matching error and the byte proportion of the preset data information; the third determination mode satisfies that the number of bytes of data transmitted by a single device in a preset time period is greater than the second preset number of bytes.
Further, the central control module is provided with a plurality of processing modes aiming at the secondary judgment result, including:
when the data transmission condition of the single device is judged to be not in accordance with the preset standard, the clock frequency of PCIE is reduced to a corresponding value according to the difference value between the byte specific gravity and the preset byte specific gravity,
and when the data transmission condition of the single device is judged to be in accordance with the preset standard secondarily, controlling the device to maintain the current operation parameters.
Further, when the central control module completes the adjustment of the clock frequency of the PCIE, the corresponding switch increases the transmission bandwidth of the switch for a single device to B' through a preset calculation formula, and sets upWherein B is the transmission bandwidth of the device before the adjustment of the PCIE clock frequency, f' is the adjusted PCIE clock frequency, and f is the PCIE clock frequency before the adjustment.
Further, the central control module is provided with a plurality of byte adjustment modes for determining the first preset byte number and the second preset byte number according to the total number of the acquired devices indirectly connected with the computer main board under the condition that the running time of the computer main board reaches the integral multiple of the preset running time, wherein each adjustment mode is different in adjustment size of the first preset byte number and the second preset byte number.
Compared with the prior art, the invention has the beneficial effects that when a plurality of devices are connected with the computer main board through the PCIE and the switch, one port of the single switch is connected with a single channel of the PCIE, the port of the single switch is respectively connected with a plurality of devices, wherein the PCIE is connected with the plurality of switches to complete the construction of the computer main board on the plurality of devices; the network card of the PCIE interface is connected with the switch so as to connect the computer main board to the network, in this case, the PCIE channels are used for transmitting data from the computer to the network card and transmitting the data to other devices through the switch, so that occupation of the number of PCIE channels is reduced.
Further, the central control module regularly detects the data transmission condition of each device, and the central control module obtains the byte number of the data transmitted by each device within the preset time length to obtain the speed of the device for data transmission, when the transmitted byte number is too low, namely, the data transmission speed of the device is judged to be too slow to meet the standard of the device for data transmission, the reason that the data transmission condition of the device does not meet the preset standard is further obtained, so that the corresponding part of the device is pertinently adjusted to improve the data transmission speed, and the data transmission efficiency of the device to the computer main board is further improved.
Further, when the number of bytes transmitted is less, it is determined that the data transmission speed is too slow due to too low transmission bandwidth allocated by the switch for the device or too low clock frequency of PCIE, the central control module will acquire the switch connected with the device, and adjust the transmission bandwidth allocated by the switch for the device, or adjust the clock frequency of PCIE to increase the transmission speed of a single device to data, where the number of bytes of data transmitted in a preset duration represents the transmission speed of data, and the transmission speed of data is equal to the number of bytes divided by the preset duration, and allocate the transmission bandwidth of each device according to the specific operation condition of each device, so as to further improve the efficiency of the device to data transmission of the computer motherboard.
Further, when the number of bytes transmitted meets the preset standard, namely in a third judging mode, the single device transmits preset data information, the central control module compares the data information acquired by the computer main board with the preset data information to detect the accuracy of data transmission, and when the number of bytes transmitted in error is too large, the situation that data is missing or is wrong caused by too large clock frequency of PCIE is judged, the clock frequency of PCIE is regulated, the data transmission speed is ensured, and meanwhile, the accuracy of data transmission is further effectively improved.
Further, judging that each device sequentially transmits preset data information and recording the transmission time length of each device for transmitting the data information under the first judging mode, and acquiring the specific condition of each device for data transmission by the central control module so as to determine whether the condition of data transmission is only performed on a single device or whether the condition of data transmission is too slow by each device; for the situation that each device is too slow for data transmission, the situation that the data transmission situation is poor due to the fact that the temperature of a computer main board is too high is judged, namely the rotating speed of a heat reducing fan of the computer main board is adjusted to adjust the temperature of the computer main board, and the data transmission efficiency of each device is further improved; when the data transmission is too slow, the situation that the data transmission only occurs on a single device is judged that the transmission bandwidth allocated to the device by the switch is unreasonable, the transmission bandwidth of the device is heightened, and the efficiency of the data transmission of the device to the computer main board is further improved while the transmission bandwidths of all channels of the PCIE are allocated reasonably.
Further, when the adjustment of the clock frequency of the PCIE is completed, the central control module adjusts the transmission bandwidth of each device, so that the transmission bandwidth is coordinated with the clock frequency of the PCIE, and the efficiency of the device for data transmission to the computer motherboard is further improved.
Further, before starting to judge the data transmission condition of each device, the central control module adjusts the judging standard, namely the first preset byte number and the second preset byte number, according to the number of the devices indirectly connected with the computer main board, so that the detection standard of the central control module can be adaptively adjusted according to the specific conditions of the device expansion, and meanwhile, the data transmission efficiency of the device to the computer main board is further improved.
Drawings
Fig. 1 is a flowchart of steps of a PCIE-based multi-device compatible device extension method according to an embodiment of the present invention;
fig. 2 is a flowchart of a determination mode in which a central control module determines whether a data transmission condition of a single device meets a preset standard according to the acquired byte number of data transmitted by the single device within a preset duration;
fig. 3 is a flowchart of a method for determining clock frequency for PCIE and/or transmission bandwidth of a switch corresponding to a single device for the device by a central control module according to the obtained byte difference in the embodiment of the present invention;
fig. 4 is a flowchart of a method for determining the rotation speed of the cooling fan for the computer motherboard by the central control module according to the obtained rotation speed difference.
Detailed Description
In order that the objects and advantages of the invention will become more apparent, the invention will be further described with reference to the following examples; it should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are merely for explaining the technical principles of the present invention, and are not intended to limit the scope of the present invention.
It should be noted that, in the description of the present invention, terms such as "upper," "lower," "left," "right," "inner," "outer," and the like indicate directions or positional relationships based on the directions or positional relationships shown in the drawings, which are merely for convenience of description, and do not indicate or imply that the apparatus or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
Furthermore, it should be noted that, in the description of the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention can be understood by those skilled in the art according to the specific circumstances.
Referring to fig. 1, fig. 2, fig. 3, and fig. 4, which are respectively a step flowchart of a multi-device compatible device expansion method based on PCIE according to an embodiment of the present invention, a decision mode flowchart of determining whether a data transmission condition of a single device meets a preset standard according to a byte number of data transmitted by the single device within a preset time period, an adjustment mode flowchart of determining a clock frequency of PCIE and/or a transmission bandwidth of a switch corresponding to the single device according to a obtained byte difference, and an adjustment mode flowchart of determining a rotation speed of a cooling fan of a computer motherboard according to a obtained rotation speed difference by a central control module; the embodiment of the invention discloses a multi-device compatible device expansion method based on PCIE, which comprises the following steps:
step S1, connecting a computer main board with a plurality of switches through PCIE, and sequentially connecting each switch with a plurality of devices to complete the construction of the connection between the computer main board and the plurality of devices;
step S2, when the switch is newly added with equipment and the accumulated operation time length of the computer main board after the equipment is newly added reaches integer times of the preset operation time length, judging whether the data transmission condition of each equipment accords with a preset standard according to the acquired byte number of the data transmitted by each equipment in the preset time length, and when judging that the data transmission condition of a single equipment does not accord with the preset standard, adjusting the clock frequency of PCIE and/or the transmission bandwidth of the switch corresponding to the single equipment to a corresponding value according to the difference value of the second preset byte number and the byte number of the data transmitted by the equipment in the preset time length;
step S3, when the central control module judges that the data transmission condition of a single device does not meet the preset standard, controlling each device to sequentially transmit preset data information, determining the reason that the data transmission condition of the device does not meet the preset standard according to the recorded transmission time length used by each device to transmit the data information, judging whether to increase the rotating speed of a cooling fan in the computer main board to a corresponding value according to the reason, or controlling a switch connected with the device to increase the transmission bandwidth of the device to the corresponding value according to the number of times that the single device transmits data in the preset operation time length;
step S4, when the central control module judges that the data transmission condition of a single device meets the preset standard, the central control module controls the device to transmit preset data information, compares the data information acquired by the computer main board with the preset data information, judges whether the data transmission condition of the device meets the preset standard for the second time according to the comparison result, and determines whether to lower the clock frequency of the PCIE to a corresponding value according to the judgment result;
and S5, when the central control module secondarily judges that the data transmission condition of the single equipment meets the preset standard, controlling the equipment to maintain the current operation parameters, and judging that the expansion of the single equipment is completed.
Wherein the preset operation time is 30 days.
Specifically, when the operation duration of the computer motherboard reaches an integer multiple of a preset operation duration, the central control module determines, according to the acquired byte number of data transmitted by the single device within the preset duration, whether the data transmission condition of the single device meets a preset standard, where:
the first judging mode is that the central control module judges that the data transmission condition of the single device does not accord with a preset standard, and the central control module judges that each device sequentially transmits preset data information so as to judge the reason that the data transmission condition of the single device does not accord with the preset standard according to the recorded transmission time length used by each device for transmitting the data information; the first judging mode meets the condition that the byte number of data transmitted by a single device in a preset time period is less than or equal to a first preset byte number;
the second judging mode is that the central control module judges that the data transmission condition of the single device does not accord with a preset standard, and according to the difference value between the second preset byte number and the byte number of the data transmitted by the single device in the preset time length, the clock frequency of PCIE and/or the transmission bandwidth of a switch corresponding to the single device is increased to a corresponding value; the second judging mode meets the condition that the byte number of data transmitted by a single device in a preset time period is smaller than or equal to a second preset byte number and larger than the first preset byte number, and the first preset byte number is smaller than the second preset byte number;
the third judging mode is that the central control module judges that the data transmission condition of the single device meets the preset standard, the central control module judges that the single device transmits preset data information, and the central control module compares the data information acquired by the computer main board with the preset data information to judge whether the data transmission condition of the single device meets the preset standard or not for the second time according to the comparison result; the third determination mode satisfies that the number of bytes of data transmitted by a single device in a preset time period is greater than the second preset number of bytes.
Wherein the first preset byte number is 48GB, the second preset byte number is 78GB, and the preset duration is 30S.
Specifically, the central control module judges each device to sequentially transmit preset data information and records the transmission time length of each device to transmit the data information in the first judging mode, calculates the average transmission time length of each device, calculates the difference value between the transmission time length used by a single device to transmit the preset data information and the average transmission time length, marks the difference value as a transmission difference value, and determines the transmission mode of the reason that the data transmission condition of the single device does not meet the preset standard according to the obtained transmission difference value, wherein:
the first transmission judgment mode is that the reason that the central control module judges that the data transmission condition of the single equipment does not accord with the preset standard is that the temperature of a computer main board is too high, and the rotating speed of a heat reducing fan of the computer main board is regulated to be a corresponding value according to the difference value between the preset transmission difference value and the transmission difference value; the first transmission judgment mode meets the condition that the transmission difference value is smaller than or equal to a preset transmission difference value;
the second transmission judgment mode is that the central control module judges that the reason that the data transmission condition of the single device does not accord with the preset standard is that the transmission bandwidth of the device is insufficient, and the transmission bandwidth of a switch corresponding to the single device is increased to a corresponding value according to the number of times of data transmission in the preset operation time of the device; the second transmission judgment mode satisfies that the transmission difference value is larger than the preset transmission difference value.
Wherein, the preset transmission difference value is 17S.
Specifically, the central control module determines that the single device transmits preset data information in the third determination mode, and compares the data information acquired by the computer motherboard with the preset data information to acquire the byte specific gravity of the number of bytes of mismatching to the number of bytes of the preset data information, and the central control module determines whether the data transmission condition of the single device meets the device secondary determination mode of the preset standard according to the byte specific gravity, wherein:
the first equipment secondary judgment mode is that the central control module judges that the data transmission condition of the single equipment does not accord with a preset standard, and the clock frequency of PCIE is reduced to a corresponding value according to the difference value between the byte specific gravity and the preset byte specific gravity; the second judging mode of the first equipment meets the condition that the specific gravity of the byte is larger than the preset specific gravity of the byte;
the second equipment secondary judgment mode is that the central control module judges that the data transmission condition of the single equipment accords with a preset standard, and judges that the equipment maintains the current operation parameters to operate; the second equipment secondary judgment mode meets the condition that the specific gravity of the bytes is smaller than or equal to the preset specific gravity of the bytes.
Wherein the specific gravity of the preset byte is 1 multiplied by 10 -4
Specifically, the central control module calculates a difference value between a second preset byte number and the byte number of data transmitted by a single device in a preset duration in the second determination mode, marks the difference value as a byte difference value, and determines a clock frequency for PCIE and/or an adjustment mode of a transmission bandwidth of a switch corresponding to the single device for the device according to the obtained byte difference value, wherein:
the first adjusting mode is that the central control module uses a first transmission bandwidth adjusting coefficient to adjust the transmission bandwidth of a switch corresponding to a single device for the device to a corresponding value; the first adjustment mode meets the condition that the byte difference value is smaller than or equal to a first preset byte difference value;
the second adjusting mode is that the central control module adjusts the clock frequency of the PCIE to a corresponding value by using a first preset clock adjusting coefficient; the second adjustment mode satisfies that the byte difference value is smaller than or equal to a second preset byte difference value and larger than the first preset byte difference value, and the first preset byte difference value is smaller than the second preset byte difference value;
the third adjusting mode is that the central control module adjusts the transmission bandwidth of a switch corresponding to a single device to a corresponding value by using a first transmission bandwidth adjusting coefficient, and adjusts the clock frequency of PCIE to the corresponding value by using a first preset clock adjusting coefficient; the third adjustment mode satisfies that the byte difference is greater than the second preset byte difference.
The first preset byte difference value is 9GB, the second preset byte difference value is 18GB, the first transmission bandwidth adjusting coefficient is 1.12, and the first preset clock adjusting coefficient is 1.11.
Specifically, the central control module calculates a difference value between a preset transmission difference value and a transmission difference value in the first transmission judgment mode, marks the difference value as a rotation speed difference value, and determines an adjustment mode of the rotation speed of the cooling fan for the computer main board according to the obtained rotation speed difference value, wherein:
the first rotating speed adjusting mode is that the central control module adjusts the rotating speed of the heat reducing fan of the computer main board to a corresponding value by using a first preset rotating speed adjusting coefficient; the first rotating speed adjusting mode meets the condition that the rotating speed difference value is smaller than or equal to a first preset rotating speed difference value;
the second rotating speed adjusting mode is that the central control module adjusts the rotating speed of the heat reducing fan of the computer main board to a corresponding value by using a second preset rotating speed adjusting coefficient; the second rotating speed adjusting mode meets the condition that the rotating speed difference value is smaller than or equal to a second preset rotating speed difference value and larger than the first preset rotating speed difference value, and the first preset rotating speed difference value is smaller than the second preset rotating speed difference value;
the third rotating speed adjusting mode is that the central control module adjusts the rotating speed of the heat reducing fan of the computer main board to a corresponding value by using a third preset rotating speed adjusting coefficient; the third rotation speed adjusting mode meets the condition that the rotation speed difference value is larger than the second preset rotation speed difference value.
The first preset rotating speed difference value is 8S, the second preset rotating speed difference value is 12S, the first preset rotating speed adjusting coefficient is 1.3, the second preset rotating speed adjusting coefficient is 1.2, and the third preset rotating speed adjusting coefficient is 1.1.
Specifically, the central control module determines, in the second transmission determination manner, a bandwidth adjustment manner of a transmission bandwidth of the switch corresponding to the single device for the device according to the acquired number of times of data transmission in the preset operation duration of the single device, where:
the first bandwidth adjusting mode is that the central control module uses a first transmission bandwidth adjusting coefficient to adjust the transmission bandwidth of a switch corresponding to a single device for the device to a corresponding value; the first bandwidth adjustment mode meets the condition that the number of times of data transmission in a preset operation time of a single device is smaller than or equal to a first preset number;
the second bandwidth adjusting mode is that the central control module uses a second transmission bandwidth adjusting coefficient to adjust the transmission bandwidth of the switch corresponding to the single device to a corresponding value; the second bandwidth adjustment mode satisfies that the number of times of data transmission in the preset operation time of a single device is smaller than or equal to a second preset number and larger than the first preset number, and the first preset number is smaller than the second preset number;
the third bandwidth adjusting mode is that the central control module uses a third transmission bandwidth adjusting coefficient to adjust the transmission bandwidth of the switch corresponding to the single device to a corresponding value; the third bandwidth adjusting mode satisfies that the number of times of data transmission in the preset operation time of the single device is larger than the second preset number.
The first preset number is 60, the second preset number is 120, the first transmission bandwidth adjusting coefficient is 1.11, the second transmission bandwidth adjusting coefficient is 1.15, and the third transmission bandwidth adjusting coefficient is 1.2.
Specifically, the central control module calculates a difference value between the specific gravity of the byte and the specific gravity of a preset byte in the secondary judgment mode of the first device, marks the difference value as a specific gravity difference value, and the adjusting module determines a frequency adjusting mode of the clock frequency of the PCIE according to the obtained specific gravity difference value, wherein:
the first frequency adjusting mode is that the central control module adjusts the clock frequency of the PCIE to a corresponding value by using a first preset frequency adjusting coefficient; the first frequency adjustment mode meets the condition that the specific gravity difference value is smaller than or equal to a first preset specific gravity difference value;
the second frequency adjusting mode is that the central control module adjusts the clock frequency of the PCIE to a corresponding value by using a second preset frequency adjusting coefficient; the second frequency adjustment mode meets the condition that the specific gravity difference is smaller than or equal to a second preset specific gravity difference and larger than the first preset specific gravity difference, and the first preset specific gravity difference is smaller than the second preset specific gravity difference;
the third frequency adjusting mode is that the central control module adjusts the clock frequency of the PCIE to a corresponding value by using a third preset frequency adjusting coefficient; the third frequency adjustment mode satisfies that the specific gravity difference is larger than the second preset specific gravity difference.
Wherein the first preset specific gravity difference is 0.6X10 -4 The second preset specific gravity difference is 1.4X10 -4 The first preset frequency adjustment coefficient is 0.95, the second preset frequency adjustment coefficient is 0.9, and the third preset frequency adjustment coefficient is 0.8.
Specifically, when the central control module completes the adjustment of the clock frequency of the PCIE, the corresponding switch increases the transmission bandwidth of the switch for a single device to B' through a preset calculation formula, and sets upWherein B is the transmission bandwidth of the device before the adjustment of the PCIE clock frequency, f' is the adjusted PCIE clock frequency, and f is the PCIE clock frequency before the adjustment.
Specifically, when the operation duration of the computer main board reaches an integer multiple of the preset operation duration, the central control module determines a byte adjustment mode of a first preset byte number and a second preset byte number according to the obtained total number of devices indirectly connected with the computer main board, wherein:
the first byte adjustment mode is that the central control module continuously uses a first preset byte number and a second preset byte number as a judging standard for judging whether the data transmission condition of the single device meets a preset standard or not for the first time; the first byte adjustment mode meets the condition that the total number of devices indirectly connected with a computer main board is smaller than or equal to a first preset total number;
the second byte adjusting mode is that the central control module adjusts the first preset byte number and the second preset byte number to corresponding values by using a first adjusting coefficient; the second byte adjustment mode meets the requirements that the total number of devices indirectly connected with the computer main board is smaller than or equal to a second preset total number and larger than the first preset total number, and the first preset total number is smaller than the second preset total number;
the third byte adjustment mode is that the central control module adjusts the first preset byte number and the second preset byte number to corresponding values by using a second adjustment coefficient; the third byte adjustment mode satisfies that the total number of devices indirectly connected with the computer motherboard is greater than the second preset total number.
Wherein the first preset total number is 12, the second preset total number is 32, the first adjustment coefficient is 0.9, and the second adjustment coefficient is 0.8.
Example 1
After a device is newly added to a switch and the accumulated operation time of a computer main board after the device is newly added reaches an integral multiple of 30 days, acquiring 11 pieces of equipment indirectly connected with the computer main board, continuously using a first preset byte number 48GB and a second preset byte number 78GB as judging standards for judging whether the data transmission condition of single equipment accords with preset standards or not by the central control module for the first time, acquiring the byte number of data transmitted by the single equipment within 30 seconds as 79GB by the judging module, judging that the data transmission condition of the equipment accords with the preset standards by the central control module, controlling the equipment to transmit preset data information by the central control module, comparing the data information acquired by the computer main board with the preset data information, and acquiring the byte specific gravity of 1.3 multiplied by 10 -4 The central control module calculates the difference between the specific gravity of the byte and the specific gravity of the preset byte, and marks the difference as a specific gravity difference of 0.3 multiplied by 10 -4 The central control module uses a first preset frequency adjustment coefficient of 0.95 to adjust the clock frequency of the PCIE to a corresponding value; when the central control module completes the adjustment of the clock frequency of PCIE, the transmission bandwidth of the corresponding switch for the equipment is increased to B' through a preset calculation formula, and setting is carried outWherein B is a transmission bandwidth of the device before the adjustment of the PCIE clock frequency, f' is the adjusted PCIE clock frequency, and f is the PCIE clock frequency before the adjustment; the central control module controls the equipment to retransmit the preset data information so as to reacquire that the byte proportion of the number of bytes of the mismatching and the number of bytes of the preset data information is 1.7X10 -4 The central control module judges that the data transmission condition of the equipment accords with a preset standard, controls the equipment to maintain the current operation parameters to operate, and judges that the operation is completedExpansion to a single device.
Example 2
The method comprises the steps that after equipment is added to a switch, and the accumulated operation time of a computer main board after the equipment is added to the switch reaches integer multiples of 30 days, the total number of equipment indirectly connected with the computer main board is 15, the first preset byte number and the second preset byte number are respectively regulated to 43.2GB and 70.2GB by using a first regulating coefficient 0.9, the byte number of data transmitted by a single equipment in 30S is 42GB, the transmission difference value is 9S, the rotation speed difference value obtained by the central control module is 8S, and the rotation speed of a cooling fan of the computer main board is regulated to a corresponding value by using a first preset rotation speed regulating coefficient 1.3; the central control module acquires the byte number of the data transmitted by the equipment within the preset time length to be 46GB again, the central control module obtains a byte difference value to be 24.2GB, the central control module uses a first transmission bandwidth adjusting coefficient 1.12 to adjust the transmission bandwidth of the switch corresponding to the single equipment to a corresponding value for the equipment, and uses a first preset clock adjusting coefficient 1.11 to adjust the clock frequency of PCIE to the corresponding value; the central control module increases the transmission bandwidth of the corresponding switch to the single device to B' through a preset calculation formula, and setsWherein B is a transmission bandwidth of the device before the adjustment of the PCIE clock frequency, f' is the adjusted PCIE clock frequency, and f is the PCIE clock frequency before the adjustment; the central control module re-acquires that the byte number of the transmission data of the single device in 30S is 71.2GB, and the control module compares the data information acquired by the computer main board with preset data information to acquire that the byte proportion of the byte number of mismatching to the byte number of the preset data information is 0.3 multiplied by 10 -4 The central control module judges that the data transmission condition of the equipment accords with a preset standard, controls the equipment to maintain the current operation parameters, and judges that the expansion of the single equipment is completed.
Thus far, the technical solution of the present invention has been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of protection of the present invention is not limited to these specific embodiments. Equivalent modifications and substitutions for related technical features may be made by those skilled in the art without departing from the principles of the present invention, and such modifications and substitutions will be within the scope of the present invention.
The foregoing description is only of the preferred embodiments of the invention and is not intended to limit the invention; various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A multi-device compatible device expansion method based on PCIE is characterized by comprising the following steps:
step S1, connecting a computer main board with a plurality of switches through PCIE, and sequentially connecting each switch with a plurality of devices to complete the construction of the connection between the computer main board and the plurality of devices;
step S2, when the switch is newly added with equipment and the accumulated operation time length of the computer main board after the equipment is newly added reaches integer times of the preset operation time length, judging whether the data transmission condition of each equipment accords with a preset standard according to the acquired byte number of the data transmitted by each equipment in the preset time length, and when judging that the data transmission condition of a single equipment does not accord with the preset standard, adjusting the clock frequency of PCIE and/or the transmission bandwidth of the switch corresponding to the single equipment to a corresponding value according to the difference value of the second preset byte number and the byte number of the data transmitted by the equipment in the preset time length;
step S3, when the central control module judges that the data transmission condition of a single device does not meet the preset standard, controlling each device to sequentially transmit preset data information, determining the reason that the data transmission condition of the device does not meet the preset standard according to the recorded transmission time length used by each device to transmit the data information, judging whether to increase the rotating speed of a cooling fan in the computer main board to a corresponding value according to the reason, or controlling a switch connected with the device to increase the transmission bandwidth of the device to the corresponding value according to the number of times that the single device transmits data in the preset operation time length;
step S4, when the central control module judges that the data transmission condition of a single device meets the preset standard, the central control module controls the device to transmit preset data information, compares the data information acquired by the computer main board with the preset data information, judges whether the data transmission condition of the device meets the preset standard for the second time according to the comparison result, and determines whether to lower the clock frequency of the PCIE to a corresponding value according to the judgment result;
and S5, when the central control module secondarily judges that the data transmission condition of the single equipment meets the preset standard, controlling the equipment to maintain the current operation parameters, and judging that the expansion of the single equipment is completed.
2. The PCIE-based multi-device compatible device extension method according to claim 1 wherein in the step S2, the central control module determines whether the data transmission status of the device meets a preset standard according to the obtained byte number of the data transmitted by the single device within a preset time period, and when it is determined that the data transmission status of the single device meets the preset standard, it makes a secondary determination whether the data transmission status of the device meets the preset standard,
and determining the reason that the data transmission condition of the equipment does not meet the preset standard when the data transmission condition of the equipment does not meet the preset standard, or adjusting the clock frequency of PCIE and/or the corresponding transmission bandwidth of the switch for the equipment to a corresponding value.
3. The PCIE-based multi-device compatible device expansion method of claim 2 wherein the central control module is provided with a plurality of processing modes aiming at the data transmission condition of a single device not meeting a preset standard, and the method comprises:
determining the reason that the data transmission condition of the equipment does not accord with the preset standard according to the difference value between the transmission time length of the equipment for transmitting the preset data information and the average value of the transmission time lengths of the equipment for transmitting the preset data information in the first judging mode;
and under a second judging mode, according to the difference value between the second preset byte number and the byte number of the data transmitted by the single device in the preset duration, the clock frequency of the PCIE and/or the transmission bandwidth of the switch corresponding to the single device for the device are/is increased to a corresponding value.
4. The PCIE-based multi-device compatible device extension method according to claim 3 wherein the first decision means satisfies that a number of bytes of data transmitted by a single device within a preset time period is less than or equal to a first preset number of bytes, and the second decision means satisfies that a number of bytes of data transmitted by a single device within a preset time period is less than or equal to a second preset number of bytes and greater than the first preset number of bytes.
5. The PCIE-based multi-device compatible device extension method according to claim 4 wherein the central control module marks a difference value between a transmission time period of a single device for transmitting preset data information and an average value of transmission time periods of each device for transmitting preset data information as a transmission difference value in a first determination mode, and determines a reason that a data transmission condition of the device does not conform to a preset standard according to the transmission difference value; the central control module is provided with a plurality of processing modes aiming at the reasons, and the processing modes comprise:
when the reason is determined to be that the temperature of the computer main board is too high, the rotating speed of the heat reducing fan of the computer main board is adjusted to be a corresponding value according to the difference value between the preset transmission difference value and the transmission difference value, or,
and when the reason is determined to be insufficient transmission bandwidth of the single device, the transmission bandwidth of the corresponding switch aiming at the device is increased to a corresponding value according to the number of times of data transmission in the preset operation time of the device.
6. The PCIE-based multi-device compatible device expansion method of claim 5 wherein the central control module determines that the cause is that a computer motherboard temperature is too high in a first transmission determination mode, or determines that the cause is that a transmission bandwidth of a single device is insufficient in a second transmission determination mode; the first transmission judgment mode meets the condition that the transmission difference value is smaller than or equal to a preset transmission difference value, and the second transmission judgment mode meets the condition that the transmission difference value is larger than the preset transmission difference value.
7. The PCIE-based multi-device compatible device extension method according to claim 6 wherein the central control module controls a single device to transmit preset data information in a third determination mode, the central control module compares the data information acquired by the computer motherboard with the preset data information, so as to perform a secondary determination on whether a data transmission condition of the device meets a preset standard according to a byte number of the acquired matching error and a byte specific gravity of a byte number of the preset data information; the third determination mode satisfies that the number of bytes of data transmitted by a single device in a preset time period is greater than the second preset number of bytes.
8. The PCIE-based multi-device compatible device expansion method of claim 7 wherein the central control module is provided with a plurality of processing modes for the secondary decision result, including:
when the data transmission condition of the single device is judged to be not in accordance with the preset standard, the clock frequency of PCIE is reduced to a corresponding value according to the difference value between the byte specific gravity and the preset byte specific gravity,
and when the data transmission condition of the single device is judged to be in accordance with the preset standard secondarily, controlling the device to maintain the current operation parameters.
9. The PCIE-based multi-device compatible device expansion method of claim 8 wherein the central control module increases transmission bandwidths of the corresponding switches for the single device through a preset calculation formula when adjustment of clock frequencies of the PCIE is completedAdding to B', settingWherein B is the transmission bandwidth of the device before the adjustment of the PCIE clock frequency, f' is the adjusted PCIE clock frequency, and f is the PCIE clock frequency before the adjustment.
10. The PCIE-based multi-device compatible device extension method according to claim 9 wherein the central control module is provided with a plurality of byte adjustment modes for determining a first preset byte number and a second preset byte number according to the total number of acquired devices indirectly connected to the computer motherboard under a condition that an operation duration of the computer motherboard reaches an integer multiple of a preset operation duration, wherein each adjustment mode is different in size of adjustment of the first preset byte number and the second preset byte number.
CN202310993462.7A 2023-08-09 2023-08-09 PCIE-based multi-device compatible device expansion method Active CN116701287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310993462.7A CN116701287B (en) 2023-08-09 2023-08-09 PCIE-based multi-device compatible device expansion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310993462.7A CN116701287B (en) 2023-08-09 2023-08-09 PCIE-based multi-device compatible device expansion method

Publications (2)

Publication Number Publication Date
CN116701287A CN116701287A (en) 2023-09-05
CN116701287B true CN116701287B (en) 2023-12-08

Family

ID=87831609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310993462.7A Active CN116701287B (en) 2023-08-09 2023-08-09 PCIE-based multi-device compatible device expansion method

Country Status (1)

Country Link
CN (1) CN116701287B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117395277B (en) * 2023-10-13 2024-04-12 广州锡杨电子股份有限公司 Industrial computer and data monitoring system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769465A (en) * 2019-10-24 2020-02-07 Oppo(重庆)智能科技有限公司 Data transmission method and device, electronic equipment and readable storage medium
CN112187612A (en) * 2014-03-31 2021-01-05 瞻博网络公司 High performance, scalable and drop-free data center switching fabric
CN114817110A (en) * 2022-04-26 2022-07-29 地平线(上海)人工智能技术有限公司 Data transmission method and device
WO2022198582A1 (en) * 2021-03-25 2022-09-29 华为技术有限公司 Data processing method and apparatus
CN115766586A (en) * 2022-11-16 2023-03-07 中国兵器装备集团自动化研究所有限公司 Load balance control system between CAN buses
CN116301645A (en) * 2023-03-24 2023-06-23 郑州云海信息技术有限公司 Transmission channel allocation method and device, electronic equipment and storage medium
CN116383118A (en) * 2023-02-28 2023-07-04 中汽创智科技有限公司 Data transmission system and method
CN116501681A (en) * 2023-06-28 2023-07-28 苏州浪潮智能科技有限公司 CXL data transmission board card and method for controlling data transmission

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187612A (en) * 2014-03-31 2021-01-05 瞻博网络公司 High performance, scalable and drop-free data center switching fabric
CN110769465A (en) * 2019-10-24 2020-02-07 Oppo(重庆)智能科技有限公司 Data transmission method and device, electronic equipment and readable storage medium
WO2022198582A1 (en) * 2021-03-25 2022-09-29 华为技术有限公司 Data processing method and apparatus
CN114817110A (en) * 2022-04-26 2022-07-29 地平线(上海)人工智能技术有限公司 Data transmission method and device
CN115766586A (en) * 2022-11-16 2023-03-07 中国兵器装备集团自动化研究所有限公司 Load balance control system between CAN buses
CN116383118A (en) * 2023-02-28 2023-07-04 中汽创智科技有限公司 Data transmission system and method
CN116301645A (en) * 2023-03-24 2023-06-23 郑州云海信息技术有限公司 Transmission channel allocation method and device, electronic equipment and storage medium
CN116501681A (en) * 2023-06-28 2023-07-28 苏州浪潮智能科技有限公司 CXL data transmission board card and method for controlling data transmission

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于AXIe中PCIe高带宽及多模块同步数据传输的高速图形传输***;林敬涵;;电子产品世界(第10期);全文 *
林敬涵 ; .基于AXIe中PCIe高带宽及多模块同步数据传输的高速图形传输***.电子产品世界.2013,(第10期),全文. *

Also Published As

Publication number Publication date
CN116701287A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN116701287B (en) PCIE-based multi-device compatible device expansion method
US6490256B1 (en) Method, subscriber device, wireless router, and communication system efficiently utilizing the receive/transmit switching time
US7277419B2 (en) Supporting disparate packet based wireless communications
EP0826277B1 (en) Method and system for providing access by secondary stations to a shared transmission medium
US5862141A (en) Variable bitrate radio modem system to enhance data transmission and reduce error rates
CN102594802B (en) Method and system for low-latency networking
EP0685951B1 (en) Line interface devices for fast-packet networks
WO2015038949A1 (en) High payload data packet transmission system and relay to lower latency
KR101666388B1 (en) System and method for data size adaptation in a ue
EP2723125A1 (en) Communication method and communication apparatus
CN111065128A (en) Method for multiple connections
CN112953616B (en) Resource allocation method, device, equipment and storage medium
US6618599B1 (en) Base transceiver station of digital mobile telecommunication system using remote interfacing unit
CN114189446A (en) Resource allocation method, device, server and storage medium
CN116684315A (en) Service indication method and device
US10405367B2 (en) Methods used in user equipment and associated UES
CN106533495A (en) Wireless communication apparatus and wireless transmission method working at dual bands
US20050238090A1 (en) Modem for coupling a network-unit to a device
EP2040498A1 (en) Method for setting headers for RLC PDU segments
EP3996330A1 (en) Method for improving transmission speed, processor, network device, and network system
EP1872494A2 (en) Method and apparatus for determining a level of involvement of mesh points in a wireless communication system
CN113660198A (en) Self-adaptive method, management unit and system for gateway secure channel
CN113015220A (en) Wireless local area network transmission method and equipment and transceiver
WO2022252907A1 (en) Data interface equalization adjustment method and apparatus, device and storage medium
CN112994708B (en) Communication device

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