A switch arbitration and signal transmission tracking method based on a control unit and a switch

By configuring the control unit in the switch and receiving the request signal from the transmission port, the arbitration mechanism is initiated according to the needs, the problem of insufficient flexibility and speed of the arbitration mechanism in the prior art is solved, and efficient data transmission and powerful transmission signal tracking are achieved. capability, optimize resource utilization and system stability.

CN119071260BActive Publication Date: 2025-01-10SHANGHAI XINLIJI SEMICON CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411554509.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-01-10
Estimated Expiration
2044-11-04

AI Technical Summary

Technical Problem

The existing switch arbitration mechanism is insufficient in terms of flexibility and speed, hardware circuits cannot change the arbitration rules in time, the method of interrupting modules and CPUs is slow, and the transmission signal tracking capability is insufficient, resulting in difficulty in troubleshooting and problem-solving.

Method used

The control unit is configured in the switch, and the arbitration mechanism is activated according to the needs by receiving the request signal of the transmission port and activating the arbitration result, and recording the arbitration information through the repair module to optimize transmission signal tracking.

Benefits of technology

It improves the flexibility and speed of arbitration, enhances the transmission signal tracking capabilities, optimizes resource utilization, reduces system complexity and cost, and improves system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071260B_ABST
    Figure CN119071260B_ABST
Patent Text Reader

Abstract

The present invention discloses a switch arbitration and signal transmission tracking method based on a control unit and a switch, the method comprising: configuring a control unit electrically connected to each transmission port in the switch; the transmission port simultaneously sends a request signal to other transmission ports and the control unit, the request signal includes a target port address, and the target port address is one of a plurality of port addresses; the arbitration mechanism is started when and only when the control unit determines that there are a plurality of request signals including the same target port address: the control unit suspends the operation of a plurality of target arbitration transmission ports whose request signals include the same target port address and generates an arbitration result according to the request signal, the arbitration result includes a first port address, the first port address is one of the port addresses corresponding to the target arbitration transmission port, and the target arbitration transmission port corresponding to the first port address is controlled to resume operation. The present invention can start arbitration on demand, improve the flexibility of arbitration and the data transmission speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of controller application and system design and development, and in particular to a switch arbitration and signal transmission tracking method based on a control unit and a switch. Background Art

[0002] In modern network environments, switches are essential devices that connect multiple devices together to enable data transmission between different devices. The arbitration mechanism in the switch is an important technology to ensure orderly data transmission. The arbitration mechanism in traditional switches usually uses hardware circuits or interrupt modules and processors (CPUs) for arbitration.

[0003] Although hardware circuits can realize arbitration functions, due to their inherent limitations, they cannot change arbitration rules in time according to needs, so they lack flexibility. Although the method of adding interrupt module to CPU can realize more flexible arbitration, the arbitration speed is slow because the interrupt module needs to send an interrupt signal to the CPU.

[0004] Therefore, the problems existing in the prior art in this field are mainly reflected in the following aspects:

[0005] First, in terms of flexibility, the arbitration rules of the hardware circuit cannot be changed in time according to needs, which limits its wide application and adaptability;

[0006] Secondly, in terms of speed, the method of adding interrupt module to CPU needs to wait for interrupt signal, so the arbitration speed is slow and cannot meet the demand of high-speed data transmission;

[0007] Finally, in terms of transmission signal tracking, the hardware circuit cannot directly and conveniently track the signal, and the arbitration module using the interrupt module plus the CPU can only record the interrupt signal and the arbitration result, and there is no other data normally transmitted in the switch, which brings difficulties to fault diagnosis and problem troubleshooting.

[0008] The disclosure of the above background technology content is only used to assist in understanding the inventive concept and technical solution of the present invention. It does not necessarily belong to the prior art of the present application, nor does it necessarily provide technical guidance. In the absence of clear evidence that the above content has been disclosed before the filing date of the present application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention

[0009] The object of the present invention is to provide a switch arbitration and signal transmission tracking method and switch based on a control unit, which can activate the arbitration mechanism on demand, improve the flexibility of arbitration and the data transmission speed.

[0010] To achieve the above object, the technical solution adopted by the present invention is as follows:

[0011] A control unit-based switch arbitration and signal transmission tracking method comprises the following steps:

