WO2023124915A1 - Method and apparatus for generating data screening topological structure - Google Patents

Method and apparatus for generating data screening topological structure Download PDF

Info

Publication number
WO2023124915A1
WO2023124915A1 PCT/CN2022/138097 CN2022138097W WO2023124915A1 WO 2023124915 A1 WO2023124915 A1 WO 2023124915A1 CN 2022138097 W CN2022138097 W CN 2022138097W WO 2023124915 A1 WO2023124915 A1 WO 2023124915A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
screening
data transmission
topology
transmission network
Prior art date
Application number
PCT/CN2022/138097
Other languages
French (fr)
Chinese (zh)
Inventor
许俊
段光生
Original Assignee
苏州盛科通信股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州盛科通信股份有限公司 filed Critical 苏州盛科通信股份有限公司
Publication of WO2023124915A1 publication Critical patent/WO2023124915A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/11Identifying congestion

Definitions

  • Embodiments of the present invention relate to the field of data processing, and in particular, to a method and device for generating a data screening topology.
  • Crossbar crossbar matrix
  • the basic form of the Crossbar is a structure with multiple inputs and multiple outputs. For any output, it is a choice among multiple inputs. One way is output, and the selection of each output is different. This structure will cause serious congestion and timing problems in the back-end layout and routing.
  • data switching equipment is required to support unicast and multicast wire-speed non-blocking screening switching.
  • a Crossbar is used to realize the unicast and multicast of the switch.
  • Embodiments of the present invention provide a method and device for generating a data filtering topology structure, so as to at least solve the problem of low data filtering efficiency in the related art.
  • a method for generating a data screening topology including: determining a target topology type corresponding to an initial data transmission network from multiple topology types, wherein the initial data transmission network It is used to transmit data according to the corresponding relationship between the input port and the output port; determine the target data screening policy corresponding to the target topology type, wherein the target data screening policy is used to indicate the data transmission in the data transmission network
  • the multi-level screening method for the data according to the target data screening strategy, the target data screening topology corresponding to the initial data transmission network is generated to obtain the target data transmission network, wherein the target data screening topology is used to According to the corresponding relationship between the input port and the output port of the data transmission network, data is filtered for each output port.
  • the determining the corresponding target topology type of the data transmission network from multiple topology types includes: acquiring a first data transmission parameter of the initial data transmission network, wherein the first The data transmission parameters include: the number of ports of the initial data transmission network, and/or, the signal bit width of each port of the initial data transmission network; determine the initial data transmission network according to the first data transmission parameters A target congestion degree, wherein the target congestion degree is used to indicate the degree of congestion of the data transmitted by the initial data transmission network in the initial data transmission network; The topological structure type that matches the degree is determined as the target topology type.
  • the determining the target data screening strategy corresponding to the target topology type includes: determining a screening and grading parameter matching the target topology type according to the second data transmission parameter of the initial data transmission network; Obtaining the target connection mode of the target screening device corresponding to the target topology type; determining the screening classification parameters and the target connection mode as the target data screening strategy.
  • the determining the screening and grading parameters matching the target topology type according to the second data transmission parameters of the initial data transmission network includes: acquiring the second data transmission parameters of the initial data transmission network , wherein, the second data transmission parameters include: the number of ports of the initial data transmission network, and/or, the signal bit width of each port of the initial data transmission network; when the target topology type is the first In the case of one type, the first classification number corresponding to the second data transmission parameter is calculated according to the classification function corresponding to the first type as the screening classification parameter, wherein the first classification number is used to indicate that in the The number of screening levels divided between each group of corresponding input ports and output ports under the topology of the first type; when the type of the target topology is the second type, according to the corresponding The grading function calculates a second grading number corresponding to the second data transmission parameter as the screening grading parameter, wherein the second grading number is used to indicate the corresponding input of each group under the topology structure belonging to the second type The number of filter
  • the acquiring the target connection mode of the target screening device corresponding to the target topology type includes: when the target topology type is the first type, determining the target connection mode includes: the The input data of the target screening device in the first hierarchical quantity comes from the target input ports in each set of corresponding input ports and output ports and the input ports of the initial data transmission network except the target input ports.
  • Determining the target connection method includes: the input data of the multiple target screening devices included in the first stage in the second hierarchical quantity comes from all input ports of the initial data transmission network; The input data of other hierarchical target screening devices outside the first level comes from the upper level target screening device; the output end of the last level of target screening device in the second classification quantity is connected to the corresponding input port and output port of each group The target output port connection in .
  • the acquiring the target connection mode of the target screening device corresponding to the target topology type further includes: when the target topology type is the first type, determining the target connection mode further includes : Adjusting the data transmission timing between the first hierarchical number of target screening devices through the first number of registers; in the case that the target topology type is the second type, determining the target connection method also includes: through A second number of registers adjusts data transfer timing between the second hierarchical number of target screening devices.
  • the method further includes: determining the quantity of the target screening device as (N-1)*(W/2)*N; determining the first quantity as W*(N+1)*(N /2)*N; determine that the second quantity is W*(2 ⁇ (Log2N+1)-1)*N; wherein, the target screening device is a two-input multiplexer, and N is the initial The number of input ports or the number of output ports included in the data transmission network, W is the signal bit width of each port of the initial data transmission network.
  • a device for generating a data screening topology including: a first determining module configured to determine a target topology corresponding to the initial data transmission network from a plurality of topology types type, wherein the initial data transmission network is used to transmit data according to the corresponding relationship between the input port and the output port; the second determination module is configured to determine the target data screening strategy corresponding to the target topology type, wherein , the target data screening policy is used to indicate a multi-level screening method for the data transmitted in the data transmission network; the generation module is configured to generate the target corresponding to the initial data transmission network according to the target data screening policy A data screening topology to obtain a target data transmission network, wherein the target data screening topology is used to filter data for each output port according to the corresponding relationship between the input port and the output port of the data transmission network.
  • a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to perform any one of the above methods when running Steps in the examples.
  • an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above Steps in the method examples.
  • the target topology type corresponding to the initial data transmission network is determined from multiple topology types, wherein the initial data transmission network is used to transmit data according to the corresponding relationship between the input port and the output port; determine The target data filtering strategy corresponding to the target topology type, where the target data filtering strategy is used to indicate the multi-level filtering method for the data transmitted in the data transmission network; the target data corresponding to the initial data transmission network is generated according to the target data filtering strategy Screen the topology to obtain the target data transmission network, wherein the target data screening topology is used to filter data for each output port according to the corresponding relationship between the input port and the output port of the data transmission network, that is, transmit the data in the data transmission network The data is screened according to the multi-level screening strategy.
  • Different topological structures correspond to different data screening strategies. After determining the target topology type corresponding to the initial data transmission network in multiple topological structures, determine the corresponding target topology structure.
  • the target data screening strategy can then determine the multi-level screening method required for the initial data transmission network, and then can generate the target data screening topology corresponding to the initial data transmission network according to the data screening strategy.
  • the target data screening topology can be based on The relationship between the input port and the output port of the data transmission network is to filter data hierarchically for each output port. By designing a hierarchical screening topology, the data of the input port of the data transmission network is classified and screened to avoid a large amount of data.
  • Fig. 1 is the block diagram of mobile terminal hardware structure of the generation method of the data screening topology structure of the embodiment of the present invention
  • FIG. 2 is a flowchart of a method for generating a data screening topology according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an optional target data transmission network according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another optional target data transmission network according to an embodiment of the present invention.
  • Fig. 5 is a structural block diagram of an apparatus for generating a data filtering topology according to an embodiment of the present invention.
  • FIG. 1 is a block diagram of a mobile terminal hardware structure in a method for generating a data filtering topology structure according to an embodiment of the present invention.
  • the mobile terminal may include one or more (only one is shown in Figure 1) processors 102 (the processor 102 may include but not limited to a microprocessor MCU (Microcontroller Unit, micro control unit) or programmable A processing device such as a logic device FPGA (Field Programmable Gate Array, editable logic array) and a memory 104 configured to store data, wherein the above-mentioned mobile terminal may also include a transmission device 106 configured as a communication function and an input/output device 108.
  • the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above mobile terminal.
  • the mobile terminal may also include more or fewer components than those shown in FIG. 1 , or have a different configuration from that shown in FIG. 1 .
  • the memory 104 can be set to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for generating the data screening topology in the embodiment of the present invention, the processor 102 runs the stored in the memory 104 A computer program to perform various functional applications and data processing, that is, to realize the above-mentioned methods.
  • the memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission device 106 is arranged to receive or transmit data via a network.
  • the specific example of the above network may include a wireless network provided by the communication provider of the mobile terminal.
  • the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is configured to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • FIG. 2 is a flowchart of a method for generating a data screening topology according to an embodiment of the present invention. As shown in FIG. 2 , the process includes the following steps:
  • Step S202 determining the target topology type corresponding to the initial data transmission network from multiple topology types, wherein the initial data transmission network is used to transmit data according to the corresponding relationship between the input port and the output port;
  • Step S204 determining a target data screening policy corresponding to the target topology type, wherein the target data screening policy is used to indicate a multi-level screening method for data transmitted in the data transmission network;
  • Step S206 Generate a target data screening topology corresponding to the initial data transmission network according to the target data screening strategy to obtain a target data transmission network, wherein the target data screening topology is used for inputting according to the data transmission network
  • the correspondence between ports and output ports filters data for each output port.
  • the data transmitted in the data transmission network is screened according to the multi-level screening strategy.
  • Different topological structures correspond to different data screening strategies.
  • the target data filtering topology can filter data for each output port hierarchically according to the relationship between the input port and output port of the data transmission network.
  • the data of the input port of the data transmission network Perform hierarchical screening to avoid the instantaneous screening pressure caused by a large amount of data, and efficiently and quickly filter the data input from the input port while ensuring the screening time sequence. Therefore, it solves the problem of low data screening efficiency in related technologies The problem has achieved the effect of improving the efficiency of data screening.
  • the topology type is used to indicate the type of screening strategy for hierarchical screening of data.
  • the topology type is divided according to the arrangement and connection form of the devices used for data screening, and the devices used for data screening may include, but are not limited to, data selectors and registers, wherein the data selection
  • the register is used to select the data corresponding to the data selector from multiple input ports and allow the data to pass through, and the register is used to temporarily store the data to ensure the timing of data screening.
  • the target topology type may be determined according to the congestion degree value of the data transmission network, or may be determined according to an operator's selection instruction, for example, when the number of input ports in the data transmission network When it is higher than a certain value, it is determined that the data transmission network is in a congested state, and when the data bit width allowed to be transmitted by each port in the data transmission network is higher than a certain value, it is determined that the data transmission network is in a congested state, or it can also be an input When the number of ports is higher than a certain value and the data bit width of each port is higher than a certain value, it is determined that the data transmission network is in a congested state.
  • the number of screening stages of multi-level screening is determined according to the number of input ports and/or the initial data bit width allowed by each port.
  • Each data bit of the data in the port is classified and filtered, or may be classified and screened according to the input port and each data bit of the data, which is not limited in this solution.
  • the screening strategy includes the arrangement of data screening devices.
  • the arrangement may include, but is not limited to, the arrangement of data selectors, the arrangement of registers, etc., which is not limited in this solution. .
  • the target data transmission network includes the connection relationship between screening devices that can perform hierarchical screening operations on multiple input ports for each output port, such as the connection relationship between registers , the connection relationship between registers and data selectors, the arrangement sequence of data selectors, and so on.
  • the determining the corresponding target topology type of the data transmission network from multiple topology types includes:
  • the first data transmission parameter includes: the number of ports of the initial data transmission network, and/or, the number of ports of each port of the initial data transmission network Signal bit width;
  • the target congestion level is used to indicate congestion of data transmitted by the initial data transmission network in the initial data transmission network degree
  • the congestion degree is the result of analyzing the number of ports and/or the signal bit width. For example, when the number of ports exceeds the first threshold, it is determined that the data transmission network is at the target congestion degree, and It may be determined that the data transmission network is at the target congestion degree when the signal bit width is greater than the second threshold, or it may be determined that the data transmission network is at the target congestion degree when the number of ports exceeds the first threshold and the signal bit width is greater than the second threshold. The plan does not limit this.
  • the determining the target data screening strategy corresponding to the target topology type includes:
  • the screening classification parameters and the target connection mode are determined as the target data screening strategy.
  • the second data transmission parameter may include, but is not limited to, the number of ports of the initial data transmission network, and/or, the signal bit width of each port of the initial data transmission network.
  • the target filtering device at each stage is used to filter part of the data in multiple input ports.
  • the target screening device includes a data selector
  • the target screening device is a data selection device that selects one of many
  • the number of single-screened data of the target screening device is less than the total amount of data received by the input port, such as , can be a data selector that chooses one of two, a data selector that chooses one of three, or a data selector that chooses one of four, which is not limited in this solution.
  • each target topology type may correspond to a target screening device with a data screening capability, or may be a target screening device corresponding to multiple data screening capabilities, for example, the target topology corresponds to multiple
  • the connection mode of the one-two data screening device may also be a connection mode corresponding to multiple one-two data screening devices and multiple one-three data screening devices corresponding to the target topology.
  • the determining, according to the second data transmission parameters of the initial data transmission network, the screening and grading parameters matching the target topology type includes:
  • the second data transmission parameters include: the number of ports of the initial data transmission network, and/or, each The signal bit width of the port;
  • the target topology type is the first type
  • the target topology type is the second type
  • the number of screening levels divided between each group of input ports and output ports in the initial data transmission network is the same.
  • the acquiring the target connection mode of the target screening device corresponding to the target topology type includes:
  • determining the target connection mode includes: the input data of the first-level target screening devices in the first hierarchical quantity comes from each set of corresponding input ports and Target input ports among the output ports and some ports among other ports except the target input port among the input ports of the initial data transmission network; targets of other levels in the first level number except the first level
  • the input data of the screening device comes from the upper-level target screening device of other classifications and the port that is not connected to the target screening device in other ports; the target output port connection in the input port and output port;
  • determining the target connection mode includes: the input data of the multiple target screening devices included in the first level in the second hierarchical quantity comes from the initial data transmission All input ports of the network; the input data of the target screening devices of other levels except the first level in the second hierarchical quantity come from the upper level target screening device; the last level target screening device in the second hierarchical quantity The output terminal of is connected to the target output port in each set of corresponding input ports and output ports.
  • the screening capabilities of the multiple target screening devices included in the first stage may be the same or different.
  • the acquiring the target connection mode of the target screening device corresponding to the target topology type further includes:
  • determining the target connection mode further includes: adjusting the data transmission timing between the first hierarchical number of target screening devices through a first number of registers;
  • determining the target connection mode further includes: adjusting a data transmission timing between the second hierarchical number of target screening devices through a second number of registers.
  • the registers in order to ensure the timing, can be continuously set.
  • the target screening device is not set in multiple screening stages of a certain port, so when the data of this port is not filtered in these screening stages Delay, in order to ensure the timing of this port and other ports, registers can be set at the position of multiple screening stages of the port where no target screening device is set, so as to ensure timing problems.
  • the first stage includes a first target filter device, and the first target filter is used to filter some of the data received by the plurality of data input ports
  • Each level of other filtering levels in the first level of classification includes a second target filter, and the second target filter is used to filter the results of the previous level of filtering and multiple data that are not included in the filtering results.
  • the screened data is screened, the first register is set in the first stage, the number of the first register matches the number of multiple data input ports, and the first register is used to register the multiple data received by the multiple data input ports , the second registers are set in other screening stages, the number of second registers set in each screening stage in other screening stages matches the screening results of the previous screening stage and the number of unfiltered data streams in multiple data, the first The second register is used to store the screening results of the previous screening stage and the unfiltered data among multiple data, and the third register is set after the target screening device of the tail screening stage, and the third register is used to register the screening results of the tail screening stage.
  • the first stage includes a plurality of first target screening devices, and each first target screening device is used for multiple data received by multiple data input ports.
  • the second target screening device in other screening levels other than the first level is used to filter the screening results of the previous level of screening, and the first register is set in the first level
  • the quantity of the first register matches the quantity of multiple data input ports
  • the first register is used for registering multiple data received by the multiple data input ports for the first target screening device
  • the second register is set in other screening stages register
  • the number of second registers included in each screening stage in the other screening stages matches the quantity of target screening devices included in the previous screening stage
  • the second register is used to register the screening result of the previous screening stage screening
  • the first The third register is set behind the data selector of the tail filter stage in the first filter mode, and the third register is used to store the filter result of the tail filter stage
  • Fig. 3 is a schematic diagram of an optional target data transmission network according to an embodiment of the present invention, which applies the first type of topology structure of the embodiment of the present invention.
  • This figure exemplarily lists the selection of data from four input ports For the data output by port A, take the output port A_Output output as an example.
  • the input of the second-stage target screening device one of which is the output of the first-stage target screening device, and the other is the input of C_Input after passing through the 2-stage pipeline, and the result output of the second-stage target screening device is from Logically, it is the selection output of the three input ports A_Input, B_Input and C_Input.
  • the input of the third-level target screening device one of which is the output of the second-level target screening device, and the other is the input of D_Input after passing through the 3-level pipeline, and the output of the third-level target screening device is from Logically, it is the selection output of the four input ports A_Input, B_Input, C_Input and D_Input, and finally output to the output port A_Input through the register.
  • the target screening devices of each stage can be placed in a larger area.
  • the first stage in Figure 3 has 1024 target screening devices of the second stage, and 1024 of the second stage.
  • a target screening device that chooses one of the two can be placed far away to avoid the problem of winding congestion.
  • timing convergence can also be solved.
  • FIG. 4 is a schematic diagram of another optional target data transmission network according to an embodiment of the present invention, which applies the second type of topology structure of the embodiment of the present invention.
  • This figure exemplarily lists the selection of data from four input ports
  • the data output from port A firstly selects A_Input, B_Input and C_Input, D_Input through the two alternative target screening devices of the first stage.
  • Register, in order to be aligned in timing, the input of the target screening device of the second stage is the output result of the two data selectors of the previous stage, and finally output to the output port A_Input through the register.
  • Each stage simultaneously selects multiple input ports pair by pair, and the second stage performs pairwise selection on the results of the first stage until the last stage. This reduces register usage while reducing latency from input ports to output ports.
  • Table 1 lists the number of registers, the number of target screening devices, and the delay required by the first type of topology and the second type of topology when using one of the target screening devices, and N is the input included in the initial data transmission network.
  • the number of ports or the number of output ports, W is the signal bit width of each port of the initial data transmission network, as shown in Table 1:
  • the first type of topology has larger resources and delays, but because each stage has only two inputs for selection, it can be routed in a larger area without causing timing Convergence problem. Therefore, if there is still serious congestion in the result of the second type of topology, the first type of topology can be used.
  • the method also includes:
  • the target screening device is a two-input multiplexer
  • N is the number of input ports or the number of output ports included in the initial data transmission network
  • W is the signal bit of each port of the initial data transmission network Width.
  • the signal bit width W may take a value of 1, 2, 3, 6, 10 and so on.
  • the number of ports may be 1, 3, 4, 6, 8, 9, 10 and so on.
  • FIG. 5 is a structural block diagram of a device for generating a data screening topology according to an embodiment of the present invention. As shown in FIG. 5 , the device includes:
  • the first determination module 52 is configured to determine the target topology type corresponding to the initial data transmission network from a plurality of topology types, wherein the initial data transmission network is used to follow the corresponding relationship between the input port and the output port transfer data;
  • the second determination module 54 is configured to determine a target data screening policy corresponding to the target topology type, wherein the target data screening policy is used to indicate multi-level screening of data transmitted in the data transmission network Way;
  • the generating module 56 is configured to generate a target data screening topology corresponding to the initial data transmission network according to the target data screening strategy to obtain a target data transmission network, wherein the target data screening topology is used to The correspondence between input ports and output ports of the transport network filters data for each output port.
  • the first determination module includes: an obtaining unit configured to obtain a first data transmission parameter of the initial data transmission network, wherein the first data transmission parameter includes: the initial data transmission network The number of ports, and/or, the signal bit width of each port of the initial data transmission network; the first determining unit is configured to determine the target congestion degree of the initial data transmission network according to the first data transmission parameter, Wherein, the target congestion degree is used to indicate the degree of congestion of the data transmitted by the initial data transmission network in the initial data transmission network; the second determination unit is configured to combine the plurality of topology types with The topology type matching the target congestion level is determined as the target topology type.
  • the third determining unit is configured to: acquire the second data transmission parameters of the initial data transmission network, wherein the second data transmission parameters include: the number of ports of the initial data transmission network , and/or, the signal bit width of each port of the initial data transmission network; when the target topology type is the first type, calculate the second according to the hierarchical function corresponding to the first type
  • the first classification number corresponding to the data transmission parameter is used as the screening classification parameter, wherein the first classification number is used to indicate the division between each group of corresponding input ports and output ports under the topology structure belonging to the first type
  • the number of screening levels in the case that the target topology type is the second type, calculate the second level number corresponding to the second data transmission parameter as the screening level according to the leveling function corresponding to the second type parameter, wherein the second hierarchical number is used to indicate the number of screening levels divided between each group of corresponding input ports and output ports under the topology structure belonging to the second type.
  • the third determining unit is configured to: when the target topology type is the first type, determining the target connection mode includes: input of target screening devices in the first hierarchical quantity The data comes from the target input port in each set of corresponding input ports and output ports and some ports in the input ports of the initial data transmission network except the target input port; The input data of other hierarchical target screening devices except the first level comes from other hierarchical target screening devices and ports that are not connected to target screening devices in other ports; the last level of target screening in the first classification quantity The output terminal of the device is connected to the target output port in each set of corresponding input ports and output ports; when the target topology type is the second type, determining the target connection method includes: the second The input data of the plurality of target screening devices included in the first level in the hierarchical quantity comes from all the input ports of the initial data transmission network; The input data comes from the upper-level target screening device; the output terminal of the last-level target screening device in the second hierarchical quantity is connected to the target output port in each group of corresponding
  • the third determining unit is further configured to: when the target topology type is the first type, determining the target connection mode further includes: adjusting the first The data transmission timing between the target screening devices of the hierarchical quantity; in the case that the target topology type is the second type, determining the target connection mode further includes: adjusting the second hierarchical quantity through a second quantity of registers The target screens the timing of data transfers between devices.
  • the device further includes: a fourth determination module, configured to determine that the number of target screening devices is (N-1)*(W/2)*N; a fifth determination module, configured to determine The first quantity is W*(N+1)*(N/2)*N; the sixth determination module is configured to determine that the second quantity is W*(2 ⁇ (Log2N+1)-1) *N; wherein, the target screening device is a two-input multiplexer, N is the number of input ports or the number of output ports included in the initial data transmission network, and W is each port of the initial data transmission network signal width.
  • the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
  • Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
  • the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk magnetic disk or optical disk and other media that can store computer programs.
  • An embodiment of the present invention also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
  • the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
  • each module or each step of the present invention described above can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The embodiments of the present invention provide a method and apparatus for generating data screening topological structure. The method comprises: determining a target topological structure type corresponding to an initial data transmission network from a plurality of topological structure types, wherein the initial data transmission network is used for transmitting data according to a correspondence between an input port and an output port; determining a target data screening strategy corresponding to the target topological structure type, wherein the target data screening strategy is used for indicating a mode of performing multi-stage screening on data being transmitted in the data transmission network; and according to the target data screening strategy, generating a target data screening topological structure corresponding to the initial data transmission network to obtain a target data transmission network. The present invention solves the problem of low data screening efficiency in the prior art, thereby achieving the effect of improving data screening efficiency.

Description

数据筛选拓扑结构的生成方法和装置Method and device for generating data screening topology
本发明要求于2021年12月30日提交中国专利局、申请号为202111663247.8、发明名称“数据筛选拓扑结构的生成方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本发明中。The present invention claims the priority of the Chinese patent application submitted to the China Patent Office on December 30, 2021 with the application number 202111663247.8 and the title of the invention "Method and device for generating data screening topology", the entire content of which is incorporated by reference in the present invention middle.
技术领域technical field
本发明实施例涉及数据处理领域,具体而言,涉及一种数据筛选拓扑结构的生成方法和装置。Embodiments of the present invention relate to the field of data processing, and in particular, to a method and device for generating a data screening topology.
背景技术Background technique
现代交换是通信网络有节点机和交换机组成,所以后节点及均通过链路与交换机相连,实现分布式通信。在传统的数据交换设备的设计中Crossbar(交叉开关矩阵)结构被大量的使用,Crossbar的基本形态是多个输入和多个输出的结构,对于任何一个输出而言,都是多个输入中选择一路作为输出,而且每个输出的选择各不相同。这种结构在后端布局布线是会造成严重的拥塞和时序的问题。在某些应用领域,要求数据交换设备支持单播和多播的线速无阻筛选交换。在传统的交换机设计中,采用一条Crossbar实现交换机的单播和多播,由于单播和多播共享带宽的限制,导致他们之间互相影响,影响交换机的数据筛选交换性能,导致吞吐量下降,延迟增大,并且会导致数据消息丢包等问题,因此造成数据筛选效率较低。Modern switching is a communication network composed of node machines and switches, so the nodes and switches are connected to switches through links to realize distributed communication. In the design of traditional data exchange equipment, the Crossbar (crossbar matrix) structure is widely used. The basic form of the Crossbar is a structure with multiple inputs and multiple outputs. For any output, it is a choice among multiple inputs. One way is output, and the selection of each output is different. This structure will cause serious congestion and timing problems in the back-end layout and routing. In some application areas, data switching equipment is required to support unicast and multicast wire-speed non-blocking screening switching. In the traditional switch design, a Crossbar is used to realize the unicast and multicast of the switch. Due to the limitation of the shared bandwidth of unicast and multicast, they affect each other and affect the data screening and exchange performance of the switch, resulting in a decrease in throughput. Latency increases and can cause issues such as data message packet loss, thus resulting in less efficient data filtering.
针对相关技术中存在的数据筛选效率较低的问题,目前尚未提出有效的解决方案。For the problem of low data screening efficiency in related technologies, no effective solution has been proposed so far.
发明内容Contents of the invention
本发明实施例提供了一种数据筛选拓扑结构的生成方法和装置,以至少解决相关技术中存在的数据筛选效率较低的问题。Embodiments of the present invention provide a method and device for generating a data filtering topology structure, so as to at least solve the problem of low data filtering efficiency in the related art.
根据本发明的一个实施例,提供了一种数据筛选拓扑结构的生成方法,包括:从多个拓扑结构类型中确定初始数据传输网络所对应的目标拓扑结构类型,其中,所述初始数据传输网络用于按照输入端口与输出端口之间的对应关系传输数据;确定所述目标拓扑结构类型所对应的目标数据筛选策略,其中,所述目标数据筛选策略用于指示对所述数据传输网络中传输的数据进行多级筛选的方式;按照所述目标数据筛选策略生成所述初始数据传输网络对应的目标数据筛选拓扑结构,得到目标数据传输网络,其中,所述目标数据筛选拓扑结构用于按照所述数据传输网络的输入端口与输出端口之间的对应关系为每个输出端口筛选数据。According to an embodiment of the present invention, a method for generating a data screening topology is provided, including: determining a target topology type corresponding to an initial data transmission network from multiple topology types, wherein the initial data transmission network It is used to transmit data according to the corresponding relationship between the input port and the output port; determine the target data screening policy corresponding to the target topology type, wherein the target data screening policy is used to indicate the data transmission in the data transmission network The multi-level screening method for the data; according to the target data screening strategy, the target data screening topology corresponding to the initial data transmission network is generated to obtain the target data transmission network, wherein the target data screening topology is used to According to the corresponding relationship between the input port and the output port of the data transmission network, data is filtered for each output port.
可选的,所述从多个拓扑结构类型中确定所述数据传输网络的所对应的目标拓扑结构类型,包括:获取所述初始数据传输网络的第一数据传输参数,其中,所述第一数据传输参数包括:所述初始数据传输网络的端口数量,和/或,所述初始数据传输网络的每个端口的信号位宽;根据所述第一数据传输参数确定所述初始数据传输网络的目标拥塞度,其中,所述目标拥塞度用于指示所述初始数据传输网络所传输的数据在所述初始数据传输网络中的拥塞程度;将所述多个拓扑结构类型中与所述目标拥塞度匹配的拓扑结构类型确定为所述目标拓扑结构类型。Optionally, the determining the corresponding target topology type of the data transmission network from multiple topology types includes: acquiring a first data transmission parameter of the initial data transmission network, wherein the first The data transmission parameters include: the number of ports of the initial data transmission network, and/or, the signal bit width of each port of the initial data transmission network; determine the initial data transmission network according to the first data transmission parameters A target congestion degree, wherein the target congestion degree is used to indicate the degree of congestion of the data transmitted by the initial data transmission network in the initial data transmission network; The topological structure type that matches the degree is determined as the target topology type.
可选的,所述确定所述目标拓扑结构类型所对应的目标数据筛选策略,包括:根据所述初始数据传输网络的第二数据传输参数确定与所述目标拓扑结构类型匹配的筛选分级参数;获取所述目标拓扑结构类型所对应的目标筛选器件的目标连接方式;将所述筛选分级参数和所述目标连接方式确定为所述目标数据筛选策略。Optionally, the determining the target data screening strategy corresponding to the target topology type includes: determining a screening and grading parameter matching the target topology type according to the second data transmission parameter of the initial data transmission network; Obtaining the target connection mode of the target screening device corresponding to the target topology type; determining the screening classification parameters and the target connection mode as the target data screening strategy.
可选的,所述根据所述初始数据传输网络的第二数据传输参数确定与所述目标拓扑结构类型匹配的筛选分级参数,包括:获取所述初始数据传输网络的所述第二数据传输参数,其中,所述第二数据传输参数包括:所述初始数据传输网络的端口数量,和/或,所述初始数据传输网络的每个端口的信号位宽;在所述目标拓扑结构类型为第一类型的情况下,按照所述 第一类型对应的分级函数计算所述第二数据传输参数对应的第一分级数量作为所述筛选分级参数,其中,所述第一分级数量用于指示在属于所述第一类型的拓扑结构下每组对应的输入端口和输出端口之间划分的筛选等级的数量;在所述目标拓扑结构类型为第二类型的情况下,按照所述第二类型对应的分级函数计算所述第二数据传输参数对应的第二分级数量作为所述筛选分级参数,其中,所述第二分级数量用于指示在属于所述第二类型的拓扑结构下每组对应的输入端口和输出端口之间划分的筛选等级的数量。Optionally, the determining the screening and grading parameters matching the target topology type according to the second data transmission parameters of the initial data transmission network includes: acquiring the second data transmission parameters of the initial data transmission network , wherein, the second data transmission parameters include: the number of ports of the initial data transmission network, and/or, the signal bit width of each port of the initial data transmission network; when the target topology type is the first In the case of one type, the first classification number corresponding to the second data transmission parameter is calculated according to the classification function corresponding to the first type as the screening classification parameter, wherein the first classification number is used to indicate that in the The number of screening levels divided between each group of corresponding input ports and output ports under the topology of the first type; when the type of the target topology is the second type, according to the corresponding The grading function calculates a second grading number corresponding to the second data transmission parameter as the screening grading parameter, wherein the second grading number is used to indicate the corresponding input of each group under the topology structure belonging to the second type The number of filter levels divided between ports and output ports.
可选的,所述获取所述目标拓扑结构类型所对应的目标筛选器件的目标连接方式,包括:在所述目标拓扑结构类型为第一类型的情况下,确定所述目标连接方式包括:所述第一分级数量中的目标筛选器件的输入数据来自所述每组对应的输入端口和输出端口中的目标输入端口以及所述初始数据传输网络的输入端口中除所述目标输入端口外其他端口中的部分端口;所述第一分级数量中除第一级之外的其他分级的目标筛选器件的输入数据来自其他分级的上一级目标筛选器件以及其他端口中未连接目标筛选器件的端口;所述第一分级数量中最后一级目标筛选器件的输出端与所述每组对应的输入端口和输出端口中的目标输出端口连接;在所述目标拓扑结构类型为第二类型的情况下,确定所述目标连接方式包括:所述第二分级数量中第一级所包括的多个目标筛选器件的输入数据来自所述初始数据传输网络的全部输入端口;所述第二分级数量中除第一级之外的其他分级的目标筛选器件的输入数据来自上一级目标筛选器件;所述第二分级数量中最后一级目标筛选器件的输出端与所述每组对应的输入端口和输出端口中的目标输出端口连接。Optionally, the acquiring the target connection mode of the target screening device corresponding to the target topology type includes: when the target topology type is the first type, determining the target connection mode includes: the The input data of the target screening device in the first hierarchical quantity comes from the target input ports in each set of corresponding input ports and output ports and the input ports of the initial data transmission network except the target input ports. Part of the ports in the first classification quantity; the input data of the target screening devices of other classifications except the first level in the first classification quantity come from the upper-level target screening devices of other classifications and the ports that are not connected to the target screening devices in other ports; The output end of the last-stage target screening device in the first hierarchical quantity is connected to the target output port in each set of corresponding input ports and output ports; when the target topology type is the second type, Determining the target connection method includes: the input data of the multiple target screening devices included in the first stage in the second hierarchical quantity comes from all input ports of the initial data transmission network; The input data of other hierarchical target screening devices outside the first level comes from the upper level target screening device; the output end of the last level of target screening device in the second classification quantity is connected to the corresponding input port and output port of each group The target output port connection in .
可选的,所述获取所述目标拓扑结构类型所对应的目标筛选器件的目标连接方式,还包括:在所述目标拓扑结构类型为第一类型的情况下,确定所述目标连接方式还包括:通过第一数量的寄存器调整所述第一分级数量的目标筛选器件之间的数据传输时序;在所述目标拓扑结构类型为第二 类型的情况下,确定所述目标连接方式还包括:通过第二数量的寄存器调整所述第二分级数量的目标筛选器件之间的数据传输时序。Optionally, the acquiring the target connection mode of the target screening device corresponding to the target topology type further includes: when the target topology type is the first type, determining the target connection mode further includes : Adjusting the data transmission timing between the first hierarchical number of target screening devices through the first number of registers; in the case that the target topology type is the second type, determining the target connection method also includes: through A second number of registers adjusts data transfer timing between the second hierarchical number of target screening devices.
可选的,所述方法还包括:确定所述目标筛选器件的数量为(N-1)*(W/2)*N;确定所述第一数量为W*(N+1)*(N/2)*N;确定所述第二数量为W*(2^(Log2N+1)-1)*N;其中,所述目标筛选器件为两输入的多路选择器,N为所述初始数据传输网络所包括的输入端口数量或者输出端口数量,W为所述初始数据传输网络的每个端口的信号位宽。Optionally, the method further includes: determining the quantity of the target screening device as (N-1)*(W/2)*N; determining the first quantity as W*(N+1)*(N /2)*N; determine that the second quantity is W*(2^(Log2N+1)-1)*N; wherein, the target screening device is a two-input multiplexer, and N is the initial The number of input ports or the number of output ports included in the data transmission network, W is the signal bit width of each port of the initial data transmission network.
根据本发明的又一个实施例,还提供了一种数据筛选拓扑结构的生成装置,包括:第一确定模块,被设置为从多个拓扑结构类型中确定初始数据传输网络所对应的目标拓扑结构类型,其中,所述初始数据传输网络用于按照输入端口与输出端口之间的对应关系传输数据;第二确定模块,被设置为确定所述目标拓扑结构类型所对应的目标数据筛选策略,其中,所述目标数据筛选策略用于指示对所述数据传输网络中传输的数据进行多级筛选的方式;生成模块,被设置为按照所述目标数据筛选策略生成所述初始数据传输网络对应的目标数据筛选拓扑结构,得到目标数据传输网络,其中,所述目标数据筛选拓扑结构用于按照所述数据传输网络的输入端口与输出端口之间的对应关系为每个输出端口筛选数据。According to yet another embodiment of the present invention, there is also provided a device for generating a data screening topology, including: a first determining module configured to determine a target topology corresponding to the initial data transmission network from a plurality of topology types type, wherein the initial data transmission network is used to transmit data according to the corresponding relationship between the input port and the output port; the second determination module is configured to determine the target data screening strategy corresponding to the target topology type, wherein , the target data screening policy is used to indicate a multi-level screening method for the data transmitted in the data transmission network; the generation module is configured to generate the target corresponding to the initial data transmission network according to the target data screening policy A data screening topology to obtain a target data transmission network, wherein the target data screening topology is used to filter data for each output port according to the corresponding relationship between the input port and the output port of the data transmission network.
根据本发明的又一个实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to perform any one of the above methods when running Steps in the examples.
根据本发明的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above Steps in the method examples.
通过本发明实施例,通过从多个拓扑结构类型中确定初始数据传输网络所对应的目标拓扑结构类型,其中,初始数据传输网络用于按照输入端口与输出端口之间的对应关系传输数据;确定目标拓扑结构类型所对应的 目标数据筛选策略,其中,目标数据筛选策略用于指示对数据传输网络中传输的数据进行多级筛选的方式;按照目标数据筛选策略生成初始数据传输网络对应的目标数据筛选拓扑结构,得到目标数据传输网络,其中,目标数据筛选拓扑结构用于按照数据传输网络的输入端口与输出端口之间的对应关系为每个输出端口筛选数据,即,将数据传输网络中传输的数据按照多级筛选的策略进行筛选,不同的拓扑结构对应不同的数据筛选策略,当在多个拓扑结构中确定与初始数据传输网络所对应的目标拓扑结构类型后,确定目标拓扑结构对应的目标数据筛选策略,进而能够确定出对初始数据传输网络需要进行的多级筛选方式,进而能够根据该数据筛选策略生成初始数据传输网络对应的目标数据筛选拓扑结构,该目标数据筛选拓扑结构能够按照数据传输网络的输入端口和输出端口之间的关系为每个输出端口分级筛选数据,通过设计分级筛选拓扑结构的方式,对数据传输网络的输入端口的数据进行分级筛选,避免了数据量较大时造成的瞬时筛选压力,在保证筛选时序的同时高效快速的输入端口输入的数据进行数据筛选,,因此,解决了相关技术中存在的数据筛选效率较低的问题,达到了提高数据筛选效率的效果。Through the embodiment of the present invention, the target topology type corresponding to the initial data transmission network is determined from multiple topology types, wherein the initial data transmission network is used to transmit data according to the corresponding relationship between the input port and the output port; determine The target data filtering strategy corresponding to the target topology type, where the target data filtering strategy is used to indicate the multi-level filtering method for the data transmitted in the data transmission network; the target data corresponding to the initial data transmission network is generated according to the target data filtering strategy Screen the topology to obtain the target data transmission network, wherein the target data screening topology is used to filter data for each output port according to the corresponding relationship between the input port and the output port of the data transmission network, that is, transmit the data in the data transmission network The data is screened according to the multi-level screening strategy. Different topological structures correspond to different data screening strategies. After determining the target topology type corresponding to the initial data transmission network in multiple topological structures, determine the corresponding target topology structure. The target data screening strategy can then determine the multi-level screening method required for the initial data transmission network, and then can generate the target data screening topology corresponding to the initial data transmission network according to the data screening strategy. The target data screening topology can be based on The relationship between the input port and the output port of the data transmission network is to filter data hierarchically for each output port. By designing a hierarchical screening topology, the data of the input port of the data transmission network is classified and screened to avoid a large amount of data. The instantaneous screening pressure caused by time, while ensuring the screening time sequence, efficiently and quickly input data from the input port for data screening. Therefore, the problem of low data screening efficiency in related technologies is solved, and the goal of improving data screening efficiency is achieved. Effect.
附图说明Description of drawings
图1是本发明实施例的数据筛选拓扑结构的生成方法的移动终端硬件结构框图;Fig. 1 is the block diagram of mobile terminal hardware structure of the generation method of the data screening topology structure of the embodiment of the present invention;
图2是根据本发明实施例的数据筛选拓扑结构的生成方法的流程图;2 is a flowchart of a method for generating a data screening topology according to an embodiment of the present invention;
图3是根据本发明实施例的一种可选的目标数据传输网络示意图;FIG. 3 is a schematic diagram of an optional target data transmission network according to an embodiment of the present invention;
图4是根据本发明实施例的另一种可选的目标数据传输网络示意图;FIG. 4 is a schematic diagram of another optional target data transmission network according to an embodiment of the present invention;
图5是根据本发明实施例的数据筛选拓扑结构的生成装置的结构框图。Fig. 5 is a structural block diagram of an apparatus for generating a data filtering topology according to an embodiment of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本发明的实施例。Embodiments of the present invention will be described in detail below with reference to the drawings and in combination with the embodiments.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.
本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的数据筛选拓扑结构的生成方法的移动终端硬件结构框图。如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU(Microcontroller Unit,微控制单元)或可编程逻辑器件FPGA(Field Programmable Gate Array,可编辑逻辑阵列)等的处理装置)和被设置为存储数据的存储器104,其中,上述移动终端还可以包括被设置为通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiments provided in the embodiments of the present application may be executed in mobile terminals, computer terminals or similar computing devices. Taking running on a mobile terminal as an example, FIG. 1 is a block diagram of a mobile terminal hardware structure in a method for generating a data filtering topology structure according to an embodiment of the present invention. As shown in Figure 1, the mobile terminal may include one or more (only one is shown in Figure 1) processors 102 (the processor 102 may include but not limited to a microprocessor MCU (Microcontroller Unit, micro control unit) or programmable A processing device such as a logic device FPGA (Field Programmable Gate Array, editable logic array) and a memory 104 configured to store data, wherein the above-mentioned mobile terminal may also include a transmission device 106 configured as a communication function and an input/output device 108. Those skilled in the art can understand that the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in FIG. 1 , or have a different configuration from that shown in FIG. 1 .
存储器104可被设置为存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的数据筛选拓扑结构的生成方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be set to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for generating the data screening topology in the embodiment of the present invention, the processor 102 runs the stored in the memory 104 A computer program to perform various functional applications and data processing, that is, to realize the above-mentioned methods. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106被设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一 个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其被设置为通过无线方式与互联网进行通讯。The transmission device 106 is arranged to receive or transmit data via a network. The specific example of the above network may include a wireless network provided by the communication provider of the mobile terminal. In one example, the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In an example, the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is configured to communicate with the Internet in a wireless manner.
在本实施例中提供了一种数据筛选拓扑结构的生成方法,图2是根据本发明实施例的数据筛选拓扑结构的生成方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a method for generating a data screening topology is provided. FIG. 2 is a flowchart of a method for generating a data screening topology according to an embodiment of the present invention. As shown in FIG. 2 , the process includes the following steps:
步骤S202,从多个拓扑结构类型中确定初始数据传输网络所对应的目标拓扑结构类型,其中,所述初始数据传输网络用于按照输入端口与输出端口之间的对应关系传输数据;Step S202, determining the target topology type corresponding to the initial data transmission network from multiple topology types, wherein the initial data transmission network is used to transmit data according to the corresponding relationship between the input port and the output port;
步骤S204,确定所述目标拓扑结构类型所对应的目标数据筛选策略,其中,所述目标数据筛选策略用于指示对所述数据传输网络中传输的数据进行多级筛选的方式;Step S204, determining a target data screening policy corresponding to the target topology type, wherein the target data screening policy is used to indicate a multi-level screening method for data transmitted in the data transmission network;
步骤S206,按照所述目标数据筛选策略生成所述初始数据传输网络对应的目标数据筛选拓扑结构,得到目标数据传输网络,其中,所述目标数据筛选拓扑结构用于按照所述数据传输网络的输入端口与输出端口之间的对应关系为每个输出端口筛选数据。Step S206: Generate a target data screening topology corresponding to the initial data transmission network according to the target data screening strategy to obtain a target data transmission network, wherein the target data screening topology is used for inputting according to the data transmission network The correspondence between ports and output ports filters data for each output port.
通过上述步骤,将数据传输网络中传输的数据按照多级筛选的策略进行筛选,不同的拓扑结构对应不同的数据筛选策略,当在多个拓扑结构中确定与初始数据传输网络所对应的目标拓扑结构类型后,确定目标拓扑结构对应的目标数据筛选策略,进而能够确定出对初始数据传输网络需要进行的多级筛选方式,进而能够根据该数据筛选策略生成初始数据传输网络对应的目标数据筛选拓扑结构,该目标数据筛选拓扑结构能够按照数据传输网络的输入端口和输出端口之间的关系为每个输出端口分级筛选数据,通过设计分级筛选拓扑结构的方式,对数据传输网络的输入端口的数据进行分级筛选,避免了数据量较大时造成的瞬时筛选压力,在保证筛选时序的同时高效快速的输入端口输入的数据进行数据筛选,,因此,解决了相关技术中存在的数据筛选效率较低的问题,达到了提高数据筛选效率的效 果。Through the above steps, the data transmitted in the data transmission network is screened according to the multi-level screening strategy. Different topological structures correspond to different data screening strategies. When determining the target topology corresponding to the initial data transmission network in multiple topological structures After the structure type, determine the target data screening strategy corresponding to the target topology, and then determine the multi-level screening method required for the initial data transmission network, and then generate the target data screening topology corresponding to the initial data transmission network according to the data screening strategy structure, the target data filtering topology can filter data for each output port hierarchically according to the relationship between the input port and output port of the data transmission network. By designing a hierarchical filtering topology, the data of the input port of the data transmission network Perform hierarchical screening to avoid the instantaneous screening pressure caused by a large amount of data, and efficiently and quickly filter the data input from the input port while ensuring the screening time sequence. Therefore, it solves the problem of low data screening efficiency in related technologies The problem has achieved the effect of improving the efficiency of data screening.
在上述步骤S202提供的技术方案中,拓扑结构类型用于指示对数据进行分级筛选的筛选策略的类型。In the technical solution provided in step S202 above, the topology type is used to indicate the type of screening strategy for hierarchical screening of data.
可选地,在本实施例中,拓扑结构类型是根据用于进行数据筛选的器件的排列连接形式划分的,用于数据筛选的器件可以但不限于包括数据选择器和寄存器,其中,数据选择器用于在多个输入端口中选择该数据选择器对应的数据,并允许该数据通过,寄存器用于临时存储数据,保证数据时筛选时序。Optionally, in this embodiment, the topology type is divided according to the arrangement and connection form of the devices used for data screening, and the devices used for data screening may include, but are not limited to, data selectors and registers, wherein the data selection The register is used to select the data corresponding to the data selector from multiple input ports and allow the data to pass through, and the register is used to temporarily store the data to ensure the timing of data screening.
可选地,在本实施例中,目标拓扑结构类型可以是根据数据传输网络的拥塞程度值确定的,还可以是根据操作人员的选择指令确定的,比如,当数据传输网络中的输入端口数量高于某一值时,确定数据传输网络处于拥塞状态,还可以数据传输网络中每个端口允许传输的数据位宽高于某一值时,确定数据传输网络处于拥塞状态,或者还可以是输入端口数量高于某一值并且每个端口的数据位宽高于某一值时,确定数据传输网络处于拥塞状态。Optionally, in this embodiment, the target topology type may be determined according to the congestion degree value of the data transmission network, or may be determined according to an operator's selection instruction, for example, when the number of input ports in the data transmission network When it is higher than a certain value, it is determined that the data transmission network is in a congested state, and when the data bit width allowed to be transmitted by each port in the data transmission network is higher than a certain value, it is determined that the data transmission network is in a congested state, or it can also be an input When the number of ports is higher than a certain value and the data bit width of each port is higher than a certain value, it is determined that the data transmission network is in a congested state.
在上述步骤S204提供的技术方案中,多级筛选的筛选级数是根据输入端口数量和/或每个端口允许初始的数据位宽确定的,比如,可以按照输入端口进行分级筛选,还可以按照端口内的数据的各个数据位进行分级筛选,或者还可以是按照输入端口和数据的各个数据位进行分级筛选,本方案对此不做限定。In the technical solution provided by the above step S204, the number of screening stages of multi-level screening is determined according to the number of input ports and/or the initial data bit width allowed by each port. Each data bit of the data in the port is classified and filtered, or may be classified and screened according to the input port and each data bit of the data, which is not limited in this solution.
可选地,在本实施例中,筛选策略包括数据筛选器件的布置方式,比如,布置方式可以但不限于包括数据选择器的布置方式、寄存器的布置方式等等,本方案对此不做限定。Optionally, in this embodiment, the screening strategy includes the arrangement of data screening devices. For example, the arrangement may include, but is not limited to, the arrangement of data selectors, the arrangement of registers, etc., which is not limited in this solution. .
在上述步骤S206提供的技术方案中,目标数据传输网络中包括可以为每个输出端口执行对多个输入端口的分级筛选操作的筛选器件之间的连接关系,比如寄存器和寄存器之间的连接关系、寄存器和数据选择器之 间的连接关系,数据选择器之间的布置的先后顺序等等。In the technical solution provided by the above step S206, the target data transmission network includes the connection relationship between screening devices that can perform hierarchical screening operations on multiple input ports for each output port, such as the connection relationship between registers , the connection relationship between registers and data selectors, the arrangement sequence of data selectors, and so on.
作为一种可选的实施例,所述从多个拓扑结构类型中确定所述数据传输网络的所对应的目标拓扑结构类型,包括:As an optional embodiment, the determining the corresponding target topology type of the data transmission network from multiple topology types includes:
获取所述初始数据传输网络的第一数据传输参数,其中,所述第一数据传输参数包括:所述初始数据传输网络的端口数量,和/或,所述初始数据传输网络的每个端口的信号位宽;Obtaining a first data transmission parameter of the initial data transmission network, wherein the first data transmission parameter includes: the number of ports of the initial data transmission network, and/or, the number of ports of each port of the initial data transmission network Signal bit width;
根据所述第一数据传输参数确定所述初始数据传输网络的目标拥塞度,其中,所述目标拥塞度用于指示所述初始数据传输网络所传输的数据在所述初始数据传输网络中的拥塞程度;determining a target congestion level of the initial data transmission network according to the first data transmission parameter, wherein the target congestion level is used to indicate congestion of data transmitted by the initial data transmission network in the initial data transmission network degree;
将所述多个拓扑结构类型中与所述目标拥塞度匹配的拓扑结构类型确定为所述目标拓扑结构类型。Determining, among the plurality of topology types, a topology type that matches the target congestion degree as the target topology type.
可选地,在本实施例中,拥塞度是对端口数量,和/或,信号位宽进行分析得到的结果,比如,当端口数量超过第一阈值时确定数据传输网络处于目标拥塞度,还可以是当信号位宽大于第二阈值时确定数据传输网络处于目标拥塞度,或者还可以是当端口数量超过第一阈值并且信号位宽大于第二阈值时确定数据传输网络处于目标拥塞度,本方案对此不做限定。Optionally, in this embodiment, the congestion degree is the result of analyzing the number of ports and/or the signal bit width. For example, when the number of ports exceeds the first threshold, it is determined that the data transmission network is at the target congestion degree, and It may be determined that the data transmission network is at the target congestion degree when the signal bit width is greater than the second threshold, or it may be determined that the data transmission network is at the target congestion degree when the number of ports exceeds the first threshold and the signal bit width is greater than the second threshold. The plan does not limit this.
作为一种可选的实施例,所述确定所述目标拓扑结构类型所对应的目标数据筛选策略,包括:As an optional embodiment, the determining the target data screening strategy corresponding to the target topology type includes:
根据所述初始数据传输网络的第二数据传输参数确定与所述目标拓扑结构类型匹配的筛选分级参数;determining screening and ranking parameters matching the target topology type according to the second data transmission parameters of the initial data transmission network;
获取所述目标拓扑结构类型所对应的目标筛选器件的目标连接方式;Acquiring the target connection mode of the target screening device corresponding to the target topology type;
将所述筛选分级参数和所述目标连接方式确定为所述目标数据筛选策略。The screening classification parameters and the target connection mode are determined as the target data screening strategy.
可选地,在本实施例中,第二数据传输参数可以但不限于包括初始数据传输网络的端口数量,和/或,初始数据传输网络的每个端口的信号位宽。Optionally, in this embodiment, the second data transmission parameter may include, but is not limited to, the number of ports of the initial data transmission network, and/or, the signal bit width of each port of the initial data transmission network.
可选地,在本实施例中,目标每一级的目标筛选器件用于对多个输入端口内的部分数据进行筛选。Optionally, in this embodiment, the target filtering device at each stage is used to filter part of the data in multiple input ports.
可选地,在本实施例中,目标筛选器件包括数据选择器,目标筛选器件是多选一的数据选择器件,目标筛选器件单次筛选数据的数量小于输入端口接收到的总数据量,比如,可以是二选一的数据选择器、三选一的数据选择器、四选一的数据选择器,本方案的对此不做限定。Optionally, in this embodiment, the target screening device includes a data selector, the target screening device is a data selection device that selects one of many, and the number of single-screened data of the target screening device is less than the total amount of data received by the input port, such as , can be a data selector that chooses one of two, a data selector that chooses one of three, or a data selector that chooses one of four, which is not limited in this solution.
可选地,在本实施例中,每个目标拓扑结构类型可以对应一种数据筛选能力的目标筛选器件,也可以是对应多种数据筛选能力的目标筛选器件,比如,目标拓扑结构对应多个二选一数据筛选器件的连接方式,还可以是目标拓扑结构对应多个二选一数据筛选器件和多个三选一数据筛选器件的连接方式。Optionally, in this embodiment, each target topology type may correspond to a target screening device with a data screening capability, or may be a target screening device corresponding to multiple data screening capabilities, for example, the target topology corresponds to multiple The connection mode of the one-two data screening device may also be a connection mode corresponding to multiple one-two data screening devices and multiple one-three data screening devices corresponding to the target topology.
作为一种可选的实施例,所述根据所述初始数据传输网络的第二数据传输参数确定与所述目标拓扑结构类型匹配的筛选分级参数,包括:As an optional embodiment, the determining, according to the second data transmission parameters of the initial data transmission network, the screening and grading parameters matching the target topology type includes:
获取所述初始数据传输网络的所述第二数据传输参数,其中,所述第二数据传输参数包括:所述初始数据传输网络的端口数量,和/或,所述初始数据传输网络的每个端口的信号位宽;Acquiring the second data transmission parameters of the initial data transmission network, where the second data transmission parameters include: the number of ports of the initial data transmission network, and/or, each The signal bit width of the port;
在所述目标拓扑结构类型为第一类型的情况下,按照所述第一类型对应的分级函数计算所述第二数据传输参数对应的第一分级数量作为所述筛选分级参数,其中,所述第一分级数量用于指示在属于所述第一类型的拓扑结构下每组对应的输入端口和输出端口之间划分的筛选等级的数量;In the case where the target topology type is the first type, calculate the first grading number corresponding to the second data transmission parameter as the screening grading parameter according to the grading function corresponding to the first type, wherein the The first hierarchical number is used to indicate the number of screening levels divided between each group of corresponding input ports and output ports under the topology belonging to the first type;
在所述目标拓扑结构类型为第二类型的情况下,按照所述第二类型对应的分级函数计算所述第二数据传输参数对应的第二分级数量作为所述筛选分级参数,其中,所述第二分级数量用于指示在属于所述第二类型的拓扑结构下每组对应的输入端口和输出端口之间划分的筛选等级的数量。In the case where the target topology type is the second type, calculate the second grading number corresponding to the second data transmission parameter as the screening grading parameter according to the grading function corresponding to the second type, wherein the The second level number is used to indicate the number of screening levels divided between each group of corresponding input ports and output ports under the topology structure belonging to the second type.
可选地,在本实施例中,为了保证数据的时序,初始数据传输网络中各组输入端口和输出端口之间划分的筛选等级的数量是相同的。Optionally, in this embodiment, in order to ensure the time sequence of data, the number of screening levels divided between each group of input ports and output ports in the initial data transmission network is the same.
作为一种可选的实施例,所述获取所述目标拓扑结构类型所对应的目标筛选器件的目标连接方式,包括:As an optional embodiment, the acquiring the target connection mode of the target screening device corresponding to the target topology type includes:
在所述目标拓扑结构类型为第一类型的情况下,确定所述目标连接方式包括:所述第一分级数量中的第一级目标筛选器件的输入数据来自所述每组对应的输入端口和输出端口中的目标输入端口以及所述初始数据传输网络的输入端口中除所述目标输入端口外其他端口中的部分端口;所述第一分级数量中除第一级之外的其他分级的目标筛选器件的输入数据来自其他分级的上一级目标筛选器件以及其他端口中未连接目标筛选器件的端口;所述第一分级数量中最后一级目标筛选器件的输出端与所述每组对应的输入端口和输出端口中的目标输出端口连接;In the case where the target topology type is the first type, determining the target connection mode includes: the input data of the first-level target screening devices in the first hierarchical quantity comes from each set of corresponding input ports and Target input ports among the output ports and some ports among other ports except the target input port among the input ports of the initial data transmission network; targets of other levels in the first level number except the first level The input data of the screening device comes from the upper-level target screening device of other classifications and the port that is not connected to the target screening device in other ports; the target output port connection in the input port and output port;
在所述目标拓扑结构类型为第二类型的情况下,确定所述目标连接方式包括:所述第二分级数量中第一级所包括的多个目标筛选器件的输入数据来自所述初始数据传输网络的全部输入端口;所述第二分级数量中除第一级之外的其他分级的目标筛选器件的输入数据来自上一级目标筛选器件;所述第二分级数量中最后一级目标筛选器件的输出端与所述每组对应的输入端口和输出端口中的目标输出端口连接。In the case where the target topology type is the second type, determining the target connection mode includes: the input data of the multiple target screening devices included in the first level in the second hierarchical quantity comes from the initial data transmission All input ports of the network; the input data of the target screening devices of other levels except the first level in the second hierarchical quantity come from the upper level target screening device; the last level target screening device in the second hierarchical quantity The output terminal of is connected to the target output port in each set of corresponding input ports and output ports.
可选地,在本实施例中,在目标拓扑结构类型为第二类型的情况下,第一级所包括的多个目标筛选器件的筛选能力可以是相同的,也可以是不同的。Optionally, in this embodiment, when the target topology type is the second type, the screening capabilities of the multiple target screening devices included in the first stage may be the same or different.
作为一种可选的实施例,所述获取所述目标拓扑结构类型所对应的目标筛选器件的目标连接方式,还包括:As an optional embodiment, the acquiring the target connection mode of the target screening device corresponding to the target topology type further includes:
在所述目标拓扑结构类型为第一类型的情况下,确定所述目标连接方式还包括:通过第一数量的寄存器调整所述第一分级数量的目标筛选器件之间的数据传输时序;In the case where the target topology type is the first type, determining the target connection mode further includes: adjusting the data transmission timing between the first hierarchical number of target screening devices through a first number of registers;
在所述目标拓扑结构类型为第二类型的情况下,确定所述目标连接方式还包括:通过第二数量的寄存器调整所述第二分级数量的目标筛选器件 之间的数据传输时序。In a case where the target topology type is the second type, determining the target connection mode further includes: adjusting a data transmission timing between the second hierarchical number of target screening devices through a second number of registers.
可选地,在本实施例中,为保证时序,寄存器可以连续设置,比如,某个端口的多个筛选级中未设置目标筛选器件,因此这个端口的数据在这些筛选级中没有数据筛选时延,为保证该端口和其他端口的时序,可以在该端口的未设置目标筛选器件的多个筛选级的位置设置寄存器,以保证时序问题。Optionally, in this embodiment, in order to ensure the timing, the registers can be continuously set. For example, the target screening device is not set in multiple screening stages of a certain port, so when the data of this port is not filtered in these screening stages Delay, in order to ensure the timing of this port and other ports, registers can be set at the position of multiple screening stages of the port where no target screening device is set, so as to ensure timing problems.
可选地,在本实施例中,第一类型的拓扑结构中,第一级中包括一个第一目标筛选器件,第一目标筛选器用于对所述多个数据输入端口接收到的数据中部分数据进行筛选,第一分级数量中的其他筛选级中的每一级筛选级中包括一个第二目标筛选器,第二目标筛选器用于对上一级筛选级的筛选结果以及多个数据中未被筛选的数据进行筛选,第一级中设置第一寄存器,第一寄存器的数量与多个数据输入端口的数量匹配,第一寄存器用于寄存多个数据输入端口接收到的所述多个数据,其他筛选级中设置第二寄存器,其他筛选级中每一筛选级中设置的第二寄存器的数量与上一筛选级的筛选结果和多个数据中未被筛选的数据流的数量匹配,第二寄存器用于寄存上一筛选级筛选的筛选结果和多个数据中未被筛选的数据,尾筛选级的目标筛选器件后设置第三寄存器,第三寄存器用于寄存尾筛选级的筛选结果。Optionally, in this embodiment, in the first type of topology, the first stage includes a first target filter device, and the first target filter is used to filter some of the data received by the plurality of data input ports Each level of other filtering levels in the first level of classification includes a second target filter, and the second target filter is used to filter the results of the previous level of filtering and multiple data that are not included in the filtering results. The screened data is screened, the first register is set in the first stage, the number of the first register matches the number of multiple data input ports, and the first register is used to register the multiple data received by the multiple data input ports , the second registers are set in other screening stages, the number of second registers set in each screening stage in other screening stages matches the screening results of the previous screening stage and the number of unfiltered data streams in multiple data, the first The second register is used to store the screening results of the previous screening stage and the unfiltered data among multiple data, and the third register is set after the target screening device of the tail screening stage, and the third register is used to register the screening results of the tail screening stage.
可选地,在本实施例中,第二类型的拓扑结构中,第一级中包括多个第一目标筛选器件,每个第一目标筛选器件用于对多个数据输入端口接收到的多个数据进行筛选,所述第一筛选方式中除第一级以外的其他筛选级中的第二目标筛选器件用于对上一级筛选的筛选结果进行筛选,第一级中设置第一寄存器,第一寄存器的数量与多个数据输入端口的数量匹配,第一寄存器用于为所述第一目标筛选器件寄存所述多个数据输入端口接收到的多个数据,其他筛选级中设置第二寄存器,其他筛选级中的每一级筛选级中包括的第二寄存器的数量与上一筛选级包括的目标筛选器件的数量匹配,第二寄存器用于寄存上一筛选级筛选的筛选结果,第一筛选方式 中的尾筛选级的数据选择器后设置第三寄存器,第三寄存器用于寄存尾筛选级的筛选结果Optionally, in this embodiment, in the second type of topology, the first stage includes a plurality of first target screening devices, and each first target screening device is used for multiple data received by multiple data input ports. In the first screening mode, the second target screening device in other screening levels other than the first level is used to filter the screening results of the previous level of screening, and the first register is set in the first level, The quantity of the first register matches the quantity of multiple data input ports, and the first register is used for registering multiple data received by the multiple data input ports for the first target screening device, and the second register is set in other screening stages register, the number of second registers included in each screening stage in the other screening stages matches the quantity of target screening devices included in the previous screening stage, and the second register is used to register the screening result of the previous screening stage screening, the first The third register is set behind the data selector of the tail filter stage in the first filter mode, and the third register is used to store the filter result of the tail filter stage
图3是根据本发明实施例的一种可选的目标数据传输网络示意图,应用了本发明实施例的第一类型的拓扑结构,本图示例性的列举了在四个输入端口的数据中选择端口A输出的数据,以输出端口A_Output输出为例,先通过第一级的二选一的目标筛选器件做A_Input输入和B_Input的选择,每一级的二选一的目标筛选器件的前后都加上寄存器,为了在时序上对齐,另外2个输入端口C_Input和D_Input需要增加额外的流水线。第二级二选一的的目标筛选器件的输入,一路是第一级的目标筛选器件的输出结果,另外一路是C_Input经过2级pipeline之后的输入,第二级的目标筛选器件的结果输出从逻辑上就是三个输入端口A_Input,B_Input和C_Input的选择输出。第三级二选一的的目标筛选器件的输入,一路是第二级的目标筛选器件的输出结果,另外一路是D_Input经过3级pipeline之后的输入,第三级的目标筛选器件的结果输出从逻辑上就是四个输入端口A_Input,B_Input,C_Input和D_Input的选择输出,最后再通过寄存器输出给输出端口A_Input。每一级同时只有1级的二选一的目标筛选器件,其余的输入通过插入pipeline来做时序上的对齐,而且每一级的二选一的目标筛选器件的前后都插入寄存器,在后端实现上,可以把每一级的二选一的目标筛选器件摆放在较大的面积范围,例如图3中的第一级有1024个二选一的目标筛选器件,和第二级的1024个二选一的目标筛选器件,就可以摆放得较远,避免产生绕线拥塞问题,同时由于前后都有寄存器,时序收敛也得以解决。Fig. 3 is a schematic diagram of an optional target data transmission network according to an embodiment of the present invention, which applies the first type of topology structure of the embodiment of the present invention. This figure exemplarily lists the selection of data from four input ports For the data output by port A, take the output port A_Output output as an example. First, select the A_Input input and B_Input through the first-stage target screening device. For the upper register, in order to align in timing, the other two input ports C_Input and D_Input need to add additional pipelines. The input of the second-stage target screening device, one of which is the output of the first-stage target screening device, and the other is the input of C_Input after passing through the 2-stage pipeline, and the result output of the second-stage target screening device is from Logically, it is the selection output of the three input ports A_Input, B_Input and C_Input. The input of the third-level target screening device, one of which is the output of the second-level target screening device, and the other is the input of D_Input after passing through the 3-level pipeline, and the output of the third-level target screening device is from Logically, it is the selection output of the four input ports A_Input, B_Input, C_Input and D_Input, and finally output to the output port A_Input through the register. At each level, there are only one-level target screening devices at the same time, and the rest of the inputs are inserted into the pipeline for timing alignment, and registers are inserted before and after each level of target screening devices, and at the back end In terms of implementation, the target screening devices of each stage can be placed in a larger area. For example, the first stage in Figure 3 has 1024 target screening devices of the second stage, and 1024 of the second stage. A target screening device that chooses one of the two can be placed far away to avoid the problem of winding congestion. At the same time, since there are registers before and after, timing convergence can also be solved.
图4是根据本发明实施例的另一种可选的目标数据传输网络示意图,应用了本发明实施例的第二类拓扑结构,本图示例性的列举了在四个输入端口的数据中选择端口A输出的数据,先通过第一级的两个二选一的目标筛选器件做A_Input、B_Input的选择和C_Input、D_Input的选择,每一级的二选一的目标筛选器件的前后都加上寄存器,为了在时序上对齐,第二 级二选一的的目标筛选器件的输入分别是上一级的两个数据选择器的输出结果,最后再通过寄存器输出给输出端口A_Input,该结构中,每一级同时对多个输入端口两两进行二选一选择,第二级再对第一级的结果进行两两选择,直至最后一级。这样可以减少寄存器的使用,同时降低从输入端口到输出端口的延迟。FIG. 4 is a schematic diagram of another optional target data transmission network according to an embodiment of the present invention, which applies the second type of topology structure of the embodiment of the present invention. This figure exemplarily lists the selection of data from four input ports The data output from port A firstly selects A_Input, B_Input and C_Input, D_Input through the two alternative target screening devices of the first stage. Register, in order to be aligned in timing, the input of the target screening device of the second stage is the output result of the two data selectors of the previous stage, and finally output to the output port A_Input through the register. In this structure, Each stage simultaneously selects multiple input ports pair by pair, and the second stage performs pairwise selection on the results of the first stage until the last stage. This reduces register usage while reducing latency from input ports to output ports.
表1列举了采用二选一的目标筛选器件时第一类拓扑结构和第二类拓扑结构所需的寄存器数量、目标筛选器件数量、延迟情况,N为所述初始数据传输网络所包括的输入端口数量或者输出端口数量,W为所述初始数据传输网络的每个端口的信号位宽,如表1所示:Table 1 lists the number of registers, the number of target screening devices, and the delay required by the first type of topology and the second type of topology when using one of the target screening devices, and N is the input included in the initial data transmission network. The number of ports or the number of output ports, W is the signal bit width of each port of the initial data transmission network, as shown in Table 1:
Figure PCTCN2022138097-appb-000001
Figure PCTCN2022138097-appb-000001
表2是以N=4,W=1024为例,第一类拓扑结构和第二类拓扑结构所需的寄存器数量、目标筛选器件数量、延迟情况,如表2所示:Table 2 takes N=4, W=1024 as an example, the number of registers required by the first type of topology and the second type of topology, the number of target screening devices, and the delay, as shown in Table 2:
Figure PCTCN2022138097-appb-000002
Figure PCTCN2022138097-appb-000002
表3是以N=4,W=2048为例,第一类拓扑结构和第二类拓扑结构所需的寄存器数量、目标筛选器件数量、延迟情况,如表3所示:Table 3 takes N=4, W=2048 as an example, the number of registers required by the first type of topology and the second type of topology, the number of target screening devices, and the delay, as shown in Table 3:
Figure PCTCN2022138097-appb-000003
Figure PCTCN2022138097-appb-000003
表4是N=16,W=1024为例,第一类拓扑结构和第二类拓扑结构所需的寄存器数量、目标筛选器件数量、延迟情况,如表4所示:Table 4 is N=16, W=1024 is an example, the number of registers required by the first type of topology and the second type of topology, the number of target screening devices, and the delay, as shown in Table 4:
Figure PCTCN2022138097-appb-000004
Figure PCTCN2022138097-appb-000004
可以看到,随着输入/输出的端口数增加,第二类对比第一类拓扑结构所需寄存器个数和延迟都会有明显减少。第一类拓扑结构相对于第二类拓扑结构,虽然资源和延迟都较大,但是由于每一级只有两个输入进行选择,因此可以在更大的区域内进行绕线,而不会引起时序收敛问题。所以如果在第二类拓扑结果仍然有严重拥塞的情况下,可以采用第一类拓扑结构。It can be seen that as the number of input/output ports increases, the number of registers and the delay required by the second type of topological structure will be significantly reduced compared with the first type. Compared with the second topology, the first type of topology has larger resources and delays, but because each stage has only two inputs for selection, it can be routed in a larger area without causing timing Convergence problem. Therefore, if there is still serious congestion in the result of the second type of topology, the first type of topology can be used.
作为一种可选的实施例,所述方法还包括:As an optional embodiment, the method also includes:
确定所述目标筛选器件的数量为(N-1)*(W/2)*N;Determine the number of target screening devices as (N-1)*(W/2)*N;
确定所述第一数量为W*(N+1)*(N/2)*N;determining that the first quantity is W*(N+1)*(N/2)*N;
确定所述第二数量为W*(2^(Log2N+1)-1)*N;determining that the second quantity is W*(2^(Log2N+1)-1)*N;
其中,所述目标筛选器件为两输入的多路选择器,N为所述初始数据传输网络所包括的输入端口数量或者输出端口数量,W为所述初始数据传输网络的每个端口的信号位宽。Wherein, the target screening device is a two-input multiplexer, N is the number of input ports or the number of output ports included in the initial data transmission network, and W is the signal bit of each port of the initial data transmission network Width.
可选地,在本实施例中,信号位宽W可以取值为1、2、3、6、10等等。Optionally, in this embodiment, the signal bit width W may take a value of 1, 2, 3, 6, 10 and so on.
可选地,在本实施例中,端口数量可以取值为1、3、4、6、8、9、10等等。Optionally, in this embodiment, the number of ports may be 1, 3, 4, 6, 8, 9, 10 and so on.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理 解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.
在本实施例中还提供了一种数据筛选拓扑结构的生成装置,图5是根据本发明实施例的数据筛选拓扑结构的生成装置的结构框图,如图5所示,该装置包括:In this embodiment, a device for generating a data screening topology is also provided. FIG. 5 is a structural block diagram of a device for generating a data screening topology according to an embodiment of the present invention. As shown in FIG. 5 , the device includes:
第一确定模块52,被设置为从多个拓扑结构类型中确定初始数据传输网络所对应的目标拓扑结构类型,其中,所述初始数据传输网络用于按照输入端口与输出端口之间的对应关系传输数据;The first determination module 52 is configured to determine the target topology type corresponding to the initial data transmission network from a plurality of topology types, wherein the initial data transmission network is used to follow the corresponding relationship between the input port and the output port transfer data;
第二确定模块54,被设置为确定所述目标拓扑结构类型所对应的目标数据筛选策略,其中,所述目标数据筛选策略用于指示对所述数据传输网络中传输的数据进行多级筛选的方式;The second determination module 54 is configured to determine a target data screening policy corresponding to the target topology type, wherein the target data screening policy is used to indicate multi-level screening of data transmitted in the data transmission network Way;
生成模块56,被设置为按照所述目标数据筛选策略生成所述初始数据传输网络对应的目标数据筛选拓扑结构,得到目标数据传输网络,其中,所述目标数据筛选拓扑结构用于按照所述数据传输网络的输入端口与输出端口之间的对应关系为每个输出端口筛选数据。The generating module 56 is configured to generate a target data screening topology corresponding to the initial data transmission network according to the target data screening strategy to obtain a target data transmission network, wherein the target data screening topology is used to The correspondence between input ports and output ports of the transport network filters data for each output port.
可选的,所述第一确定模块包括:获取单元,被设置为获取所述初始数据传输网络的第一数据传输参数,其中,所述第一数据传输参数包括:所述初始数据传输网络的端口数量,和/或,所述初始数据传输网络的每个端口的信号位宽;第一确定单元,被设置为根据所述第一数据传输参数确定所述初始数据传输网络的目标拥塞度,其中,所述目标拥塞度用于指示所述初始数据传输网络所传输的数据在所述初始数据传输网络中的拥塞程度;第二确定单元,被设置为将所述多个拓扑结构类型中与所述目标拥塞度匹配的拓扑结构类型确定为所述目标拓扑结构类型。Optionally, the first determination module includes: an obtaining unit configured to obtain a first data transmission parameter of the initial data transmission network, wherein the first data transmission parameter includes: the initial data transmission network The number of ports, and/or, the signal bit width of each port of the initial data transmission network; the first determining unit is configured to determine the target congestion degree of the initial data transmission network according to the first data transmission parameter, Wherein, the target congestion degree is used to indicate the degree of congestion of the data transmitted by the initial data transmission network in the initial data transmission network; the second determination unit is configured to combine the plurality of topology types with The topology type matching the target congestion level is determined as the target topology type.
可选的,所述第二确定模块包括:第三确定单元,被设置为根据所述初始数据传输网络的第二数据传输参数确定与所述目标拓扑结构类型匹配的筛选分级参数;获取单元,被设置为获取所述目标拓扑结构类型所对应的目标筛选器件的目标连接方式;第四确定单元,被设置为将所述筛选分级参数和所述目标连接方式确定为所述目标数据筛选策略。Optionally, the second determination module includes: a third determination unit configured to determine, according to the second data transmission parameters of the initial data transmission network, the screening and grading parameters that match the target topology type; the acquisition unit, It is configured to obtain the target connection mode of the target screening device corresponding to the target topology type; the fourth determination unit is configured to determine the screening classification parameters and the target connection mode as the target data screening strategy.
可选的,所述第三确定单元被设置为:获取所述初始数据传输网络的所述第二数据传输参数,其中,所述第二数据传输参数包括:所述初始数据传输网络的端口数量,和/或,所述初始数据传输网络的每个端口的信号位宽;在所述目标拓扑结构类型为第一类型的情况下,按照所述第一类型对应的分级函数计算所述第二数据传输参数对应的第一分级数量作为所述筛选分级参数,其中,所述第一分级数量用于指示在属于所述第一类型的拓扑结构下每组对应的输入端口和输出端口之间划分的筛选等级的数量;在所述目标拓扑结构类型为第二类型的情况下,按照所述第二类型对应的分级函数计算所述第二数据传输参数对应的第二分级数量作为所述筛选分级参数,其中,所述第二分级数量用于指示在属于所述第二类型的拓扑结构下每组对应的输入端口和输出端口之间划分的筛选等级的数量。Optionally, the third determining unit is configured to: acquire the second data transmission parameters of the initial data transmission network, wherein the second data transmission parameters include: the number of ports of the initial data transmission network , and/or, the signal bit width of each port of the initial data transmission network; when the target topology type is the first type, calculate the second according to the hierarchical function corresponding to the first type The first classification number corresponding to the data transmission parameter is used as the screening classification parameter, wherein the first classification number is used to indicate the division between each group of corresponding input ports and output ports under the topology structure belonging to the first type The number of screening levels; in the case that the target topology type is the second type, calculate the second level number corresponding to the second data transmission parameter as the screening level according to the leveling function corresponding to the second type parameter, wherein the second hierarchical number is used to indicate the number of screening levels divided between each group of corresponding input ports and output ports under the topology structure belonging to the second type.
可选的,所述第三确定单元被设置为:在所述目标拓扑结构类型为第一类型的情况下,确定所述目标连接方式包括:所述第一分级数量中的目标筛选器件的输入数据来自所述每组对应的输入端口和输出端口中的目标输入端口以及所述初始数据传输网络的输入端口中除所述目标输入端口外其他端口中的部分端口;所述第一分级数量中除第一级之外的其他分级的目标筛选器件的输入数据来自其他分级的上一级目标筛选器件以及其他端口中未连接目标筛选器件的端口;所述第一分级数量中最后一级目标筛选器件的输出端与所述每组对应的输入端口和输出端口中的目标输出端口连接;在所述目标拓扑结构类型为第二类型的情况下,确定所述目标连接方式包括:所述第二分级数量中第一级所包括的多个目标筛选器件的输入数据来自所述初始数据传输网络的全部输入端口;所述第二分级数 量中除第一级之外的其他分级的目标筛选器件的输入数据来自上一级目标筛选器件;所述第二分级数量中最后一级目标筛选器件的输出端与所述每组对应的输入端口和输出端口中的目标输出端口连接。Optionally, the third determining unit is configured to: when the target topology type is the first type, determining the target connection mode includes: input of target screening devices in the first hierarchical quantity The data comes from the target input port in each set of corresponding input ports and output ports and some ports in the input ports of the initial data transmission network except the target input port; The input data of other hierarchical target screening devices except the first level comes from other hierarchical target screening devices and ports that are not connected to target screening devices in other ports; the last level of target screening in the first classification quantity The output terminal of the device is connected to the target output port in each set of corresponding input ports and output ports; when the target topology type is the second type, determining the target connection method includes: the second The input data of the plurality of target screening devices included in the first level in the hierarchical quantity comes from all the input ports of the initial data transmission network; The input data comes from the upper-level target screening device; the output terminal of the last-level target screening device in the second hierarchical quantity is connected to the target output port in each group of corresponding input ports and output ports.
可选的,所述第三确定单元还被设置为:在所述目标拓扑结构类型为第一类型的情况下,确定所述目标连接方式还包括:通过第一数量的寄存器调整所述第一分级数量的目标筛选器件之间的数据传输时序;在所述目标拓扑结构类型为第二类型的情况下,确定所述目标连接方式还包括:通过第二数量的寄存器调整所述第二分级数量的目标筛选器件之间的数据传输时序。Optionally, the third determining unit is further configured to: when the target topology type is the first type, determining the target connection mode further includes: adjusting the first The data transmission timing between the target screening devices of the hierarchical quantity; in the case that the target topology type is the second type, determining the target connection mode further includes: adjusting the second hierarchical quantity through a second quantity of registers The target screens the timing of data transfers between devices.
可选的,所述装置还包括:第四确定模块,被设置为确定所述目标筛选器件的数量为(N-1)*(W/2)*N;第五确定模块,被设置为确定所述第一数量为W*(N+1)*(N/2)*N;第六确定模块,被设置为确定所述第二数量为W*(2^(Log2N+1)-1)*N;其中,所述目标筛选器件为两输入的多路选择器,N为所述初始数据传输网络所包括的输入端口数量或者输出端口数量,W为所述初始数据传输网络的每个端口的信号位宽。Optionally, the device further includes: a fourth determination module, configured to determine that the number of target screening devices is (N-1)*(W/2)*N; a fifth determination module, configured to determine The first quantity is W*(N+1)*(N/2)*N; the sixth determination module is configured to determine that the second quantity is W*(2^(Log2N+1)-1) *N; wherein, the target screening device is a two-input multiplexer, N is the number of input ports or the number of output ports included in the initial data transmission network, and W is each port of the initial data transmission network signal width.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存 储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details will not be repeated here in this embodiment.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the present invention described above can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims (10)

  1. 一种数据筛选拓扑结构的生成方法,包括:A method for generating a data screening topology, comprising:
    从多个拓扑结构类型中确定初始数据传输网络所对应的目标拓扑结构类型,其中,所述初始数据传输网络用于按照输入端口与输出端口之间的对应关系传输数据;determining a target topology type corresponding to the initial data transmission network from multiple topology types, wherein the initial data transmission network is used to transmit data according to the corresponding relationship between input ports and output ports;
    确定所述目标拓扑结构类型所对应的目标数据筛选策略,其中,所述目标数据筛选策略用于指示对所述数据传输网络中传输的数据进行多级筛选的方式;determining a target data screening policy corresponding to the target topology type, wherein the target data screening policy is used to indicate a multi-level screening method for data transmitted in the data transmission network;
    按照所述目标数据筛选策略生成所述初始数据传输网络对应的目标数据筛选拓扑结构,得到目标数据传输网络,其中,所述目标数据筛选拓扑结构用于按照所述数据传输网络的输入端口与输出端口之间的对应关系为每个输出端口筛选数据。Generate a target data screening topology corresponding to the initial data transmission network according to the target data screening strategy to obtain a target data transmission network, wherein the target data screening topology is used for input ports and outputs of the data transmission network The correspondence between ports filters data for each output port.
  2. 根据权利要求1所述的方法,其中,所述从多个拓扑结构类型中确定所述数据传输网络的所对应的目标拓扑结构类型,包括:The method according to claim 1, wherein said determining the corresponding target topology type of the data transmission network from a plurality of topology types comprises:
    获取所述初始数据传输网络的第一数据传输参数,其中,所述第一数据传输参数包括:所述初始数据传输网络的端口数量,和/或,所述初始数据传输网络的每个端口的信号位宽;Obtaining a first data transmission parameter of the initial data transmission network, wherein the first data transmission parameter includes: the number of ports of the initial data transmission network, and/or, the number of ports of each port of the initial data transmission network Signal bit width;
    根据所述第一数据传输参数确定所述初始数据传输网络的目标拥塞度,其中,所述目标拥塞度用于指示所述初始数据传输网络所传输的数据在所述初始数据传输网络中的拥塞程度;determining a target congestion level of the initial data transmission network according to the first data transmission parameter, wherein the target congestion level is used to indicate congestion of data transmitted by the initial data transmission network in the initial data transmission network degree;
    将所述多个拓扑结构类型中与所述目标拥塞度匹配的拓扑结构类型确定为所述目标拓扑结构类型。Determining, among the plurality of topology types, a topology type that matches the target congestion degree as the target topology type.
  3. 根据权利要求1所述的方法,其中,所述确定所述目标拓扑结构类型所对应的目标数据筛选策略,包括:The method according to claim 1, wherein said determining the target data screening strategy corresponding to the target topology type comprises:
    根据所述初始数据传输网络的第二数据传输参数确定与所述目标拓扑结构类型匹配的筛选分级参数;determining screening and ranking parameters matching the target topology type according to the second data transmission parameters of the initial data transmission network;
    获取所述目标拓扑结构类型所对应的目标筛选器件的目标连接方式;Acquiring the target connection mode of the target screening device corresponding to the target topology type;
    将所述筛选分级参数和所述目标连接方式确定为所述目标数据筛选策略。The screening classification parameters and the target connection mode are determined as the target data screening strategy.
  4. 根据权利要求3所述的方法,其中,所述根据所述初始数据传输网络的第二数据传输参数确定与所述目标拓扑结构类型匹配的筛选分级参数,包括:The method according to claim 3, wherein said determining the screening and ranking parameters matching the target topology type according to the second data transmission parameters of the initial data transmission network comprises:
    获取所述初始数据传输网络的所述第二数据传输参数,其中,所述第二数据传输参数包括:所述初始数据传输网络的端口数量,和/或,所述初始数据传输网络的每个端口的信号位宽;Acquiring the second data transmission parameters of the initial data transmission network, where the second data transmission parameters include: the number of ports of the initial data transmission network, and/or, each The signal bit width of the port;
    在所述目标拓扑结构类型为第一类型的情况下,按照所述第一类型对应的分级函数计算所述第二数据传输参数对应的第一分级数量作为所述筛选分级参数,其中,所述第一分级数量用于指示在属于所述第一类型的拓扑结构下每组对应的输入端口和输出端口之间划分的筛选等级的数量;In the case where the target topology type is the first type, calculate the first grading number corresponding to the second data transmission parameter as the screening grading parameter according to the grading function corresponding to the first type, wherein the The first hierarchical number is used to indicate the number of screening levels divided between each group of corresponding input ports and output ports under the topology belonging to the first type;
    在所述目标拓扑结构类型为第二类型的情况下,按照所述第二类型对应的分级函数计算所述第二数据传输参数对应的第二分级数量作为所述筛选分级参数,其中,所述第二分级数量用于指示在属于所述第二类型的拓扑结构下每组对应的输入端口和输出端口之间划分的筛选等级的数量。In the case where the target topology type is the second type, calculate the second grading number corresponding to the second data transmission parameter as the screening grading parameter according to the grading function corresponding to the second type, wherein the The second level number is used to indicate the number of screening levels divided between each group of corresponding input ports and output ports under the topology structure belonging to the second type.
  5. 根据权利要求4所述的方法,其中,所述获取所述目标拓扑结构类型所对应的目标筛选器件的目标连接方式,包括:The method according to claim 4, wherein said obtaining the target connection mode of the target screening device corresponding to the target topology type comprises:
    在所述目标拓扑结构类型为第一类型的情况下,确定所述目标连接方式包括:所述第一分级数量中的目标筛选器件的输入数据来自所述每组对应的输入端口和输出端口中的目标输入端口以及所述初始数据传输网络的输入端口中除所述目标输入端口外其他端口中的部分端口;所述第一分级数量中除第一级之外的其他分级的目标筛选器件的输入数据来自其他 分级的上一级目标筛选器件以及其他端口中未连接目标筛选器件的端口;所述第一分级数量中最后一级目标筛选器件的输出端与所述每组对应的输入端口和输出端口中的目标输出端口连接;In the case where the target topology type is the first type, determining the target connection mode includes: the input data of the target screening devices in the first hierarchical quantity comes from each set of corresponding input ports and output ports The target input ports of the initial data transmission network and some ports in the input ports of the initial data transmission network except the target input ports; the target screening devices of other levels in the first level number except the first level The input data comes from the upper-level target screening device of other classifications and the port that is not connected to the target screening device in other ports; target output port connection in output port;
    在所述目标拓扑结构类型为第二类型的情况下,确定所述目标连接方式包括:所述第二分级数量中第一级所包括的多个目标筛选器件的输入数据来自所述初始数据传输网络的全部输入端口;所述第二分级数量中除第一级之外的其他分级的目标筛选器件的输入数据来自上一级目标筛选器件;所述第二分级数量中最后一级目标筛选器件的输出端与所述每组对应的输入端口和输出端口中的目标输出端口连接。In the case where the target topology type is the second type, determining the target connection mode includes: the input data of the multiple target screening devices included in the first level in the second hierarchical quantity comes from the initial data transmission All input ports of the network; the input data of the target screening devices of other levels except the first level in the second hierarchical quantity come from the upper level target screening device; the last level target screening device in the second hierarchical quantity The output terminal of is connected to the target output port in each set of corresponding input ports and output ports.
  6. 根据权利要求5所述的方法,其中,所述获取所述目标拓扑结构类型所对应的目标筛选器件的目标连接方式,还包括:The method according to claim 5, wherein said obtaining the target connection mode of the target screening device corresponding to the target topology type further comprises:
    在所述目标拓扑结构类型为第一类型的情况下,确定所述目标连接方式还包括:通过第一数量的寄存器调整所述第一分级数量的目标筛选器件之间的数据传输时序;In the case where the target topology type is the first type, determining the target connection mode further includes: adjusting the data transmission timing between the first hierarchical number of target screening devices through a first number of registers;
    在所述目标拓扑结构类型为第二类型的情况下,确定所述目标连接方式还包括:通过第二数量的寄存器调整所述第二分级数量的目标筛选器件之间的数据传输时序。In a case where the target topology type is the second type, determining the target connection mode further includes: adjusting a data transmission timing between the second hierarchical number of target screening devices through a second number of registers.
  7. 根据权利要求6所述的方法,其中,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    确定所述目标筛选器件的数量为(N-1)*(W/2)*N;Determine the number of target screening devices as (N-1)*(W/2)*N;
    确定所述第一数量为W*(N+1)*(N/2)*N;determining that the first quantity is W*(N+1)*(N/2)*N;
    确定所述第二数量为W*(2^(Log2N+1)-1)*N;determining that the second quantity is W*(2^(Log2N+1)-1)*N;
    其中,所述目标筛选器件为两输入的多路选择器,N为所述初始数据传输网络所包括的输入端口数量或者输出端口数量,W为所述初始数据传输网络的每个端口的信号位宽。Wherein, the target screening device is a two-input multiplexer, N is the number of input ports or the number of output ports included in the initial data transmission network, and W is the signal bit of each port of the initial data transmission network Width.
  8. 一种数据筛选拓扑结构的生成装置,包括:A device for generating a data screening topology, comprising:
    第一确定模块,被设置为从多个拓扑结构类型中确定初始数据传输网络所对应的目标拓扑结构类型,其中,所述初始数据传输网络用于按照输入端口与输出端口之间的对应关系传输数据;The first determination module is configured to determine the target topology type corresponding to the initial data transmission network from a plurality of topology types, wherein the initial data transmission network is used to transmit according to the corresponding relationship between the input port and the output port data;
    第二确定模块,被设置为确定所述目标拓扑结构类型所对应的目标数据筛选策略,其中,所述目标数据筛选策略用于指示对所述数据传输网络中传输的数据进行多级筛选的方式;The second determination module is configured to determine a target data screening policy corresponding to the target topology type, wherein the target data screening policy is used to indicate a multi-level screening method for data transmitted in the data transmission network ;
    生成模块,被设置为按照所述目标数据筛选策略生成所述初始数据传输网络对应的目标数据筛选拓扑结构,得到目标数据传输网络,其中,所述目标数据筛选拓扑结构用于按照所述数据传输网络的输入端口与输出端口之间的对应关系为每个输出端口筛选数据。The generation module is configured to generate a target data screening topology corresponding to the initial data transmission network according to the target data screening strategy to obtain a target data transmission network, wherein the target data screening topology is used for the data transmission according to the The correspondence between the input ports and the output ports of the network filters the data for each output port.
  9. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被处理器执行时实现所述权利要求1至7任一项中所述的方法的步骤。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein, when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented .
  10. 一种电子装置,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现所述权利要求1至7任一项中所述的方法的步骤。An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program, any one of claims 1 to 7 is realized The steps of the method described in item.
PCT/CN2022/138097 2021-12-30 2022-12-09 Method and apparatus for generating data screening topological structure WO2023124915A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111663247.8 2021-12-30
CN202111663247.8A CN116418682A (en) 2021-12-30 2021-12-30 Method and device for generating data screening topological structure

Publications (1)

Publication Number Publication Date
WO2023124915A1 true WO2023124915A1 (en) 2023-07-06

Family

ID=86997678

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/138097 WO2023124915A1 (en) 2021-12-30 2022-12-09 Method and apparatus for generating data screening topological structure

Country Status (2)

Country Link
CN (1) CN116418682A (en)
WO (1) WO2023124915A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004260368A (en) * 2003-02-25 2004-09-16 Hitachi Ltd Network transfer device in which different redundant structure is possible
US20080175170A1 (en) * 2007-01-19 2008-07-24 Lockheed Martin Corporation Periodically reconfigured networks
CN105743705A (en) * 2016-03-31 2016-07-06 中国人民解放军国防科学技术大学 Hierarchical policy based data center network availability assessment method and assessment apparatus
US20180095930A1 (en) * 2016-10-03 2018-04-05 The Regents Of The University Of Michigan Field-Programmable Crossbar Array For Reconfigurable Computing
CN108111930A (en) * 2017-12-15 2018-06-01 中国人民解放军国防科技大学 Multi-bare-chip high-order optical switching structure based on high-density memory
CN112995041A (en) * 2021-04-21 2021-06-18 北京国科天迅科技有限公司 Network communication method, device, electronic equipment and storage medium
CN113778938A (en) * 2021-08-31 2021-12-10 上海阵量智能科技有限公司 Method and device for determining network-on-chip topological structure and chip

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004260368A (en) * 2003-02-25 2004-09-16 Hitachi Ltd Network transfer device in which different redundant structure is possible
US20080175170A1 (en) * 2007-01-19 2008-07-24 Lockheed Martin Corporation Periodically reconfigured networks
CN105743705A (en) * 2016-03-31 2016-07-06 中国人民解放军国防科学技术大学 Hierarchical policy based data center network availability assessment method and assessment apparatus
US20180095930A1 (en) * 2016-10-03 2018-04-05 The Regents Of The University Of Michigan Field-Programmable Crossbar Array For Reconfigurable Computing
CN108111930A (en) * 2017-12-15 2018-06-01 中国人民解放军国防科技大学 Multi-bare-chip high-order optical switching structure based on high-density memory
CN112995041A (en) * 2021-04-21 2021-06-18 北京国科天迅科技有限公司 Network communication method, device, electronic equipment and storage medium
CN113778938A (en) * 2021-08-31 2021-12-10 上海阵量智能科技有限公司 Method and device for determining network-on-chip topological structure and chip

Also Published As

Publication number Publication date
CN116418682A (en) 2023-07-11

Similar Documents

Publication Publication Date Title
Li et al. ESM: Efficient and scalable data center multicast routing
US8964752B2 (en) Method and system for flow table lookup parallelization in a software defined networking (SDN) system
US9602428B2 (en) Method and apparatus for locality sensitive hash-based load balancing
US8958419B2 (en) Switch fabric primitives
US9083607B2 (en) Method and device for processing data cell
CN108259387B (en) Switching system constructed by switch and routing method thereof
WO2011072978A1 (en) Method for processing a plurality of data and switching device for switching communication packets
EP3136662B1 (en) Construction method, device and system for multi-path forwarding rules
EP2297905A1 (en) Cascaded memory tables for searching
WO2018133781A1 (en) Database functions-defined network switch and database system
WO2014018890A1 (en) Recursive, all-to-all network topologies
WO2023124915A1 (en) Method and apparatus for generating data screening topological structure
CN108337176B (en) Message processing method and device
CN113300851A (en) DHT-based block chain message broadcasting method, electronic equipment and storage medium
CN107276908B (en) Routing information processing method and packet switching equipment
CN108337181B (en) Method and device for managing congestion of switching network
Chiu et al. The design and implementation of a latency-aware packet classification for OpenFlow protocol based on FPGA
CN110417576B (en) Deployment method, device, equipment and storage medium of hybrid software custom network
CN108574642B (en) Congestion management method and device for switching network
Salisbury et al. A high speed scheduler/controller for unbuffered banyan networks
CN114389989B (en) Multistage next hop route processing method and device
Dong et al. An efficient hardware routing algorithms for NoC
US11665111B2 (en) Low latency compact Clos network controller
US11711318B1 (en) Packet switches
Madhubala et al. A competent performance analysis of king mesh topology

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22914170

Country of ref document: EP

Kind code of ref document: A1