[0012] Electrically connect any two transmission ports in the switch, each transmission port being configured with a unique port address;

[0013] A control unit is configured in the switch, and the control unit is electrically connected to each of the transmission ports respectively;

[0014] The transmission port simultaneously sends a request signal to the other transmission ports and the control unit, wherein the request signal includes a target port address, and the target port address is one of the plurality of port addresses;

[0015] The control unit receives the request signal and determines whether there are multiple request signals including the same target port address. If and only if the control unit determines that there are multiple request signals including the same target port address, the control unit activates an arbitration mechanism to perform the following steps:

[0016] The control unit suspends the operation of a plurality of target arbitration transmission ports, wherein the request signals sent by the plurality of target arbitration transmission ports include the same target port address;

[0017] The control unit generates an arbitration result according to the request signals sent by the plurality of target arbitration transmission ports, wherein the arbitration result includes a first port address, which is one of the port addresses corresponding to the plurality of target arbitration transmission ports; and the control unit controls the target arbitration transmission port corresponding to the first port address to resume operation.

[0018] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the arbitration result also includes the ranking of the multiple target arbitration transmission ports;

[0019] The control unit controls each of the target arbitration transmission ports to resume operation in sequence according to the sequence.

[0020] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the control unit sequentially controls each of the target arbitration transmission ports to resume work according to the sequence, including:

[0021] The control unit sends a resumption signal to the target arbitration transmission port that is currently ranked first in the ranking, and the target arbitration transmission port that is currently ranked first is the first target transmission port;

[0022] In response to receiving the resume signal, the first target transmission port sends the request signal to the other transmission ports and the control unit to send data to the transmission port matching the target port address;

[0023] After the transmission port matching the target port address completes receiving the data, it sends a confirmation signal to the control unit;

[0024] In response to receiving the confirmation signal, the control unit clears the target arbitration transmission port ranked first in the current ranking and obtains an updated ranking, and repeats the above steps until the ranking is cleared.

[0025] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the control unit also includes a repair module, the repair module is configured to record arbitration information, the arbitration information includes an initiating address, a receiving address and a number of suspended transmission times; wherein the initiating address is a port address corresponding to the target arbitration transmission port, the receiving address is a target port address corresponding to a request signal sent by the target arbitration transmission port, and the number of suspended transmission times is the number of times the target arbitration transmission port is suspended;

[0026] The number of suspended transmissions is counted in the following manner:

[0027] When the control unit sends a resumption signal to the target arbitration transmission port corresponding to the first port address, the number of suspended transmissions corresponding to other target arbitration transmission ports increases by one.

[0028] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the control unit generates the arbitration result according to multiple target request signals and the number of suspended transmissions, and the target request signal is a request signal sent by the target arbitration transmission port;

[0029] The arbitration result is generated according to the following rules:

[0030] The higher the priority of the target request signal, the higher the ranking of the corresponding target arbitration transmission port;

[0031] The higher the number of suspended transmissions is, the higher the ranking of the corresponding target arbitration transmission port is.

[0032] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the control unit generates the arbitration result according to the multiple target request signals and the number of suspended transmissions, and further includes:

[0033] Determining the priority of the target request signal sent by each of the target arbitration transmission ports and the number of suspended transmissions corresponding to each of the target arbitration transmission ports;

[0034] For each of the target arbitration transmission ports, performing addition and / or multiplication operations on the priority level and the number of suspended transmission times corresponding to the target arbitration transmission port and obtaining an operation result;

[0035] The order of the target arbitration transmission ports is determined according to the order of the operation results from large to small and used as the arbitration result.

[0036] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the control unit is configured to call the priority information corresponding to each preset request signal to determine the priority of the multiple target request signals; and / or,

[0037] The control unit has a priority determination rule preset inside, and the control unit determines the priorities of the plurality of target request signals according to the priority determination rule.

[0038] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the arbitration result also includes a work recovery signal, and the work recovery signal includes the first port address;

[0039] The control unit sends the work resumption signal to each of the transmission ports simultaneously;

[0040] Each of the transmission ports receives the work resumption signal and matches the first port address with its own port address, and the transmission port with a consistent match resumes work.

[0041] Furthermore, any one of the above-mentioned technical solutions or a combination of multiple technical solutions does not include that the transmission port corresponding to the request signal with the same target port address remains operational.

[0042] Furthermore, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, any two transmission ports in the switch are configured to be bidirectionally communicated.

[0043] According to another aspect of the present invention, the present invention provides a switch for performing arbitration and signal transmission tracking based on a control unit, the switch comprising a plurality of transmission ports and a control unit, any two of the transmission ports being electrically connected, each of the transmission ports being configured with a unique port address, and the control unit being electrically connected to each of the transmission ports;

[0044] The switch works in the following manner:

[0045] The transmission port simultaneously sends a request signal to the other transmission ports and the control unit, wherein the request signal includes a target port address, and the target port address is one of the plurality of port addresses;

[0046] The control unit receives the request signal and determines whether there are multiple request signals including the same target port address. If and only if the control unit determines that there are multiple request signals including the same target port address, the control unit activates an arbitration mechanism to perform the following steps:

[0047] The control unit suspends the operation of a plurality of target arbitration transmission ports, wherein the request signals sent by the plurality of target arbitration transmission ports include the same target port address;

[0048] The control unit generates an arbitration result according to the request signals sent by the plurality of target arbitration transmission ports, wherein the arbitration result includes a first port address, which is one of the port addresses corresponding to the plurality of target arbitration transmission ports; and the control unit controls the target arbitration transmission port corresponding to the first port address to resume operation.

[0049] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the control unit also includes a repair module, the repair module is configured to record arbitration information, the arbitration information includes an initiating address, a receiving address and a number of suspended transmission times; wherein the initiating address is a port address corresponding to the target arbitration transmission port, the receiving address is a target port address corresponding to a request signal sent by the target arbitration transmission port, and the number of suspended transmission times is the number of times the target arbitration transmission port is suspended;

[0050] The number of suspended transmissions is counted in the following manner:

[0051] When the control unit sends a resumption signal to the target arbitration transmission port corresponding to the first port address, the number of suspended transmissions corresponding to other target arbitration transmission ports increases by one.

[0052] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the control unit generates the arbitration result according to multiple target request signals and the number of suspended transmissions, and the target request signal is a request signal sent by the target arbitration transmission port;

[0053] The arbitration result is generated according to the following rules:

[0054] The higher the priority of the target request signal, the higher the ranking of the corresponding target arbitration transmission port;

[0055] The higher the number of suspended transmissions is, the higher the ranking of the corresponding target arbitration transmission port is.

[0056] The beneficial effects brought by the technical solution provided by the present invention are as follows:

[0057] a. The technical solution provided by the present invention can improve the flexibility of arbitration: by configuring a control unit in the switch, it can synchronously receive request signals sent by all transmission ports, and the arbitration mechanism will be started only when and only when the control unit determines that there are multiple request signals including the same target port address. This mechanism can start the arbitration mechanism on demand, thereby improving the flexibility of arbitration and adapting to the needs of different application scenarios;

[0058] b. The technical solution provided by the present invention can improve the data transmission speed: the control unit of the present invention can directly receive the request signals of all transmission ports and perform arbitration at the same time. Therefore, compared with the interrupt module plus CPU method in the prior art that needs to wait for the interrupt signal, the arbitration speed of the arbitration mechanism is faster and can meet the demand for high-speed data transmission. Moreover, since the transmission port sends the request signal to other transmission ports and the control unit at the same time, the data transmission speed of the transmission port will not be delayed when arbitration is not required. After the arbitration mechanism is started, the request signals that do not involve the same target port address will not be affected, and the data transmission between the corresponding transmission ports will not be affected;

[0059] c. The technical solution provided by the present invention can enhance the transmission signal tracking capability: through the repair module, the control unit can synchronously receive the request signal and confirmation signal of all transmission ports, and record them as logs and store them in the repair module. Therefore, compared with the prior art in which the hardware circuit cannot directly record the arbitration log, or the interrupt module plus the CPU can only record the occurrence of the interrupt signal and the arbitration result, the transmission signal tracking capability of the present invention is stronger, which is helpful for fault diagnosis and problem troubleshooting;

[0060] d. The technical solution provided by the present invention can optimize resource utilization: the control unit of the present invention can implement the arbitration function in the switch without relying on an external CPU, thereby optimizing resource utilization, reducing system complexity and cost, and optimizing resource utilization;

[0061] e. The technical solution provided by the present invention can improve system stability: the control unit of the present invention sets the initiating address, receiving address and number of suspended transmissions of the request signal recorded by the repair module, and adjusts the priority of the task according to the number of suspended transmissions, thereby avoiding the problem that low-priority tasks cannot be transmitted or even starved to death due to too many high-priority tasks, thereby improving system stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0063] Figure 1 A schematic diagram of a work flow of a switch based on a control unit provided for an exemplary embodiment of the present invention;

[0064] Figure 2 A flow chart of a switch arbitration and signal transmission tracking method based on a control unit provided for an exemplary embodiment of the present invention;

[0065] Figure 3 A schematic diagram of electrical connection between a control unit and various transmission ports provided for an exemplary embodiment of the present invention;

[0066] Figure 4 A schematic diagram of electrical connections of various transmission ports in a switch provided for an exemplary embodiment of the present invention;

[0067] Figure 5 A schematic diagram of the principle of presetting the priority in the arbitration module provided for an exemplary embodiment of the present invention;

[0068] Figure 6 A schematic diagram of the working principle of an arbitration module is provided for an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0069] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0070] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0071] In one embodiment of the present invention, a switch arbitration and signal transmission tracking method based on a control unit is provided. Figure 1 , the method comprises the following steps:

[0072] Any two transmission ports in the switch are electrically connected, and each transmission port is configured with a unique port address, preferably, as Figure 4 As shown, configure any two transmission ports in the switch for bidirectional communication connection;

[0073] A control unit is configured in the switch, and the control unit is electrically connected to each of the transmission ports. Figure 3 As shown, taking a four-port switch as an example, a control unit is added in the switch, and a connection circuit between each transmission port (port 1 to port 4) and the control unit is added, so that the control unit can simultaneously receive request signals and confirmation signals sent by each transmission port in the switch;

[0074] The transmission port simultaneously sends a request signal to the other transmission ports and the control unit, wherein the request signal includes a target port address, and the target port address is one of the plurality of port addresses;

[0075] The control unit receives the request signal and determines whether there are multiple request signals including the same target port address. If and only if the control unit determines that there are multiple request signals including the same target port address, the control unit activates an arbitration mechanism to perform the following steps:

[0076] The control unit suspends the operation of a plurality of target arbitration transmission ports, wherein the request signals sent by the plurality of target arbitration transmission ports include the same target port address;

[0077] The control unit generates an arbitration result according to the request signals sent by the plurality of target arbitration transmission ports, wherein the arbitration result includes a first port address, which is one of the port addresses corresponding to the plurality of target arbitration transmission ports; and the control unit controls the target arbitration transmission port corresponding to the first port address to resume operation.

[0078] In this embodiment, the transmission ports corresponding to the request signals that do not include the same target port address remain in operation. As shown in Table 1, the target port addresses corresponding to the request signals sent by Port 1, Port 3 and Port 5 are all port address 4, so Port 1, Port 3 and Port 5 are determined to be the target arbitration transmission ports, and the operation of Port 1, Port 3 and Port 5 is suspended, and the data transmission and / or signal transmission are stopped; while the target port addresses corresponding to the request signals sent by Port 2, Port 4 and Port N are all unavailable, so Port 2, Port 4 and Port N are not the target arbitration transmission ports and continue to work.

[0079] Preferably, the arbitration result further includes a work recovery signal, and the work recovery signal includes the first port address; the control unit sends the work recovery signal to each of the transmission ports simultaneously;

[0080] Each of the transmission ports receives the work resumption signal and matches the first port address with its own port address, and the transmission port with a consistent match resumes work.

[0081]

[0082] The switch arbitration and signal transmission tracking method based on a control unit provided by the present invention configures a control unit in the switch so that it can synchronously receive request signals sent by the buffers of all transmission ports, and the arbitration mechanism will be started only when and only when the control unit determines that there are multiple request signals including the same target port address. This mechanism can start the arbitration mechanism according to demand, thereby improving the flexibility of arbitration and adapting to the needs of different application scenarios.

[0083] Moreover, since the control unit of the present invention can directly receive the request signals of all ports and perform arbitration at the same time, compared with the interrupt module plus CPU method in the prior art that needs to wait for the interrupt signal, the arbitration speed of the present invention is faster and can meet the needs of high-speed data transmission. Moreover, since the transmission port sends the request signal to the other transmission ports and the control unit at the same time, the data transmission speed of the transmission port will not be delayed when arbitration is not required, and after the arbitration mechanism is started, the request signal that does not include the same target port address will not be affected, and the data transmission between the corresponding transmission ports will not be affected, so the overall data transmission speed of the switch can be further improved.

[0084] In addition, the control unit of the present invention can implement the arbitration function in the switch without relying on an external CPU, thereby optimizing resource utilization, reducing system complexity and cost, and optimizing resource utilization.

[0085] like Figure 5 As shown, the control unit is provided with an arbitration module, and the arbitration module is configured to call the preset priority information corresponding to each request signal to determine the priority of the multiple target request signals. In other specific embodiments, the control unit has a preset priority judgment rule, and the arbitration module determines the priority of the multiple target request signals according to the priority judgment rule. For example, the priority of each request signal is determined according to the estimated completion time corresponding to the request signal, and the shorter the estimated completion time, the higher the priority; for another example, each request signal also includes an initiation address, and the initiation address is the port address corresponding to the target arbitration transmission port, and the priority of each request signal is determined according to the priority of the initiation address.

[0086] In one embodiment of the present invention, the control unit includes, in addition to an arbitration module for generating an arbitration result, Figure 6 As shown, the control unit also includes a maintenance module, which includes a task table, and the task table is used to record arbitration information, and the arbitration information includes an initiating address, a receiving address and a number of suspended transmission times; wherein the initiating address is the port address corresponding to the target arbitration transmission port, the receiving address is the target port address corresponding to the request signal sent by the target arbitration transmission port, and the number of suspended transmission times is the number of times the target arbitration transmission port is suspended.

[0087] More preferably, all request signal and confirmation signal data are transmitted to the repair module and arbitration module of the control unit. When data tracking is required, the data in the repair module can be read to know the complete data transmission process in the switch.

[0088] The number of suspended transmissions is counted in the following manner: when the control unit sends a resume operation signal to the target arbitration transmission port corresponding to the first port address, the number of suspended transmissions corresponding to other target arbitration transmission ports is increased by one.

[0089] In this embodiment, the control unit generates the arbitration result according to a plurality of target request signals and the number of suspended transmissions, wherein the target request signal is a request signal sent by the target arbitration transmission port.

[0090] The arbitration rules for generating the arbitration result are as follows: the higher the priority of the target request signal, the higher the ranking of the corresponding target arbitration transmission port; the higher the number of suspended transmissions, the higher the ranking of the corresponding target arbitration transmission port.

[0091] In a specific embodiment of the present invention, the arbitration process is:

[0092] Determining the priority of the target request signal sent by each of the target arbitration transmission ports and the number of suspended transmissions corresponding to each of the target arbitration transmission ports;

[0093] For each of the target arbitration transmission ports, the priority corresponding to the target arbitration transmission port and the number of suspended transmission times are added and / or multiplied to obtain a calculation result. Specifically, a corresponding numerical value may be assigned to each priority, and a higher priority corresponds to a larger numerical value. The numerical value corresponding to the priority and the number of suspended transmission times are added and / or multiplied to obtain a calculation result.

[0094] The order of the target arbitration transmission ports is determined according to the order of the operation results from large to small and used as the arbitration result.

[0095] In this embodiment, see Figure 2 , the arbitration result also includes the order of the plurality of target arbitration transmission ports; the control unit sequentially controls each of the target arbitration transmission ports to resume work according to the order, including:

[0096] The control unit sends a resumption signal to the target arbitration transmission port that is currently ranked first in the ranking, and the target arbitration transmission port that is currently ranked first is the first target transmission port;

[0097] In response to receiving the resume signal, the first target transmission port sends the request signal to the other transmission ports and the control unit to send data to the transmission port matching the target port address;

[0098] After the transmission port matching the target port address completes receiving the data, it sends a confirmation signal to the control unit;

[0099] In response to receiving the confirmation signal, the control unit clears the target arbitration transmission port ranked first in the current ranking and obtains an updated ranking, and repeats the above steps until the ranking is cleared.

[0100] The switch arbitration and signal transmission tracking method based on the control unit provided in this embodiment can enhance the transmission signal tracking capability. By setting the inspection module, the control unit can synchronously receive the request and confirmation signals of all transmission ports, and record them into a log and store them in the inspection module. This includes not only the occurrence of interrupt signals and arbitration results, but also the data records of normal transmission in the switch. Therefore, compared to the prior art where the hardware circuit cannot directly record the log inspection module records, or the interrupt module plus CPU can only record the occurrence of interrupt signals and arbitration results, the transmission signal tracking capability of the present invention is stronger, which is helpful for fault diagnosis and problem troubleshooting.

[0101] The control unit of the present invention sets a task table in the repair module to record the initiating address of the request signal, i.e., the port address where the request signal occurs, the receiving address, i.e., the target port address, and the number of suspended transmission times, and adjusts the priority of the task according to the number of suspended transmission times, thereby avoiding the problem that low-priority tasks cannot be transmitted due to too many high-priority tasks, thereby improving system stability.

[0102] In general, the control unit-based switch arbitration and signal transmission tracking method provided by the present invention not only improves the flexibility and speed of arbitration, enhances the transmission signal tracking capability, optimizes resource utilization, reduces system complexity and cost, but also improves system stability, and has significant advantages over the prior art.

[0103] In one embodiment of the present invention, a switch for performing arbitration and signal transmission tracking based on a control unit is provided, the switch comprising a plurality of transmission ports and a control unit, any two of the transmission ports being electrically connected, each of the transmission ports being configured with a unique port address, and the control unit being electrically connected to each of the transmission ports;

[0104] The switch works in the following manner:

[0105] The transmission port simultaneously sends a request signal to the other transmission ports and the control unit, wherein the request signal includes a target port address, and the target port address is one of the plurality of port addresses;

[0106] The control unit receives the request signal and determines whether there are multiple request signals including the same target port address. If and only if the control unit determines that there are multiple request signals including the same target port address, the control unit activates an arbitration mechanism to perform the following steps:

[0107] The control unit suspends the operation of a plurality of target arbitration transmission ports, wherein the request signals sent by the plurality of target arbitration transmission ports include the same target port address;

[0108] The control unit generates an arbitration result according to the request signals sent by the plurality of target arbitration transmission ports, wherein the arbitration result includes a first port address, which is one of the port addresses corresponding to the plurality of target arbitration transmission ports; and the control unit controls the target arbitration transmission port corresponding to the first port address to resume operation.

[0109] More preferably, in an embodiment of the present invention, the control unit of the switch further comprises a repair module, the repair module being configured to record arbitration information, the arbitration information comprising an initiating address, a receiving address and a number of suspended transmissions; wherein the initiating address is a port address corresponding to the target arbitration transmission port, the receiving address is a target port address corresponding to a request signal sent by the target arbitration transmission port, and the number of suspended transmissions is a number of times the target arbitration transmission port is suspended from working;

[0110] The number of suspended transmissions is counted in the following manner: when the control unit sends a resume operation signal to the target arbitration transmission port corresponding to the first port address, the number of suspended transmissions corresponding to other target arbitration transmission ports is increased by one.

[0111] In this embodiment, the control unit generates the arbitration result according to a plurality of target request signals and the number of suspended transmissions, wherein the target request signal is a request signal sent by the target arbitration transmission port. The arbitration rules are as follows:

[0112] The higher the priority of the target request signal, the higher the ranking of the corresponding target arbitration transmission port;

[0113] The higher the number of suspended transmissions is, the higher the ranking of the corresponding target arbitration transmission port is.

[0114] Due to the advanced nature of this technical solution, it can be widely used in the fields of microcontroller application technology, network equipment and communication, and system design and development. In the field of microcontroller application technology, this technical solution realizes the synchronous reception and arbitration of request signals of multiple transmission ports by adding a circuit from the port in the switch to the control unit, greatly improving the efficiency and flexibility of arbitration. At the same time, the control unit can record the results of each data transmission to the repair module, which is convenient for fault diagnosis and problem troubleshooting, which will greatly promote the development of microcontroller application technology.

[0115] In the field of network equipment and communication, this technical solution can achieve high-speed data transmission by using a control unit for arbitration, meeting the requirements of modern network environment for data transmission speed. At the same time, the task table log and other information recorded by the repair module in the control unit are used as a tool for tracking, which will greatly improve the technical level and application scope of the network equipment and communication field. In the field of system design and development, this technical solution realizes the synchronous reception and arbitration of multiple transmission port request signals by using a control unit for arbitration, which will greatly promote the development of the system design and development field. At the same time, the control unit can record the results of each data transmission to the repair module, which is convenient for fault diagnosis and problem troubleshooting, which will greatly improve the technical level and application scope of the system design and development field. In general, this technical solution has broad application prospects in the fields of microcontroller application technology, network equipment and communication, and system design and development, with huge market demand and great commercial value.

[0116] It should be noted that the switch embodiment for arbitration and signal transmission tracking based on a control unit provided by the present invention has the same inventive concept as the above-mentioned switch arbitration and signal transmission tracking method embodiment based on a control unit, and all the contents of the switch arbitration and signal transmission tracking method embodiment based on a control unit are incorporated into the switch embodiment for arbitration and signal transmission tracking based on a control unit by introduction.

[0117] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0118] The above is only a specific implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A switch arbitration and signal transmission tracking method based on a control unit, characterized in that: The following steps are involved: Electrically connect any two transmission ports in the switch, each transmission port being configured with a unique port address; A control unit is configured in the switch, and the control unit is electrically connected to each of the transmission ports respectively; The transmission port simultaneously sends a request signal to the other transmission ports and the control unit, wherein the request signal includes a target port address, and the target port address is one of the plurality of port addresses; The control unit receives the request signal and determines whether there are multiple request signals including the same target port address. If and only if the control unit determines that there are multiple request signals including the same target port address, the control unit activates an arbitration mechanism to perform the following steps: The control unit suspends the operation of a plurality of target arbitration transmission ports, wherein the request signals sent by the plurality of target arbitration transmission ports include the same target port address; The control unit generates an arbitration result according to the request signals sent by the plurality of target arbitration transmission ports, wherein the arbitration result includes a first port address, which is one of the port addresses corresponding to the plurality of target arbitration transmission ports; The control unit controls the target arbitration transmission port corresponding to the first port address to resume operation.

2. The switch arbitration and signal transmission tracking method based on the control unit according to claim 1, characterized in that: The arbitration result also includes the ranking of the plurality of target arbitration transmission ports; The control unit controls each of the target arbitration transmission ports to resume operation in sequence according to the sequence.

3. The switch arbitration and signal transmission tracking method based on the control unit according to claim 2, characterized in that: The control unit sequentially controls each of the target arbitration transmission ports to resume operation according to the sequence, including: The control unit sends a resumption signal to the target arbitration transmission port that is currently ranked first in the ranking, and the target arbitration transmission port that is currently ranked first is the first target transmission port; In response to receiving the resume signal, the first target transmission port sends the request signal to the other transmission ports and the control unit to send data to the transmission port matching the target port address; After the transmission port matching the target port address completes receiving the data, it sends a confirmation signal to the control unit; In response to receiving the confirmation signal, the control unit clears the target arbitration transmission port ranked first in the current ranking and obtains an updated ranking, and repeats the above steps until the ranking is cleared.

4. The switch arbitration and signal transmission tracking method based on a control unit according to claim 1, characterized in that: The control unit further includes a repair module, the repair module is configured to record arbitration information, the arbitration information includes an initiating address, a receiving address and a number of suspended transmission times; wherein the initiating address is a port address corresponding to the target arbitration transmission port, the receiving address is a target port address corresponding to a request signal sent by the target arbitration transmission port, and the number of suspended transmission times is a number of times the target arbitration transmission port is suspended from working; The number of suspended transmissions is counted in the following manner: When the control unit sends a resumption signal to the target arbitration transmission port corresponding to the first port address, the number of suspended transmissions corresponding to other target arbitration transmission ports increases by one.

5. The switch arbitration and signal transmission tracking method based on the control unit according to claim 4, characterized in that: The control unit generates the arbitration result according to a plurality of target request signals and the number of suspended transmissions, wherein the target request signal is a request signal sent by the target arbitration transmission port; The arbitration result is generated according to the following rules: The higher the priority of the target request signal, the higher the ranking of the corresponding target arbitration transmission port; The higher the number of suspended transmissions is, the higher the ranking of the corresponding target arbitration transmission port is.

6. The switch arbitration and signal transmission tracking method based on the control unit according to claim 5, characterized in that: The control unit generates the arbitration result according to the plurality of target request signals and the number of suspended transmissions, and further includes: Determining the priority of the target request signal sent by each of the target arbitration transmission ports and the number of suspended transmissions corresponding to each of the target arbitration transmission ports; For each of the target arbitration transmission ports, performing addition and / or multiplication operations on the priority level and the number of suspended transmission times corresponding to the target arbitration transmission port and obtaining an operation result; The order of the target arbitration transmission ports is determined according to the order of the operation results from large to small and used as the arbitration result.

7. The switch arbitration and signal transmission tracking method based on a control unit according to claim 5 or 6, characterized in that: The control unit is configured to call the preset priority information corresponding to each request signal to determine the priority of the plurality of target request signals; and / or, The control unit has a priority determination rule preset inside, and the control unit determines the priorities of the plurality of target request signals according to the priority determination rule.

8. The switch arbitration and signal transmission tracking method based on a control unit according to claim 1, characterized in that: The arbitration result further includes a work recovery signal, and the work recovery signal includes the first port address; The control unit sends the work resumption signal to each of the transmission ports simultaneously; Each of the transmission ports receives the work resumption signal and matches the first port address with its own port address, and the transmission port with a consistent match resumes work.

9. The switch arbitration and signal transmission tracking method based on a control unit according to claim 1, characterized in that: The transmission port corresponding to the request signal not including the same target port address remains operational.

10. The switch arbitration and signal transmission tracking method based on a control unit according to claim 1, characterized in that: Configure any two transmission ports in the switch for bidirectional communication.

11. A switch based on a control unit for arbitration and signal transmission tracking, characterized in that: The switch comprises a plurality of transmission ports and a control unit, any two of the transmission ports are electrically connected, each of the transmission ports is configured with a unique port address, and the control unit is electrically connected to each of the transmission ports respectively; The switch works in the following manner: The transmission port simultaneously sends a request signal to the other transmission ports and the control unit, wherein the request signal includes a target port address, and the target port address is one of the plurality of port addresses; The control unit receives the request signal and determines whether there are multiple request signals including the same target port address. If and only if the control unit determines that there are multiple request signals including the same target port address, the control unit activates an arbitration mechanism to perform the following steps: The control unit suspends the operation of a plurality of target arbitration transmission ports, wherein the request signals sent by the plurality of target arbitration transmission ports include the same target port address; The control unit generates an arbitration result according to the request signals sent by the plurality of target arbitration transmission ports, wherein the arbitration result includes a first port address, which is one of the port addresses corresponding to the plurality of target arbitration transmission ports; The control unit controls the target arbitration transmission port corresponding to the first port address to resume operation.

12. The switch for performing arbitration and signal transmission tracking based on a control unit according to claim 11, characterized in that: The control unit further includes a repair module, the repair module is configured to record arbitration information, the arbitration information includes an initiating address, a receiving address and a number of suspended transmission times; wherein the initiating address is a port address corresponding to the target arbitration transmission port, the receiving address is a target port address corresponding to a request signal sent by the target arbitration transmission port, and the number of suspended transmission times is a number of times the target arbitration transmission port is suspended from working; The number of suspended transmissions is counted in the following manner: When the control unit sends a resumption signal to the target arbitration transmission port corresponding to the first port address, the number of suspended transmissions corresponding to other target arbitration transmission ports increases by one.

13. The switch for performing arbitration and signal transmission tracking based on a control unit according to claim 12, characterized in that: The control unit generates the arbitration result according to a plurality of target request signals and the number of suspended transmissions, wherein the target request signal is a request signal sent by the target arbitration transmission port; The arbitration result is generated according to the following rules: The higher the priority of the target request signal, the higher the ranking of the corresponding target arbitration transmission port; The higher the number of suspended transmissions is, the higher the ranking of the corresponding target arbitration transmission port is.

Citation Information

Patent Citations

  • Message arbitration method and device

    CN104104617A

  • FC switch scheduling method and device, electronic equipment and storage medium

    CN112311702A