WO2013173966A1 - Scheduling method, device and system based on three-stage interconnected switched network - Google Patents

Scheduling method, device and system based on three-stage interconnected switched network Download PDF

Info

Publication number
WO2013173966A1
WO2013173966A1 PCT/CN2012/075832 CN2012075832W WO2013173966A1 WO 2013173966 A1 WO2013173966 A1 WO 2013173966A1 CN 2012075832 W CN2012075832 W CN 2012075832W WO 2013173966 A1 WO2013173966 A1 WO 2013173966A1
Authority
WO
WIPO (PCT)
Prior art keywords
switching unit
bandwidth
level switching
map information
port
Prior art date
Application number
PCT/CN2012/075832
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 华为技术有限公司
Priority to PCT/CN2012/075832 priority Critical patent/WO2013173966A1/en
Priority to CN201280000846.4A priority patent/CN102835081B/en
Publication of WO2013173966A1 publication Critical patent/WO2013173966A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules

Definitions

  • the present invention relates to the field of data communications, and in particular, to a scheduling method, apparatus, and system based on a three-level interconnected switching network. Background technique
  • the switching network is a "bridge" connecting the input ports and output ports of the router, and is the core network for packet packet forwarding. As the traffic of the switching network increases, the capacity of the switching network needs to be upgraded from time to time. Therefore, a multi-level interconnection switching network composed of multiple switching units is used.
  • the three-level interconnection switching network is the most commonly used multi-level interconnection interaction.
  • the network, the three-level interconnection switching network is composed of three-level switching units, that is, the first-level switching unit, the intermediate-level switching unit, and the third-level switching unit.
  • the indicators of the switching network are: throughput (close to 100% optimal), average cell (packet) delay, cell (packet) delay jitter, cell (packet) loss rate, blocking probability, etc.
  • throughput close to 100% optimal
  • average cell (packet) delay cell (packet) delay jitter
  • cell (packet) loss rate cell (packet) loss rate
  • blocking probability etc.
  • many adaptive scheduling algorithms are used in the switching network, among which the general adaptive scheduling algorithm is used.
  • the adaptive scheduling is performed by the CRRD algorithm. Two matches occur during the adaptation of the schedule: Inbound and outbound port matching and path matching. among them,
  • S1 has a virtual output queue (Virtual Output Queue, hereinafter referred to as VOQ) to issue requests to all outbounds of the SI, each The outbound end takes the window position register value of the outbound end, selects a request according to the polling mode, and sends back the acknowledgement to the VOQ corresponding to the request; the VOQ arbiter takes out the window position register value of the VOQ, according to the polling mode, One of the possible acknowledgments is sent back to the admission. Repeat the above steps until the VOQ queued in S1 receives the acknowledgement sent by the outgoing end.
  • VOQ Virtual Output Queue
  • the path matching occurs in the intermediate-level switching unit (hereinafter referred to as S2). Specifically, if an inbound end of S2 obtains information from the outbound end of the corresponding S1: the cell is forwarded at the outbound end, and the ingress of S2 is obtained. A request is made to the outbound end of S2 determined by the destination address of the cell, and the outbound end of S2 takes out the window position register value of the local end, and selects from among multiple possible ingress requests according to the polling mode. Take one to admit.
  • the corresponding VOQ of S1 sends the queued cells.
  • the invention provides a scheduling method, device and system based on a three-level interconnected switching network, which solves the problem that the CRRD algorithm is used for adaptive scheduling in the prior art, and the switching throughput is limited while limiting the size of the switching network.
  • an embodiment of the present invention provides a scheduling method based on a three-level interconnected switching network, including:
  • the first level switching unit obtains the port bandwidth map information, where the outbound port bandwidth map information is a bandwidth allocated to the input module according to the rated bandwidth of the output port of the output module and the bandwidth requirement of the input module;
  • the first-level switching unit generates channel bandwidth map information according to the outbound port bandwidth map information, where the channel map information is a bandwidth allowed between the same first-level switching unit and the same third-level switching unit;
  • the first-level switching unit generates path bandwidth map information according to the channel map information, where the path bandwidth map information is allowed to be carried by each path between the same first-level switching unit and the same third-level switching unit.
  • Bandwidth is allowed to be carried by each path between the same first-level switching unit and the same third-level switching unit.
  • the first-level switching unit caches the data stream that needs to reach the output port of the output module through the same first-level switching unit and the same third-level switching unit according to the destination address of the data stream. And in the queue, according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit, sending the data flow to the third-level switching unit by using each path .
  • the embodiment of the present invention provides a first-level switching unit, including: a first acquiring unit, configured to acquire port bandwidth map information, where the outbound port bandwidth map information is based on an output port of the output module.
  • the bandwidth and bandwidth requirements of the input module are the bandwidth allocated by the input module;
  • a first generating unit configured to generate channel bandwidth map information according to the outbound port bandwidth map information acquired by the first acquiring unit, where the channel map information is between the same first level switching unit and the same third level switching unit The bandwidth allowed to be carried;
  • a second generating unit configured to generate path bandwidth map information according to the channel map information generated by the first generating unit, where the path bandwidth map information is between the same first-level switching unit and the same third-level switching unit The bandwidth allowed for each path;
  • the first scheduling unit when receiving the data stream, is configured to buffer, according to the destination address of the data stream, a data stream that needs to reach the output port of the output module through the same first-level switching unit and the same third-level switching unit to one And in the queue, according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit, sending the data flow to the third-level switching unit by using each path .
  • an embodiment of the present invention provides a three-level interconnected switching network, including the first-level switching unit. .
  • the first-level switching unit sets each path between the first-level switching unit and the third-level switching unit according to the out-port bandwidth map information.
  • the allowed bandwidth is generated, and the path bandwidth map information is generated corresponding to each path, so that when the first-level switching unit receives the data stream, the destination address of the data stream needs to pass through the same first-level switching unit and the same third.
  • the data stream of the egress port of the output switching unit is buffered into a queue, and the data stream is sent to the third-level switching unit according to the path bandwidth map information, so that the data stream is scheduled, and the data stream is not required.
  • a request-arbitration request is made every time a cell is transmitted, which solves the problem in the prior art that the size of the switching network is limited because one request-arbitration is required for each cell to be transmitted.
  • FIG. 1 (a) is a flow chart 1 of a scheduling method based on a three-level interconnected switching network according to Embodiment 1 of the present invention
  • FIG. 1(b) is a scheduling method based on a three-level interconnected switching network according to Embodiment 1 of the present invention. Flow chart two;
  • FIG. 2 ( a ) is a three-stage CLOS switching network system architecture provided by the second embodiment of the present invention.
  • FIG. 2 ( a2 ) is a three-level CLOS switching network system architecture provided by the second embodiment of the present invention.
  • FIG. 2(b) is a flowchart of a scheduling method based on a three-level interconnected switching network according to Embodiment 2 of the present invention
  • Figure 2 (c) is a schematic diagram of the uniform interleaving of the switching cell cycle in the second embodiment of the present invention
  • Figure 3 (a) is a schematic structural diagram 1 of the first-stage switching unit according to the third embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a first scheduling unit in the first-stage switching unit shown in FIG. 3 (a);
  • FIG. 3(c) is a schematic structural diagram 2 of a first-stage switching unit according to Embodiment 3 of the present invention
  • FIG. 4(a) is a schematic structural diagram 1 of an input module in a three-level interconnected switching network according to Embodiment 3 of the present invention
  • FIG. 4(b) is a second schematic diagram showing the structure of an input module in a three-level interconnected switching network according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of an output module in a three-level interconnected switching network according to Embodiment 3 of the present invention. detailed description
  • Embodiment 1 For purposes of illustration and description However, the detailed description of well-known devices, circuits, and methods may be omitted to avoid obscuring the description of the present invention.
  • the embodiment of the present invention provides a scheduling method based on a three-level interconnected switching network, which is applied to a first-level switching unit in the three-level interconnected switching network. As shown in FIG. 1(a), the method may include: 101.
  • the first-level switching unit acquires an information of an Out Port Bandwidth Map (hereinafter referred to as OP-BWM).
  • OP-BWM Out Port Bandwidth Map
  • the OP-BWM information is a bandwidth allocated to the input module according to a rated bandwidth of the egress port and a bandwidth requirement of the input module.
  • the OP-BWM information may be generated and sent by the output module, or may be a preset empirical value, which is not limited herein.
  • the output module When the OP-BWM information is generated and sent by the output module, the output module needs to acquire an output requirement of an output port of the plurality of input modules (Out Port Requirement, hereinafter referred to as OP-REQ), so that The output module output port allocates bandwidth according to the OP-REQ for the input module that sends the OP-REQ, and generates corresponding OP-BWM information.
  • OP-REQ Out Port Requirement
  • the OP-REQ may be sent to the corresponding egress port in the form of a control cell via the three-level interconnected switching network, that is, the control cell carrying the OP-REQ is received by the first-level switching unit, and according to The destination address in the control cell sends the control cell to the corresponding third-level switching unit, and is sent to the egress port of the corresponding output module through the third-level switching unit; optionally, the OP-REQ It can also be transmitted in the form of a control cell to the egress port of the output module corresponding to the destination address in the control cell through a dedicated control channel.
  • the OP-REQ is transmitted by the input module to the corresponding output module, Limited to the above two specific ways, not here - repeat.
  • the first-level switching unit generates a channel bandwidth map (S1S3 Bandwidth Map, hereinafter referred to as S13-BWM) according to the outbound port map information.
  • S1S3 Bandwidth Map hereinafter referred to as S13-BWM
  • the S13-BWM information is a bandwidth allowed to be carried between the same first-level switching unit and the same third-level switching unit.
  • the first-level switching unit generates a path bandwidth map S123-BWM (S1S2S3 Bandwidth Map, hereinafter abbreviated as S123-BWM) according to the S13-BWM information.
  • S123-BWM path bandwidth map
  • the S123-BWM information is a bandwidth allowed for each path between the same first-level switching unit and the same third-level switching unit.
  • the first-level switching unit When receiving the data stream, the first-level switching unit needs to reach the data stream buffer of the output port of the output module by using the same first-level switching unit and the same third-level switching unit according to the destination address of the data stream. Go to a queue, and send the data stream to the third-level switching unit through each path according to S123-BWM information of each path between the first-level switching unit and the third-level switching unit. .
  • the first level switching unit is configured according to the first level switching unit and the third level, in order to ensure the TDM performance of the time division multiplexing (TDM) type service flow.
  • the S123-BWM information of each path between the switching units is sent to the third-level switching unit by using the data path, and the method includes: if the data flow is a packet type service flow, the first And the level switching unit sends the packet type service flow to the first level exchange according to the S123-BWM information of each path between the first level switching unit and the third level switching unit.
  • the S123-BWM information of each path is selected, and a path is selected to distribute the TDM type service flow to the selected path.
  • the first-stage switching unit according to the S123-BWM information of each path between the first-level switching unit and the third-level switching unit
  • the data stream is sent to the third-level switching unit by using each path, and may further include: the first-level switching unit uniformly sorts the S123-BWM information of each path, and outputs the first cell. Outputting the sorting table; the first-stage switching unit sends the data stream sent by the path corresponding to the S123-BWM to the third-level switching unit according to the first cell output sorting table.
  • the method as shown in FIG. 1 (b), further includes:
  • the first-stage switching unit sends the OP-BWM information to a corresponding input module, so that the input module is configured according to the OP-BWM information and the ingress port data flow pair in the input module.
  • Bandwidth allocation is performed for the bandwidth requirement of the outbound port corresponding to the port bandwidth map information.
  • the input module performs bandwidth allocation according to the OP-BWM information and the inbound port data stream of the input module to the bandwidth requirement of the egress port that sends the OP-BWM information, Specifically, the input module generates a data flow bandwidth map corresponding to each ingress port according to the OP-BWM information and the data flow in the input module to the bandwidth requirement of the outbound port that sends the OP-BWM information (Flow Requirement) , hereinafter abbreviated as F-REQ) information; the F-BWM information is uniformly divided by the cells to output the second cell loss And sorting the table so that the data stream of the ingress port is sent to the first level switching unit according to the second cell output sorting table.
  • F-REQ Flow Requirement
  • the first-level switching unit sets the bandwidth allowed for each path between the first-level switching unit and the third-level switching unit according to the OP-BWM information.
  • S123-BWM information is generated corresponding to each path, so that when the first-stage switching unit receives the data stream, the destination address of the data stream needs to reach the output through the same first-level switching unit and the same third-level switching unit.
  • the data stream of the outbound port of the module is buffered into a queue, and the data stream is sent to the third-level switching unit according to the S123-BWM information, so that the data stream is scheduled, and no one cell is required to be sent.
  • a request-arbitration request is made to solve the problem in the prior art that the request-arbitration is required for each cell to be transmitted, which limits the size of the switching network.
  • the scheduling method based on the three-level interconnected switching network provided by the second embodiment of the present invention is described in detail in order to enable a person skilled in the art to better understand the technical solutions provided by the embodiments of the present invention.
  • a N*N three-level CLOS switching network system architecture is taken as an example for detailed description.
  • the three-level CLOS switching network system architecture includes N
  • the ingress port and the N egress ports are provided by multiple input ingress modules and multiple output Egress modules.
  • the N*N three-stage CLOS switching network is built by using switching units.
  • N is the number of inbound ports and the number of egress ports.
  • the switching network includes a first-level switching unit, an intermediate switching unit, and a third-level switching unit.
  • the level switching unit is m*n Crossbar, there are also k
  • the intermediate level switching network is k*k Crossbar, a total of m.
  • the three-stage CLOS switching network can be written as (n, m, k). Obviously, the three-stage CLOS switching network is a multi-path network. There are m paths between a pair of specified inbound and outbound ends, and each path passes through a different intermediate level switching unit.
  • the ingress module introduces a data stream bandwidth requirement collection (Requirement Convergence, hereinafter referred to as R-Con) processing unit, collects the data stream bandwidth requirement of the physical port of the module, ensures the data stream bandwidth requirement and is smaller than the physical port bandwidth, and uses the same outgoing port.
  • R-Con data stream bandwidth requirement collection
  • the data stream bandwidth requirements are combined into the outbound port bandwidth requirement (Out Port Requirement, hereinafter referred to as 0P-REQ);
  • Egress module 1 into distributed real-time bandwidth arbitration (Real Time Bandwidth Arbitrate, The following is an RBA unit, which collects the OP-REQ sent by each Ingress module, distributes the port bandwidth to the aggregated data stream of each ingress port, and outputs the Out Port Bandwidth Map (hereinafter referred to as OP-BWM) information. .
  • RBA unit collects the OP-REQ sent by each Ingress module, distributes the port bandwidth to the aggregated data stream of each ingress port, and outputs the Out Port Bandwidth Map (hereinafter referred to as OP-BWM) information.
  • OP-BWM Out Port Bandwidth Map
  • S1 collects the OP-BWM information, and extracts the aggregated data stream that has passed through the same S1 and mapped to the same S3 in the load balancing SORT (abbreviated as LB SORT) unit, and performs secondary aggregation to obtain the aggregated bandwidth, thereby generating the aggregated bandwidth.
  • LB SORT load balancing SORT
  • S 13-BWM A S1 to S3 channel bandwidth map (S1S3 Bandwidth Ma, hereinafter referred to as S 13-BWM) information, and the aggregated bandwidth is based on the S2 path for the traffic equalization output path bandwidth map (S1S2S3 Bandwidth Map, hereinafter referred to as S123-BWM)
  • S1S2S3 Bandwidth Map hereinafter referred to as S123-BWM
  • the information is then sorted by the cell, and the first cell output table is output (this table indicates the traffic path matching and cell scheduling transmission processing of S1).
  • the ingress module collects the OP-BWM information, and the Ingress Bandwidth Allocate SORT (hereinafter referred to as the IBA SORT) unit aggregates the bandwidth of the outgoing port of the module (that is, the l n ress module) according to the data stream bandwidth requirement.
  • the output F-BWM Flow Bandwidth Map
  • the second cell output sorting table is output through the cell uniform distribution sorting process (this table indicates the input and output port traffic matching and cell scheduling transmission of the Ingress module). deal with).
  • the scheduling method based on the three-level interconnection switching network may include:
  • the traffic management (Traffic Manager, hereinafter abbreviated as ⁇ ) module in the Ingress module detects the data flow bandwidth requirement (Flow Requirement, hereinafter referred to as F-REQ), and aggregates the outgoing port corresponding to the destination address of the data flow in the R-Con unit.
  • the OP-REQ is encapsulated into a control cell and sent to the Egress module.
  • the traffic measurement module in the TM module obtains the flow rate V
  • the queue cache control module in the TM module obtains the data stream buffer depth Depth, and generates F-REQ according to the flow rate and the cache information:
  • F-REQ flow rate + data stream buffer depth / unit time
  • the unit time is a set time for sending data of the data stream buffer depth in the cache.
  • the F-REQ corresponding to the egress port of the same output module is aggregated to generate an OP-REQ; the corresponding ID is assigned to the OP-REQ, and is encapsulated into a control cell, where the identifier ID is used to indicate that the cell is controlled.
  • the control cell is reported to the three-level interconnected switching network and sent to the third-level interconnected switching network.
  • ingress 1, inbound port 3, inbound port 4, and ingress port 6 of Ingress 1 have data flows to the egress port 1 of the egressl.
  • the F-REQ of port 1 is 0.3 Mbits/s
  • the F-port of port 3 is F-
  • the FQ is 0.2 Mbits/s
  • the F-REQ of port 4 is 0.5 Mbits/s
  • the F-REQ of port 6 is 1 Mbits/s.
  • the bandwidth requirement of Ingress 1 for outgoing port 1 of Egress1 is the above F-REQ. Sum: 2 Mbits/s.
  • the Egress module receives the control cell by using the three-level interconnection interaction network, and extracts an OP-REQ in the control cell, and sends the OP-REQ to the distributed RBA module, where the distributed RBA module corresponds to the destination address carried by the control cell.
  • the outbound port rated bandwidth and the OP-REQ calculate the OP-BWM information and send it to the corresponding Ingress module through the tertiary interconnected switching network.
  • an egress port corresponding to the egress module can receive control cells sent by multiple ingress modules, and multiple ingress modules request bandwidth from the egress port, and the egress port requests according to its rated bandwidth and each Ingress module.
  • the bandwidth is allocated to each Ingress fairly. For example, Ingress 1, Ingress 2, and Ingress 3 are separately queried to the egress1 outbound port 1 request: 1 Mbits/s, 2 Mbits/s, 3 Mbits/s bandwidth, and the outgoing bandwidth of the egress 1 is 3 Mbits/s.
  • Ingress 1, Ingress 2, and Ingress 3 allocate 0.5 Mbits/s, 1 Mbits/s, and 1.5 Mbits/s for Ingress 1, Ingress 2, and Ingress 3, and generate corresponding OP-BWM accordingly.
  • Information is sent to the corresponding Ingress 1, Ingress2, and Ingress 3 through a three-level interconnected interactive network.
  • the S1 in the three-level interconnection interaction network extracts the OP-BWM information sent to the Ingress module connected thereto, and performs the S3 home aggregation of the OP-BWM information through the LB SORT unit, and outputs the S13-BWM information, and then based on
  • the S2 intermediate path performs the traffic load burden processing to uniformly output the S123-BWM information, and then performs the sorting processing by the cell hook distribution, and outputs the first cell output sorting table, and controls the path matching of the S1 and the uniform scheduling of the cells.
  • the OP-BWM information is aggregated into S13-BWM information according to S1-S3; the S13-BWM information is distributed according to the number of paths between S1 and S3, that is, the number m of S2, for example, the minimum
  • the granularity is 4Mbits/s
  • S13 -BWM 1200M
  • (S13-BWM/granularity) /N is rounded to 37, the remainder is 4, and each S2 is allocated 37 or 38 granularities, ie 148 Mbits/s.
  • 152 Mbits/s output S123-BWM information.
  • the S123-BWM information is sent to the cell and the first cell output sorting table is output.
  • the ingress module extracts the OP-BWM information, and sends the information according to the ingress port data stream.
  • the F-REQ of the outgoing port of the OP-BWM message is proportionally distributed corresponding to each ingress port.
  • the F-BWM information is then subjected to cell uniform interleaving processing of the F-BWM information, and the output second cell output sorting table is calculated and output.
  • the global ingress and egress port bandwidth allocation is implemented in step 204, and the egress module has no traffic blocking, which can simplify the quality of service (QoS) design of the egress module, and significantly reduce the output module cache requirement. At the same time, it provides strict QoS guarantees for different data streams.
  • QoS quality of service
  • the Switch Management (hereinafter referred to as SM) module of the Ingress module controls the data stream cell transmission according to the second cell output sorting table of the module, ensuring that the cells of the ingress and egress ports are matched and sent, and the cell is guaranteed. Delay jitter.
  • the S1 receives the information of the ingress module, performs the S3 queue buffer according to the cell ID, and then sends the S2 path to the S2 according to the first cell output sorting table of the first level.
  • the path matching problem of cell transmission is guaranteed.
  • S2 receives the cell from S1, and sends it to a different S3 according to the cell ID, and S3 sends the message to the corresponding Egress module according to the cell ID.
  • the Egress module receives the cell, and performs reordering and reorganizing the data frame according to the cell serial number.
  • the processing flow of the S1 and Ingress module cells uniformly interleaving and sorting to generate the cell output sorting table may be implemented in the following manner:
  • the timing position is such that the array outputs a corresponding cell output sort table according to the book order position.
  • the preset switching cell period is 16 cell units, and the 16 cell units of the switching cell cycle are divided into 8 arrays, each array, 2 slots, and the binary reverse direction.
  • Table 1 a uniformly spaced cell output ordering table is obtained.
  • an ingress port of the Ingress module is to send data stream 1 and stream 2, stream 1 requires a bandwidth of 8 cells, and stream 2 requires a bandwidth of 4 cells, each The cell consists of 2 arrays
  • the first cell (Cell), the second cell is the data stream 2, the first cell, the fourth cell, the no data stream, the 14th cell, the data stream 2, the 4th cell, and the 15th cell, the data stream.
  • the 8th Cell of the 1st, the 16th Cell has no data stream transmission.
  • the first-level switching unit sets the bandwidth allowed for each path between the first-level switching unit and the third-level switching unit according to the OP-BWM information.
  • S123-BWM information is generated corresponding to each path, so that when the first-level switching unit receives the data stream, the data stream that needs to reach the egress port through the same third-level switching unit is buffered to a queue according to the destination address of the data stream.
  • the embodiment of the present invention provides a first-level switching unit corresponding to the method in the foregoing first embodiment, including:
  • the first obtaining unit 31 is configured to acquire port bandwidth map information, where the outbound port bandwidth is The figure information is the bandwidth allocated to the input module according to the rated bandwidth of the output port of the output module and the bandwidth requirement of the input module;
  • the first generating unit 32 is configured to generate channel bandwidth map information according to the outbound port bandwidth map information acquired by the first acquiring unit, where the channel map information is the same first level switching unit and the same third level switching unit. Bandwidth allowed between hosts;
  • a second generating unit 33 configured to generate path bandwidth map information according to the channel map information generated by the first generating unit, where the path bandwidth map information is between the same first level switching unit and the same third level switching unit Each path allows the bandwidth to be carried;
  • the first scheduling unit 34 when receiving the data stream, is configured to cache the data stream that needs to reach the output port of the output module through the same first-level switching unit and the same third-level switching unit according to the destination address of the data stream. And in a queue, according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit, sending the data flow to the third-level exchange through each path unit.
  • the first scheduling unit includes:
  • a first scheduling sub-unit 341, configured to: if the data stream is a packet type service flow, according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit, Packet-type service flows are distributed to each path between the first-level switching unit and the third-level switching unit;
  • a second scheduling sub-unit 342 configured to: if the data stream is a time-division multiplex type service flow, select, according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit, A path for distributing the service stream of the time division multiplexing type to the selected path.
  • the first scheduling unit further includes:
  • the first sorting output sub-unit 343 is configured to perform path-to-interpolation sorting of the path bandwidth map information of each path, and output a first cell output sorting table;
  • the first sending subunit 344 is configured to send, by using the first cell output sorting table, the data stream that is sent by the path corresponding to the path bandwidth map to the third level switching unit.
  • the first-stage switching unit further includes: a first receiving unit 35, configured to receive a control cell sent by the input module, where the control cell includes a destination address. And the bandwidth requirement of the output port of the output module corresponding to the destination address of the input module;
  • a first sending unit 36 configured to receive, by the first receiving unit, according to the destination address And sending, by the control module, the egress port of the output module, so that the egress port of the output module allocates bandwidth to the input module according to the rated bandwidth of the egress port itself and the bandwidth requirement carried in the control cell , generating port bandwidth map information;
  • the first obtaining unit 31 is specifically configured to receive the outbound port bandwidth map information sent by the output module.
  • the first-stage switching unit further includes: a second sending unit 37, configured to send the outbound port bandwidth map information to a corresponding input module, so that the The input module performs bandwidth allocation according to the outbound port bandwidth map information and the ingress port data stream in the input module to the bandwidth requirement of the egress port corresponding to the egress port bandwidth map information.
  • a second sending unit 37 configured to send the outbound port bandwidth map information to a corresponding input module, so that the The input module performs bandwidth allocation according to the outbound port bandwidth map information and the ingress port data stream in the input module to the bandwidth requirement of the egress port corresponding to the egress port bandwidth map information.
  • the first acquiring unit 31, the first generating unit 32, the second generating unit 33, the first scheduling unit 34, the first receiving unit 35, the first sending unit 36, and the second sending unit 37 are executed by the foregoing.
  • the action can be performed by an electronic circuit, chip or processor having a certain structure.
  • the embodiment of the present invention further provides a three-level interconnection switching network, including the first-level switching unit shown in FIG. 3 ( a ) - FIG. 3 ( c ), and further, an input module and an output module;
  • the input module is configured to send a control cell to the output module, where the control cell includes a destination address and a bandwidth requirement of an output port of the output module corresponding to the destination address of the input module:
  • the output module is configured to receive a control cell sent by the input module, allocate bandwidth to the input module according to a bandwidth requirement carried by the control cell, generate port bandwidth map information, and send the information to the input module and The first stage switching unit;
  • the input module is further configured to perform bandwidth allocation according to the outbound port bandwidth map information and the inbound port data stream in the input module to the bandwidth requirement of the egress port corresponding to the egress port bandwidth map information.
  • the input module specifically includes: a second acquiring unit 41, configured to acquire a flow rate and cache information of an ingress port data stream of the input module;
  • the third generating unit 42 is configured to generate, according to the flow rate acquired by the second acquiring unit and the cache information, a bandwidth requirement of the ingress port data stream to the egress port;
  • Aggregation unit 43 configured to use the bandwidth requirement of the same egress port generated by the third generating unit Performing aggregation to generate a bandwidth requirement of the input module for the egress port;
  • the third sending unit 44 is configured to allocate a corresponding identifier for the bandwidth requirement of the egress port obtained by the aggregation of the aggregation unit, and encapsulate the packet into a control cell, where the identifier includes an identifier of the input module and an address of the egress port.
  • the input module further includes:
  • a fourth generating unit 45 configured to generate a data stream corresponding to each ingress port according to the outbound port bandwidth map information and the data stream bandwidth requirement of the outbound port that sends the outbound port bandwidth map information in the input module Bandwidth map information;
  • a sorting unit 46 configured to perform, by using the data stream bandwidth map information, a cell-to-be-interpolated sorting output, to output a second cell output sorting table, so that the data stream of the ingress port is sent according to the second cell output sorting table. Give the first level of exchange unit.
  • the operations performed by the third transmitting unit 44, the fourth generating unit 45, and the sorting unit 46 may be performed by an electronic circuit, chip, or processor having a certain structure.
  • the output module specifically includes:
  • a second receiving unit 51 configured to receive a control cell sent by the input module
  • a fifth generating unit 52 configured to allocate bandwidth to the input module according to a bandwidth requirement carried by the control cell received by the second receiving unit, to generate port bandwidth map information
  • the fourth sending unit 53 is configured to send the port bandwidth map information generated by the fifth generating unit to the input module and the first level switching unit.
  • the operations performed by the second receiving unit 51, the fifth generating unit 52, and the fourth transmitting unit 53 described above may be performed by an electronic circuit, chip or processor having a certain structure.
  • the first level switching unit and the third level interconnection switching network provided by the embodiment of the present invention, where the first level switching unit sets each path between the first level switching unit and the third level switching unit to be beared according to the OP-BWM information.
  • the bandwidth, corresponding to each path generates S123-BWM information, so that when the first-level switching unit receives the data stream, according to the destination address of the data stream, the data stream that needs to reach the egress port through the same third-level switching unit is cached.

Abstract

The present invention relates to the field of data communications. Disclosed in an embodiment of the present invention are a scheduling method, device, and system based on a three-stage interconnected switched network, for solving the problem in the prior art of restricting the scale of the switched network while ensuring the switching throughput during adaptive scheduling using the CRRD algorithm. The technical solution provided by the present invention comprises: a first-stage switching unit obtains the outgoing port map information; generates channel bandwidth map information according to the outgoing port bandwidth map information; generates path bandwidth map information according to the channel map information; when receiving the data stream, according to the destination addresses of the data stream, caches the data stream required to reach an outgoing port of an output module through the same first-stage switching unit and the same third-stage switching unit into a queue, and transmits the data stream to the third-stage switching unit through respective paths according to the path bandwidth map information of each path between the first-stage switching unit and the third-stage switching unit.

Description

基于三级互联交换网络的调度方法、 装置及系统 技术领域  Scheduling method, device and system based on three-level interconnected switching network
本发明涉及数据通信领域, 尤其涉及一种基于三级互联交换网络的调 度方法、 装置及系统。 背景技术  The present invention relates to the field of data communications, and in particular, to a scheduling method, apparatus, and system based on a three-level interconnected switching network. Background technique
交换网络是连接路由器输入端口和输出端口的 "桥梁", 是实现分组报 文转发的核心网络。 随着交换网络处理业务流量的增长, 交换网络的容量 需要不时升级, 故, 多采用多个交换单元构成的多级互联交换网络, 其中 三级互联交换网络是最常用的一种多级互联交互网络, 三级互联交换网络 由三级交换单元构成, 即由第一级交换单元、 中间级交换单元以及第三级 交换单元构成。  The switching network is a "bridge" connecting the input ports and output ports of the router, and is the core network for packet packet forwarding. As the traffic of the switching network increases, the capacity of the switching network needs to be upgraded from time to time. Therefore, a multi-level interconnection switching network composed of multiple switching units is used. The three-level interconnection switching network is the most commonly used multi-level interconnection interaction. The network, the three-level interconnection switching network is composed of three-level switching units, that is, the first-level switching unit, the intermediate-level switching unit, and the third-level switching unit.
交换网络的指标有: 吞吐率 (接近 100%最佳), 平均信元(包) 时延, 信元(包) 时延抖动, 信元(包)丟失率, 阻塞概率等。 为了尽量优化性 能, 在交换网络中使用了很多适配调度算法, 其中比较普遍适配调度算法  The indicators of the switching network are: throughput (close to 100% optimal), average cell (packet) delay, cell (packet) delay jitter, cell (packet) loss rate, blocking probability, etc. In order to optimize performance as much as possible, many adaptive scheduling algorithms are used in the switching network, among which the general adaptive scheduling algorithm is used.
CRRD ) 算法。 CRRD) algorithm.
在三级克洛斯 CLOS网络中, 通过 CRRD算法进行适配调度。 在适配 调度的过程中发生两次匹配: 入出端口匹配和路径匹配。 其中,  In the three-stage Clos CLOS network, the adaptive scheduling is performed by the CRRD algorithm. Two matches occur during the adaptation of the schedule: Inbound and outbound port matching and path matching. among them,
入出端口匹配发生在第一级交换单元(以下简称为 S1 ) 中, 具体为: S1中有排队的虚拟输出队列 (Virtual Output Queue, 以下简称为 VOQ ) 向 SI的所有出端发出请求, 每个出端取本出端的窗口位置寄存器值, 按照轮 询方式, 选择一个请求, 并向该请求对应的 VOQ发回承认; VOQ的仲裁 器取出本 VOQ的窗口位置寄存器值, 按照轮询方式, 从可能的出端发回的 承认中选取一个接收。 反复执行上述步骤, 直到 S1中排队的 VOQ均接收 到出端发回的承认。  The inbound and outbound port matching occurs in the first-level switching unit (hereinafter referred to as S1), specifically: S1 has a virtual output queue (Virtual Output Queue, hereinafter referred to as VOQ) to issue requests to all outbounds of the SI, each The outbound end takes the window position register value of the outbound end, selects a request according to the polling mode, and sends back the acknowledgement to the VOQ corresponding to the request; the VOQ arbiter takes out the window position register value of the VOQ, according to the polling mode, One of the possible acknowledgments is sent back to the admission. Repeat the above steps until the VOQ queued in S1 receives the acknowledgement sent by the outgoing end.
路径匹配发生在中间级交换单元(以下简称为 S2 ) 中, 具体为: S2的 某个入端如果从对应 S1的出端得到信息: 有信元在该出端得到转发允许, S2的入端向该信元的目的地址所决定的 S2的出端发出请求, S2的出端取 出本端的窗口位置寄存器值, 按照轮询方式, 从可能的多个入端请求中选 取一个来承认。 The path matching occurs in the intermediate-level switching unit (hereinafter referred to as S2). Specifically, if an inbound end of S2 obtains information from the outbound end of the corresponding S1: the cell is forwarded at the outbound end, and the ingress of S2 is obtained. A request is made to the outbound end of S2 determined by the destination address of the cell, and the outbound end of S2 takes out the window position register value of the local end, and selects from among multiple possible ingress requests according to the polling mode. Take one to admit.
路径匹配得到承认后, 对应的 S1的 VOQ发送排队的信元  After the path matching is acknowledged, the corresponding VOQ of S1 sends the queued cells.
由于每发送一个信元, 都需要通过上述的请求 -仲裁处理以实现适配调 度, 为了保证交换吞吐率最大, 必须保证请求-仲裁周期小于发送一个信元 的周期, 而请求-仲裁处理的复杂度与端口数的平方 *路径数成正比,在保证 交换吞吐量的同时限制了交换网络的规模。 发明内容  Since each of the cells is transmitted, the above-mentioned request-arbitration processing is required to implement the adaptation scheduling. In order to ensure the maximum exchange throughput rate, it is necessary to ensure that the request-arbitration period is smaller than the period in which one cell is transmitted, and the request-arbitration processing is complicated. The degree is proportional to the number of squares of the port number*, which limits the size of the switching network while guaranteeing the switching throughput. Summary of the invention
本发明提供的一种基于三级互联交换网络的调度方法、 装置及系统, 解决了现有技术中采用 CRRD算法进行适配调度, 在保证交换吞吐量的同 时限制了交换网络的规模的问题。  The invention provides a scheduling method, device and system based on a three-level interconnected switching network, which solves the problem that the CRRD algorithm is used for adaptive scheduling in the prior art, and the switching throughput is limited while limiting the size of the switching network.
一方面, 本发明实施例提供了一种基于三级互联交换网络的调度方法, 包括:  In one aspect, an embodiment of the present invention provides a scheduling method based on a three-level interconnected switching network, including:
第一级交换单元获取出端口带宽地图信息, 所述出端口带宽地图信息 为根据输出模块的出端口的额定带宽以及输入模块的带宽需求为该输入模 块分配的带宽;  The first level switching unit obtains the port bandwidth map information, where the outbound port bandwidth map information is a bandwidth allocated to the input module according to the rated bandwidth of the output port of the output module and the bandwidth requirement of the input module;
所述第一级交换单元根据所述出端口带宽地图信息生成通道带宽地图 信息, 所述通道地图信息为同一个第一级交换单元与同一个第三级交换单 元之间允许承载的带宽;  The first-level switching unit generates channel bandwidth map information according to the outbound port bandwidth map information, where the channel map information is a bandwidth allowed between the same first-level switching unit and the same third-level switching unit;
所述第一级交换单元根据所述通道地图信息生成路径带宽地图信息, 所述路径带宽地图信息为同一个第一级交换单元与同一个第三级交换单元 之间的每条路径允许承载的带宽;  The first-level switching unit generates path bandwidth map information according to the channel map information, where the path bandwidth map information is allowed to be carried by each path between the same first-level switching unit and the same third-level switching unit. Bandwidth
在接收到数据流时, 所述第一级交换单元根据数据流的目的地址将需 要通过同一个第一级交换单元与同一个第三级交换单元到达输出模块的出 端口的数据流緩存到一个队列中, 并根据所述第一级交换单元与所述第三 级交换单元之间的每条路径的路径带宽地图信息, 将所述数据流通过各条 路径发送给所述第三级交换单元。  When receiving the data stream, the first-level switching unit caches the data stream that needs to reach the output port of the output module through the same first-level switching unit and the same third-level switching unit according to the destination address of the data stream. And in the queue, according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit, sending the data flow to the third-level switching unit by using each path .
另一方面, 本发明实施例提供了一种第一级交换单元, 包括: 第一获取单元, 用于获取出端口带宽地图信息, 所述出端口带宽地图 信息为根据输出模块的出端口的额定带宽以及输入模块的带宽需求为该输 入模块分配的带宽; 第一生成单元, 用于根据所述第一获取单元获取的出端口带宽地图信 息生成通道带宽地图信息, 所述通道地图信息为同一个第一级交换单元与 同一个第三级交换单元之间允许承载的带宽; On the other hand, the embodiment of the present invention provides a first-level switching unit, including: a first acquiring unit, configured to acquire port bandwidth map information, where the outbound port bandwidth map information is based on an output port of the output module. The bandwidth and bandwidth requirements of the input module are the bandwidth allocated by the input module; a first generating unit, configured to generate channel bandwidth map information according to the outbound port bandwidth map information acquired by the first acquiring unit, where the channel map information is between the same first level switching unit and the same third level switching unit The bandwidth allowed to be carried;
第二生成单元, 用于根据所述第一生成单元生成的通道地图信息生成 路径带宽地图信息, 所述路径带宽地图信息为同一个第一级交换单元与同 一个第三级交换单元之间的每条路径允许承载的带宽;  a second generating unit, configured to generate path bandwidth map information according to the channel map information generated by the first generating unit, where the path bandwidth map information is between the same first-level switching unit and the same third-level switching unit The bandwidth allowed for each path;
第一调度单元, 在接收到数据流时, 用于根据数据流的目的地址将需 要通过同一个第一级交换单元与同一个第三级交换单元到达输出模块的出 端口的数据流緩存到一个队列中, 并根据所述第一级交换单元与所述第三 级交换单元之间的每条路径的路径带宽地图信息, 将所述数据流通过各条 路径发送给所述第三级交换单元。  The first scheduling unit, when receiving the data stream, is configured to buffer, according to the destination address of the data stream, a data stream that needs to reach the output port of the output module through the same first-level switching unit and the same third-level switching unit to one And in the queue, according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit, sending the data flow to the third-level switching unit by using each path .
再一方面, 本发明实施例提供了一种三级互联交换网络, 包括上述的 第一级交换单元。。  In another aspect, an embodiment of the present invention provides a three-level interconnected switching network, including the first-level switching unit. .
本发明实施例的提供的基于三级互联交换网络的调度方法、 装置及系 统, 第一级交换单元根据出端口带宽地图信息设置第一级交换单元与第三 级交换单元之间的每条路径允许承载的带宽, 对应于每条路径生成路径带 宽地图信息, 使得第一级交换单元在接收到数据流时, 根据数据流的目的 地址将需要通过同一个第一级交换单元与同一个第三级交换单元到达输出 模块的出端口的数据流緩存到一个队列中, 并根据所述路径带宽地图信息 将所述数据流发送给所述第三级交换单元, 实现对数据流的调度, 不需要 每发送一个信元就要进行一次请求 -仲裁请求, 解决了现有技术中由于每发 送一个信元都需要进行一次请求-仲裁, 限制了交换网络的规模的问题。 附图说明  The scheduling method, device and system based on the three-level interconnection switching network provided by the embodiment of the present invention, the first-level switching unit sets each path between the first-level switching unit and the third-level switching unit according to the out-port bandwidth map information. The allowed bandwidth is generated, and the path bandwidth map information is generated corresponding to each path, so that when the first-level switching unit receives the data stream, the destination address of the data stream needs to pass through the same first-level switching unit and the same third. The data stream of the egress port of the output switching unit is buffered into a queue, and the data stream is sent to the third-level switching unit according to the path bandwidth map information, so that the data stream is scheduled, and the data stream is not required. A request-arbitration request is made every time a cell is transmitted, which solves the problem in the prior art that the size of the switching network is limited because one request-arbitration is required for each cell to be transmitted. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例中所需 要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发 明的一些实施例, 对于本领域技术人员来讲, 在不付出创造性劳动的前提 下, 还可以根据这些附图获得其它的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without any creative work.
图 1 ( a ) 为本发明实施例一提供的基于三级互联交换网络的调度方法 流程图一;  1 (a) is a flow chart 1 of a scheduling method based on a three-level interconnected switching network according to Embodiment 1 of the present invention;
图 1 ( b ) 为本发明实施例一提供的基于三级互联交换网络的调度方法 流程图二; FIG. 1(b) is a scheduling method based on a three-level interconnected switching network according to Embodiment 1 of the present invention; Flow chart two;
图 2 ( al )为本发明实施例二提供的一种三级 CLOS交换网络系统架构 图 2 ( a2 )为本发明实施例二提供的一种三级 CLOS交换网络系统架构  2 ( a ) is a three-stage CLOS switching network system architecture provided by the second embodiment of the present invention. FIG. 2 ( a2 ) is a three-level CLOS switching network system architecture provided by the second embodiment of the present invention.
图 2 (b) 为本发明实施例二提供的基于三级互联交换网络的调度方法 流程图; 2(b) is a flowchart of a scheduling method based on a three-level interconnected switching network according to Embodiment 2 of the present invention;
图 2 (c)为本发明实施例二中交换信元周期的均匀间插方式; 图 3 (a)为本发明实施例三提供的第一级交换单元的结构示意图一; 图 3 (b)为图 3 (a)所示的第一级交换单元中第一调度单元的结构示 意图;  Figure 2 (c) is a schematic diagram of the uniform interleaving of the switching cell cycle in the second embodiment of the present invention; Figure 3 (a) is a schematic structural diagram 1 of the first-stage switching unit according to the third embodiment of the present invention; FIG. 3 is a schematic structural diagram of a first scheduling unit in the first-stage switching unit shown in FIG. 3 (a);
图 3 (c)为本发明实施例三提供的第一级交换单元的结构示意图二; 图 4 (a) 为本发明实施例三提供的三级互联交换网络中输入模块的结 构示意图一;  3(c) is a schematic structural diagram 2 of a first-stage switching unit according to Embodiment 3 of the present invention; FIG. 4(a) is a schematic structural diagram 1 of an input module in a three-level interconnected switching network according to Embodiment 3 of the present invention;
图 4 (b) 为本发明实施例三提供的三级互联交换网络中输入模块的结 构示意图二;  4(b) is a second schematic diagram showing the structure of an input module in a three-level interconnected switching network according to Embodiment 3 of the present invention;
图 5 为本发明实施例三提供的三级互联交换网络中输出模块的结构示 意图。 具体实施方式  FIG. 5 is a schematic structural diagram of an output module in a three-level interconnected switching network according to Embodiment 3 of the present invention. detailed description
以下描述中, 为了说明而不是为了限定, 提出了诸如特定装置结构、 技术之类的具体细节, 以便透切理解本发明。 然而, 本领域的技术人员应 情况中, 省略对众所周知的装置、 电路以及方法的详细说明, 以免不必要 的细节妨碍本发明的描述。 实施例一  In the following description, for purposes of illustration and description However, the detailed description of well-known devices, circuits, and methods may be omitted to avoid obscuring the description of the present invention. Embodiment 1
本发明实施例提供了一种基于三级互联交换网络的调度方法, 应用于 所述三级互联交换网络中的第一级交换单元, 如图 1 (a)所示, 该方法, 可以包括: 101、 所述第一级交换单元获取出端口带宽地图 (Out Port Bandwidth Map , 以下简称为 OP-BWM )信息。 The embodiment of the present invention provides a scheduling method based on a three-level interconnected switching network, which is applied to a first-level switching unit in the three-level interconnected switching network. As shown in FIG. 1(a), the method may include: 101. The first-level switching unit acquires an information of an Out Port Bandwidth Map (hereinafter referred to as OP-BWM).
其中, 所述 OP-BWM信息为根据出端口的额定带宽以及输入模块的带 宽需求为该输入模块分配的带宽。  The OP-BWM information is a bandwidth allocated to the input module according to a rated bandwidth of the egress port and a bandwidth requirement of the input module.
在本实施例中, 所述 OP-BWM信息可以由输出模块生成并发送, 也可 以是预先设置的经验值, 此处不做限定。  In this embodiment, the OP-BWM information may be generated and sent by the output module, or may be a preset empirical value, which is not limited herein.
在所述 OP-BWM信息由输出模块生成并发送时, 所述输出模块需要获 取多个输入模块对该输出模块的出端口的带宽需求(Out Port Requirement , 以下简称为 OP-REQ ), 以使得输出模块出端口根据所述 OP-REQ 为发送 OP-REQ的输入模块分配带宽, 并生成对应的 OP-BWM信息。  When the OP-BWM information is generated and sent by the output module, the output module needs to acquire an output requirement of an output port of the plurality of input modules (Out Port Requirement, hereinafter referred to as OP-REQ), so that The output module output port allocates bandwidth according to the OP-REQ for the input module that sends the OP-REQ, and generates corresponding OP-BWM information.
值得说明的是, 所述 OP-REQ可以以控制信元的形式经由三级互联交 换网络发送到相应的出端口, 即由第一级交换单元接收携带有 OP-REQ的 控制信元, 并根据控制信元中的目的地址将所述控制信元发送到相应的第 三级交换单元, 进而通过该第三级交换单元发送到相应的输出模块的出端 口; 可选的, 所述 OP-REQ还可以以控制信元的形式通过专用的控制信道 传送给控制信元中的目的地址对应的输出模块的出端口, 当然, 所述 OP-REQ如何由输入模块传送给对应的输出模块,并不限于上述的两种具体 方式, 此处不——赘述。  It should be noted that the OP-REQ may be sent to the corresponding egress port in the form of a control cell via the three-level interconnected switching network, that is, the control cell carrying the OP-REQ is received by the first-level switching unit, and according to The destination address in the control cell sends the control cell to the corresponding third-level switching unit, and is sent to the egress port of the corresponding output module through the third-level switching unit; optionally, the OP-REQ It can also be transmitted in the form of a control cell to the egress port of the output module corresponding to the destination address in the control cell through a dedicated control channel. Of course, how the OP-REQ is transmitted by the input module to the corresponding output module, Limited to the above two specific ways, not here - repeat.
102、 所述第一级交换单元根据所述出端口地图信息生成通道带宽地图 ( S1S3 Bandwidth Map, 以下简称为 S13-BWM )信息。  102. The first-level switching unit generates a channel bandwidth map (S1S3 Bandwidth Map, hereinafter referred to as S13-BWM) according to the outbound port map information.
其中,所述 S13-BWM信息为同一个第一级交换单元与同一个第三级交 换单元之间允许承载的带宽。  The S13-BWM information is a bandwidth allowed to be carried between the same first-level switching unit and the same third-level switching unit.
103、 所述第一级交换单元根据所述 S13-BWM信息生成路径带宽地图 S123-BWM ( S1S2S3 Bandwidth Map, 以下简称为 S123-BWM )信息。  103. The first-level switching unit generates a path bandwidth map S123-BWM (S1S2S3 Bandwidth Map, hereinafter abbreviated as S123-BWM) according to the S13-BWM information.
其中, 所述 S123-BWM信息为同一个第一级交换单元与同一个第三级 交换单元之间的每条路径允许承载的带宽。  The S123-BWM information is a bandwidth allowed for each path between the same first-level switching unit and the same third-level switching unit.
104、 在接收到数据流时, 所述第一级交换单元根据数据流的目的地址 将需要通过同一个第一级交换单元与同一个第三级交换单元到达输出模块 的出端口的数据流緩存到一个队列中, 并根据所述第一级交换单元与第三 级交换单元之间的每条路径的 S123-BWM信息, 将所述数据流通过各条路 径发送给所述第三级交换单元。 其中, 为了保证时分复用 (Time Division Multiplex and Multiplexer, 以 下简称为 TDM )类型业务流的 TDM性能, 优选的, 所述第一级交换单元 根据所述第一级交换单元与所述第三级交换单元之间的每条路径的 S123-BWM信息,将所述数据流通过各条路径发送给所述第三级交换单元, 具体包括: 若数据流为分组类型的业务流, 所述第一级交换单元根据所述 第一级交换单元与第三级交换单元之间的每条路径的所述 S123-BWM信 息, 将所述分组类型的业务流均勾分发发到所述第一级交换单元与第三级 交换单元之间的每条路径上; 若数据流为时分复用 TDM类型的业务流, 所 述第一级交换单元根据所述第一级交换单元与第三级交换单元之间的每条 路径的所述 S123-BWM信息, 选取一条路径, 将所述 TDM类型的业务流 分发到选取的路径上。 通过上述的具体实现, 避免了 TDM类型的业务流的 重组, 从而保证了 TDM类型的业务流的 TDM数据。 104. When receiving the data stream, the first-level switching unit needs to reach the data stream buffer of the output port of the output module by using the same first-level switching unit and the same third-level switching unit according to the destination address of the data stream. Go to a queue, and send the data stream to the third-level switching unit through each path according to S123-BWM information of each path between the first-level switching unit and the third-level switching unit. . The first level switching unit is configured according to the first level switching unit and the third level, in order to ensure the TDM performance of the time division multiplexing (TDM) type service flow. The S123-BWM information of each path between the switching units is sent to the third-level switching unit by using the data path, and the method includes: if the data flow is a packet type service flow, the first And the level switching unit sends the packet type service flow to the first level exchange according to the S123-BWM information of each path between the first level switching unit and the third level switching unit. Each of the paths between the unit and the third-level switching unit; if the data stream is a time-division multiplexed TDM-type service flow, the first-stage switching unit is configured according to the first-level switching unit and the third-level switching unit The S123-BWM information of each path is selected, and a path is selected to distribute the TDM type service flow to the selected path. Through the above specific implementation, the reorganization of the TDM type service flow is avoided, thereby ensuring the TDM data of the TDM type service flow.
进一步的, 为了保证了数据流的均勾发送, 所述第一级交换单元根据 所述第一级交换单元与第三级交换单元之间的每条路径的所述 S123-BWM 信息, 将所述数据流通过各条路径发送给所述第三级交换单元, 还可以包 括: 所述第一级交换单元将每条路径的 S123-BWM信息进行信元均匀间插 排序, 输出第一信元输出排序表; 所述第一级交换单元将通过 S123-BWM 对应的路径进行发送的数据流根据所述第一信元输出排序表发送给所述第 三级交换单元。  Further, in order to ensure that the data stream is uniformly sent, the first-stage switching unit according to the S123-BWM information of each path between the first-level switching unit and the third-level switching unit The data stream is sent to the third-level switching unit by using each path, and may further include: the first-level switching unit uniformly sorts the S123-BWM information of each path, and outputs the first cell. Outputting the sorting table; the first-stage switching unit sends the data stream sent by the path corresponding to the S123-BWM to the third-level switching unit according to the first cell output sorting table.
进一步的, 为了避免输出模块出端口的流量堵塞, 所述方法, 如图 1 ( b )所示, 还包括:  Further, in order to avoid traffic congestion of the output module output port, the method, as shown in FIG. 1 (b), further includes:
105、 所述第一级交换单元将所述 OP-BWM信息发送给对应的输入模 块, 以使得所述输入模块根据所述 OP-BWM信息以及所述输入模块中入端 口数据流对与所述出端口带宽地图信息相对应的出端口的带宽需求进行带 宽分配。  105. The first-stage switching unit sends the OP-BWM information to a corresponding input module, so that the input module is configured according to the OP-BWM information and the ingress port data flow pair in the input module. Bandwidth allocation is performed for the bandwidth requirement of the outbound port corresponding to the port bandwidth map information.
进一步的,为了保证信元的延时抖动,所述输入模块根据所述 OP-BWM 信息以及所述输入模块中入端口数据流对发送该 OP-BWM信息的出端口的 带宽需求进行带宽分配, 具体包括: 所述输入模块根据所述 OP-BWM信息 以及所述输入模块中数据流对发送该 OP-BWM信息的出端口的带宽需求, 对应于每个入端口生成数据流带宽地图 ( Flow Requirement, 以下简称为 F-REQ )信息; 将所述 F-BWM信息进行信元均匀间插排序输出第二信元输 出排序表, 以使得该入端口的数据流根据所述第二信元输出排序表发送给 第一级交换单元。 Further, in order to ensure delay jitter of the cell, the input module performs bandwidth allocation according to the OP-BWM information and the inbound port data stream of the input module to the bandwidth requirement of the egress port that sends the OP-BWM information, Specifically, the input module generates a data flow bandwidth map corresponding to each ingress port according to the OP-BWM information and the data flow in the input module to the bandwidth requirement of the outbound port that sends the OP-BWM information (Flow Requirement) , hereinafter abbreviated as F-REQ) information; the F-BWM information is uniformly divided by the cells to output the second cell loss And sorting the table so that the data stream of the ingress port is sent to the first level switching unit according to the second cell output sorting table.
本发明实施例的提供的基于三级互联交换网络的调度方法, 第一级交 换单元根据 OP-BWM信息设置第一级交换单元与第三级交换单元之间的每 条路径允许承载的带宽, 对应于每条路径生成 S123-BWM信息, 使得第一 级交换单元在接收到数据流时, 根据数据流的目的地址将需要通过同一个 第一级交换单元与同一个第三级交换单元到达输出模块的出端口的数据流 緩存到一个队列中, 并根据所述 S123-BWM信息将所述数据流发送给所述 第三级交换单元, 实现对数据流的调度, 不需要每发送一个信元就要进行 一次请求 -仲裁请求, 解决了现有技术中由于每发送一个信元都需要进行一 次请求 -仲裁 , 限制了交换网络的规模的问题。 实施例二  According to the scheduling method of the three-level interconnected switching network provided by the embodiment of the present invention, the first-level switching unit sets the bandwidth allowed for each path between the first-level switching unit and the third-level switching unit according to the OP-BWM information. S123-BWM information is generated corresponding to each path, so that when the first-stage switching unit receives the data stream, the destination address of the data stream needs to reach the output through the same first-level switching unit and the same third-level switching unit. The data stream of the outbound port of the module is buffered into a queue, and the data stream is sent to the third-level switching unit according to the S123-BWM information, so that the data stream is scheduled, and no one cell is required to be sent. A request-arbitration request is made to solve the problem in the prior art that the request-arbitration is required for each cell to be transmitted, which limits the size of the switching network. Embodiment 2
为了使本领域的技术人员更好的理解本发明实施例提供的技术方案, 现对本发明实施例二提供的基于三级互联交换网络的调度方法进行详细的 说明。  The scheduling method based on the three-level interconnected switching network provided by the second embodiment of the present invention is described in detail in order to enable a person skilled in the art to better understand the technical solutions provided by the embodiments of the present invention.
在本实施例中 , 以 N*N的三级 CLOS交换网络系统架构为例进行详细 的说明, 如图 2 ( al )和图 2 ( a2 )所示, 三级 CLOS交换网络系统架构包 括 N个入端口和 N个出端口, 由多个输入 Ingress模块和多个输出 Egress 模块提供, N*N的三级 CLOS交换网络采用交换单元来搭建, N为入端口 数量和出端口数量, 三级 CLOS 交换网络包括第一级交换单元、 中间交换 单元和第三级交换单元, 第一级交换单元为 n*m的 Crossbar (纵横式交换 矩阵), 一共有 k个, k=N/n, 第三级交换单元为 m*n的 Crossbar, 也有 k 个, 中间级交换网络为 k*k的 Crossbar, 共 m个。 该三级 CLOS交换网络 可以记为 (n, m, k )。 显然, 三级 CLOS交换网络是多路径网络, 一对指 定的入端与出端之间有 m条通路, 每条通路通过不同的中间级交换单元。  In this embodiment, a N*N three-level CLOS switching network system architecture is taken as an example for detailed description. As shown in FIG. 2 (al) and FIG. 2 (a2), the three-level CLOS switching network system architecture includes N The ingress port and the N egress ports are provided by multiple input ingress modules and multiple output Egress modules. The N*N three-stage CLOS switching network is built by using switching units. N is the number of inbound ports and the number of egress ports. The switching network includes a first-level switching unit, an intermediate switching unit, and a third-level switching unit. The first-level switching unit is a n*m Crossbar (a crossbar switching matrix), a total of k, k=N/n, and a third The level switching unit is m*n Crossbar, there are also k, and the intermediate level switching network is k*k Crossbar, a total of m. The three-stage CLOS switching network can be written as (n, m, k). Obviously, the three-stage CLOS switching network is a multi-path network. There are m paths between a pair of specified inbound and outbound ends, and each path passes through a different intermediate level switching unit.
其中, Ingress模块引入数据流带宽需求收集( Requirement Convergence, 以下简称为 R-Con )处理单元, 收集本模块物理端口的数据流带宽需求, 保证数据流带宽需求和小于物理端口带宽, 将相同出端口的数据流带宽需 求合并成出端口的带宽需求( Out Port Requirement, 以下简称为 0P-REQ );  The ingress module introduces a data stream bandwidth requirement collection (Requirement Convergence, hereinafter referred to as R-Con) processing unit, collects the data stream bandwidth requirement of the physical port of the module, ensures the data stream bandwidth requirement and is smaller than the physical port bandwidth, and uses the same outgoing port. The data stream bandwidth requirements are combined into the outbound port bandwidth requirement (Out Port Requirement, hereinafter referred to as 0P-REQ);
Egress模块 1入分布式实时带宽仲裁 ( Realtime Bandwidth Arbitrate , 以下简称为 RBA )单元, 收集各个 Ingress模块发送的 OP-REQ, 公平分配 出端口带宽给各个入端口的聚合数据流, 输出出端口带宽地图 (Out Port Bandwidth Map , 以下简称为 OP-BWM )信息。 Egress module 1 into distributed real-time bandwidth arbitration (Real Time Bandwidth Arbitrate, The following is an RBA unit, which collects the OP-REQ sent by each Ingress module, distributes the port bandwidth to the aggregated data stream of each ingress port, and outputs the Out Port Bandwidth Map (hereinafter referred to as OP-BWM) information. .
S1收集 OP-BWM信息, 在负载分担排序( load Balance SORT, 以下简 称为 LB SORT )单元查表提取经过同一个 S1并映射到同一 S3的聚合数据 流, 进行二次聚合得到聚合带宽, 进而生成一 S1到一 S3的通道带宽地图 ( S1S3 Bandwidth Ma , 以下简称为 S 13-BWM )信息, 将聚合带宽基于 S2 路径进行流量均分输出路径带宽地图 ( S1S2S3 Bandwidth Map, 以下简称 为 S123-BWM )信息, 再经过信元均勾分布排序处理, 输出第一信元输出 表 (此表指示 S1的流量路径匹配和信元调度发送处理)。  S1 collects the OP-BWM information, and extracts the aggregated data stream that has passed through the same S1 and mapped to the same S3 in the load balancing SORT (abbreviated as LB SORT) unit, and performs secondary aggregation to obtain the aggregated bandwidth, thereby generating the aggregated bandwidth. A S1 to S3 channel bandwidth map (S1S3 Bandwidth Ma, hereinafter referred to as S 13-BWM) information, and the aggregated bandwidth is based on the S2 path for the traffic equalization output path bandwidth map (S1S2S3 Bandwidth Map, hereinafter referred to as S123-BWM) The information is then sorted by the cell, and the first cell output table is output (this table indicates the traffic path matching and cell scheduling transmission processing of S1).
Ingress 模块收集 OP-BWM信息, 在入口侧带宽分配排序 (Ingress Bandwidth Allocate SORT , 以下简称为 IBA SORT )单元根据数据流带宽需 求将本模块(即 lngress模块) 的出端口聚合数据流带宽按比例分配输出 F-BWM ( Flow Bandwidth Map, 流带宽地图), 再通过信元均匀分布排序处 理, 输出第二信元输出排序表(此表指示 Ingress模块的输入输出端口流量 匹配和信元调度发送处理)。 The ingress module collects the OP-BWM information, and the Ingress Bandwidth Allocate SORT (hereinafter referred to as the IBA SORT) unit aggregates the bandwidth of the outgoing port of the module (that is, the l n ress module) according to the data stream bandwidth requirement. The output F-BWM (Flow Bandwidth Map) is distributed proportionally, and then the second cell output sorting table is output through the cell uniform distribution sorting process (this table indicates the input and output port traffic matching and cell scheduling transmission of the Ingress module). deal with).
如图 2 ( b )所示, 本发明实施例提供的基于三级互联交换网络的调度 方法, 可以包括:  As shown in FIG. 2(b), the scheduling method based on the three-level interconnection switching network provided by the embodiment of the present invention may include:
201、 Ingress模块中的流量管理( Traffic Manager , 以下简称为 ΤΜ ) 模块检测数据流带宽需求( Flow Requirement,以下简称为 F-REQ ),在 R-Con 单元按数据流目的地址对应的出端口聚合为 OP-REQ,封装成控制信元发送 给 Egress模块。  201. The traffic management (Traffic Manager, hereinafter abbreviated as ΤΜ) module in the Ingress module detects the data flow bandwidth requirement (Flow Requirement, hereinafter referred to as F-REQ), and aggregates the outgoing port corresponding to the destination address of the data flow in the R-Con unit. The OP-REQ is encapsulated into a control cell and sent to the Egress module.
具体的, TM模块中的流量测量模块获取流速率 V, TM模块中的队列 緩存控制模块获取数据流緩存深度 Depth,根据所述流速率和所述緩存信息 生成 F-REQ:  Specifically, the traffic measurement module in the TM module obtains the flow rate V, and the queue cache control module in the TM module obtains the data stream buffer depth Depth, and generates F-REQ according to the flow rate and the cache information:
F-REQ =流速率 +数据流緩存深度 /单位时间  F-REQ = flow rate + data stream buffer depth / unit time
其中, 所述单位时间为设置的将緩存中所述数据流緩存深度的数据发 送出去的时间。  The unit time is a set time for sending data of the data stream buffer depth in the cache.
将对应于同一输出模块的出端口的 F-REQ聚合, 生成 OP-REQ; 为所 述 OP-REQ分配相应的标识 ID, 封装为控制信元, 其中标识 ID包括用于 表示该信元为控制信元的属性标识、 出端口的地址以及该 Ingress模块的标 识, 将控制信元上报给三级互联交换网络, 通过三级互联交换网络发送给The F-REQ corresponding to the egress port of the same output module is aggregated to generate an OP-REQ; the corresponding ID is assigned to the OP-REQ, and is encapsulated into a control cell, where the identifier ID is used to indicate that the cell is controlled. The attribute identifier of the cell, the address of the outgoing port, and the label of the Ingress module. The control cell is reported to the three-level interconnected switching network and sent to the third-level interconnected switching network.
Egress模块。 如, Ingress 1 中的入端口 1、 入端口 3、 入端口 4、 入端口 6 均有流向 Egressl的出端口 1的数据流,端口 1的 F-REQ为 0.3 Mbits/s,端 口 3的 F-REQ为 0.2 Mbits/s,端口 4的 F-REQ为 0.5 Mbits/s,端口 6的 F-REQ 为 1 Mbits/s, 那么, Ingress 1对于 Egressl的出端口 1的带宽需求为上述 F-REQ的总和: 2 Mbits/s。 Egress module. For example, ingress 1, inbound port 3, inbound port 4, and ingress port 6 of Ingress 1 have data flows to the egress port 1 of the egressl. The F-REQ of port 1 is 0.3 Mbits/s, and the F-port of port 3 is F- The FQ is 0.2 Mbits/s, the F-REQ of port 4 is 0.5 Mbits/s, and the F-REQ of port 6 is 1 Mbits/s. Then, the bandwidth requirement of Ingress 1 for outgoing port 1 of Egress1 is the above F-REQ. Sum: 2 Mbits/s.
202、 Egress模块通过所述三级互联交互网络接收所述控制信元, 提取 控制信元中的 OP-REQ, 送入分布式 RBA模块, 分布式 RBA模块根据控 制信元携带的目的地址对应的出端口额定带宽以及 OP-REQ 计算出 OP-BWM信息 , 通过三级互联交换网络发送给相应的 Ingress模块。  202. The Egress module receives the control cell by using the three-level interconnection interaction network, and extracts an OP-REQ in the control cell, and sends the OP-REQ to the distributed RBA module, where the distributed RBA module corresponds to the destination address carried by the control cell. The outbound port rated bandwidth and the OP-REQ calculate the OP-BWM information and send it to the corresponding Ingress module through the tertiary interconnected switching network.
在本实施例中, 对应于 Egress模块的一个出端口可以收到多个 Ingress 模块发送的控制信元, 多个 Ingress模块向该出端口请求带宽, 出端口根据 其额定带宽以及每个 Ingress模块请求的带宽,给每个 Ingress公平分配带宽。 如, Ingress 1、 Ingress 2、 Ingress 3分另 ll向 Egressl中出端口 1请求: 1 Mbits/s、 2 Mbits/s、 3 Mbits/s的带宽, Egress 1的出端口额定带宽为 3 Mbits/s , 根据 Ingress 1、 Ingress 2、 Ingress 3要求的带覔比例 ,为 Ingress 1、 Ingress 2、 Ingress 3分别分配 0.5 Mbits/s、 1 Mbits/s、 1.5 Mbits/s并相应的生成对应的 OP-BWM 信息, 通过三级互联交互网络发送给相应的 Ingress 1、 Ingress2 、 Ingress 3。  In this embodiment, an egress port corresponding to the egress module can receive control cells sent by multiple ingress modules, and multiple ingress modules request bandwidth from the egress port, and the egress port requests according to its rated bandwidth and each Ingress module. The bandwidth is allocated to each Ingress fairly. For example, Ingress 1, Ingress 2, and Ingress 3 are separately queried to the egress1 outbound port 1 request: 1 Mbits/s, 2 Mbits/s, 3 Mbits/s bandwidth, and the outgoing bandwidth of the egress 1 is 3 Mbits/s. According to the ratio of the ratios required by Ingress 1, Ingress 2, and Ingress 3, allocate 0.5 Mbits/s, 1 Mbits/s, and 1.5 Mbits/s for Ingress 1, Ingress 2, and Ingress 3, and generate corresponding OP-BWM accordingly. Information is sent to the corresponding Ingress 1, Ingress2, and Ingress 3 through a three-level interconnected interactive network.
203、三级互联交互网络中的 S 1提取出经由其发送给与其连接的 Ingress 模块的 OP-BWM信息, 通过 LB SORT单元将 OP-BWM信息进行 S3归属 聚合, 输出 S13-BWM信息, 再基于 S2中间路径进行流量负载负担处理均 匀输出 S123-BWM信息, 再通过信元均勾分布排序处理, 输出第一信元输 出排序表, 控制 S1的路径匹配和信元均匀调度发送。  203. The S1 in the three-level interconnection interaction network extracts the OP-BWM information sent to the Ingress module connected thereto, and performs the S3 home aggregation of the OP-BWM information through the LB SORT unit, and outputs the S13-BWM information, and then based on The S2 intermediate path performs the traffic load burden processing to uniformly output the S123-BWM information, and then performs the sorting processing by the cell hook distribution, and outputs the first cell output sorting table, and controls the path matching of the S1 and the uniform scheduling of the cells.
具体的, 将 OP-BWM信息按 S1-S3 归宿聚合为 S13-BWM信息; 将 S13-BWM信息根据 S1与 S3之间的路径数, 即 S2的个数 m, 进行流量均 衡分配, 举例, 最小粒度为 4Mbits/s , S13 -BWM = 1200M , 路径数 m = 8 , ( S13-BWM/粒度 ) /N取整为 37, 取余为 4, 每个 S2分配 37或 38个粒度 即 148Mbits/s或 152Mbits/s, 输出 S123-BWM信息。 将 S123-BWM信息进 行信元均勾间插排序输出第一信元输出排序表。  Specifically, the OP-BWM information is aggregated into S13-BWM information according to S1-S3; the S13-BWM information is distributed according to the number of paths between S1 and S3, that is, the number m of S2, for example, the minimum The granularity is 4Mbits/s, S13 -BWM = 1200M, the number of paths is m = 8, (S13-BWM/granularity) /N is rounded to 37, the remainder is 4, and each S2 is allocated 37 or 38 granularities, ie 148 Mbits/s. Or 152 Mbits/s, output S123-BWM information. The S123-BWM information is sent to the cell and the first cell output sorting table is output.
204、 Ingress模块提取 OP-BWM信息, 根据入端口数据流对发送给 204. The ingress module extracts the OP-BWM information, and sends the information according to the ingress port data stream.
OP-BWM 信息的出端口的 F-REQ , 对应于每个入端口按比例分配输出 F-BWM信息, 再将 F-BWM信息进行信元均匀间插排序处理, 计算输出第 二信元输出排序表。 The F-REQ of the outgoing port of the OP-BWM message is proportionally distributed corresponding to each ingress port. The F-BWM information is then subjected to cell uniform interleaving processing of the F-BWM information, and the output second cell output sorting table is calculated and output.
通过步骤 204实现了全局入、 出端口带宽分配, 保证 Egress模块的各 个出端口没有流量阻塞, 进而可以简化 Egress模块的服务质量( Quality of Service, 以下简称为 QoS )设计, 显著减少输出模块緩存需要同时, 为不 同的数据流提供严格的 QoS保证。  The global ingress and egress port bandwidth allocation is implemented in step 204, and the egress module has no traffic blocking, which can simplify the quality of service (QoS) design of the egress module, and significantly reduce the output module cache requirement. At the same time, it provides strict QoS guarantees for different data streams.
205、 Ingress模块的交换管理(Switch Manager , 以下简称为 SM )模 块按本模块的第二信元输出排序表控制数据流信元发送, 保证了入出端口 的信元匹配发送, 保证了信元的延时抖动。  205. The Switch Management (hereinafter referred to as SM) module of the Ingress module controls the data stream cell transmission according to the second cell output sorting table of the module, ensuring that the cells of the ingress and egress ports are matched and sent, and the cell is guaranteed. Delay jitter.
206、 三级互联交换网络中 S1收到 Ingress模块的信元, 根据信元 ID 进行 S3 队列緩冲, 再根据本级第一信元输出排序表控制信元均勾分配 S2 路径发送到 S2, 保证了信元发送的路径匹配问题。  In the third-level interconnection switching network, the S1 receives the information of the ingress module, performs the S3 queue buffer according to the cell ID, and then sends the S2 path to the S2 according to the first cell output sorting table of the first level. The path matching problem of cell transmission is guaranteed.
207、 S2收到 S1来的信元, 根据信元 ID发送给不同的 S3 , S3根据信 元 ID发送给对应 Egress模块。  207. S2 receives the cell from S1, and sends it to a different S3 according to the cell ID, and S3 sends the message to the corresponding Egress module according to the cell ID.
208、 Egress模块收到信元, 根据信元系列号, 进行排序重组数据帧。 其中, S1和 Ingress模块信元均匀间插排序生成信元输出排序表的处理 流程, 具体可以通过以下方式实现:  208. The Egress module receives the cell, and performs reordering and reorganizing the data frame according to the cell serial number. The processing flow of the S1 and Ingress module cells uniformly interleaving and sorting to generate the cell output sorting table may be implemented in the following manner:
将预先设置的交换信元周期切分为 n个数组( n=2L ), 每个数组包括多 个时隙, 每个时隙承载一个信元; 利用二进制逆向进位方法为每个数组设 置对应的时序位置, 以使得数组根据书序位置输出对应的信元输出排序表。 具体的, 所述二进制逆向进位方法为: 对于 1 = 2^个数组, 采用二进数 MThe preset switching cell cycle is divided into n arrays (n=2 L ), each array includes multiple time slots, each time slot carries one cell; and each array is set by a binary reverse carry method The timing position is such that the array outputs a corresponding cell output sort table according to the book order position. Specifically, the binary reverse carry method is: for 1 = 2^ arrays, using a binary number M
( bL-1 , bL-2 b b。)表述数组位置, 每次从最高位 bL-1位置加 1 , bL-1 向低位 bL-2进位, bL-2向低位 bL-3进位, ……, 最后 向低位 b0 进位, 这 样就设置了 n个数组的时序位置。 ( b L-1 , b L-2 bb.) Describe the position of the array, each time from the highest position b L-1 position plus 1, b L-1 to the lower position b L-2 carry, b L-2 to the lower position b L -3 carry, ..., finally carry to the lower bit b 0 , thus setting the timing position of n arrays.
例如, 如图 2 ( c )所示, 预先设置的交换信元周期为 16信元单元, 将 交换信元周期的 16信元单元分为 8个数组每个数组 2个时隙, 通过二进制 逆向进位, 对于 8个数组, 采用二进制数 M ( b2、 bj. bQ )表述数组的时序 位置, 如表 1所示, 得到均匀间隔的信元输出排序表。 For example, as shown in FIG. 2(c), the preset switching cell period is 16 cell units, and the 16 cell units of the switching cell cycle are divided into 8 arrays, each array, 2 slots, and the binary reverse direction. Carry, for 8 arrays, the binary position M (b 2 , bj. b Q ) is used to represent the timing position of the array. As shown in Table 1, a uniformly spaced cell output ordering table is obtained.
表 1: 信元输出表  Table 1: Cell Output Table
bt b 数组均匀间隔的序 时序位置 列表 b t b array evenly spaced sequence timing position List
0 0 0 第一个数组 0  0 0 0 first array 0
1 0 0 第二个数组 4  1 0 0 second array 4
0 1 0 第三个数组 2  0 1 0 third array 2
1 1 0 第四个数组 6  1 1 0 fourth array 6
0 0 1 第五个数组 1  0 0 1 fifth array 1
1 0 1 第六个数组 5  1 0 1 sixth array 5
0 1 1 第七个数组 3  0 1 1 seventh array 3
1 1 1 第八个数组 7 例如, Ingress模块的一入端口待发送数据流 1和数据流 2、 数据流 1 需要带宽为 8个信元, 数据流 2需要带宽为 4个信元, 每个信元包括 2个 数组  1 1 1 The eighth array 7 For example, an ingress port of the Ingress module is to send data stream 1 and stream 2, stream 1 requires a bandwidth of 8 cells, and stream 2 requires a bandwidth of 4 cells, each The cell consists of 2 arrays
第 1个信元 ( Cell )、 第 2个 Cell是数据流 2第 1个 Cell、 第 4个 Cell 无数据流发送 第 14个 Cell是数据流 2第 4个 Cell、 第 15个 Cell是 数据流 1的第 8个 Cell、 第 16个 Cell无数据流发送。  The first cell (Cell), the second cell is the data stream 2, the first cell, the fourth cell, the no data stream, the 14th cell, the data stream 2, the 4th cell, and the 15th cell, the data stream. The 8th Cell of the 1st, the 16th Cell has no data stream transmission.
本发明实施例的提供的基于三级互联交换网络的调度方法, 第一级交 换单元根据 OP-BWM信息设置第一级交换单元与第三级交换单元之间的每 条路径允许承载的带宽, 对应于每条路径生成 S123-BWM信息, 使得第一 级交换单元在接收到数据流时, 根据数据流的目的地址将需要通过同一个 第三级交换单元到达出端口的数据流緩存到一个队列中, 并根据所述 S123-BWM信息将所述数据流发送给所述第三级交换单元, 实现对数据流 的调度, 不需要每发送一个信元就要进行一次请求 -仲裁请求, 解决了现有 技术中由于每发送一个信元都需要进行一次请求-仲裁, 限制了交换网络的 规模的问题。 实施例三  According to the scheduling method of the three-level interconnected switching network provided by the embodiment of the present invention, the first-level switching unit sets the bandwidth allowed for each path between the first-level switching unit and the third-level switching unit according to the OP-BWM information. S123-BWM information is generated corresponding to each path, so that when the first-level switching unit receives the data stream, the data stream that needs to reach the egress port through the same third-level switching unit is buffered to a queue according to the destination address of the data stream. And sending the data stream to the third-level switching unit according to the S123-BWM information, to implement scheduling of the data stream, and not requiring a request-arbitration request every time a cell is sent, In the prior art, since a request-arbitration is required every time a cell is transmitted, the problem of the size of the switching network is limited. Embodiment 3
如图 3 ( a ) 所示, 本发明实施例提供对应于上述实施例一的方法的第 一级交换单元, 包括:  As shown in FIG. 3 (a), the embodiment of the present invention provides a first-level switching unit corresponding to the method in the foregoing first embodiment, including:
第一获取单元 31 , 用于获取出端口带宽地图信息, 所述出端口带宽地 图信息为根据输出模块的出端口的额定带宽以及输入模块的带宽需求为该 输入模块分配的带宽; The first obtaining unit 31 is configured to acquire port bandwidth map information, where the outbound port bandwidth is The figure information is the bandwidth allocated to the input module according to the rated bandwidth of the output port of the output module and the bandwidth requirement of the input module;
第一生成单元 32, 用于根据所述第一获取单元获取的出端口带宽地图 信息生成通道带宽地图信息, 所述通道地图信息为同一个第一级交换单元 与同一个第三级交换单元之间允许承载的带宽;  The first generating unit 32 is configured to generate channel bandwidth map information according to the outbound port bandwidth map information acquired by the first acquiring unit, where the channel map information is the same first level switching unit and the same third level switching unit. Bandwidth allowed between hosts;
第二生成单元 33 , 用于根据所述第一生成单元生成的通道地图信息生 成路径带宽地图信息, 所述路径带宽地图信息为同一个第一级交换单元与 同一个第三级交换单元之间的每条路径允许承载的带宽;  a second generating unit 33, configured to generate path bandwidth map information according to the channel map information generated by the first generating unit, where the path bandwidth map information is between the same first level switching unit and the same third level switching unit Each path allows the bandwidth to be carried;
第一调度单元 34, 在接收到数据流时, 用于根据数据流的目的地址将 需要通过同一个第一级交换单元与同一个第三级交换单元到达输出模块的 出端口的数据流緩存到一个队列中, 并根据所述第一级交换单元与所述第 三级交换单元之间的每条路径的路径带宽地图信息, 将所述数据流通过各 条路径发送给所述第三级交换单元。  The first scheduling unit 34, when receiving the data stream, is configured to cache the data stream that needs to reach the output port of the output module through the same first-level switching unit and the same third-level switching unit according to the destination address of the data stream. And in a queue, according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit, sending the data flow to the third-level exchange through each path unit.
在本实施例中, 所述第一调度单元, 包括:  In this embodiment, the first scheduling unit includes:
第一调度子单元 341 , 用于若数据流为分组类型的业务流,根据所述第 一级交换单元与第三级交换单元之间的每条路径的所述路径带宽地图信 息, 将所述分组类型的业务流均勾分发到所述第一级交换单元与第三级交 换单元之间的每条路径上;  a first scheduling sub-unit 341, configured to: if the data stream is a packet type service flow, according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit, Packet-type service flows are distributed to each path between the first-level switching unit and the third-level switching unit;
第二调度子单元 342 , 用于若数据流为时分复用类型的业务流,根据所 述第一级交换单元与第三级交换单元之间的每条路径的所述路径带宽地图 信息, 选取一条路径, 将所述时分复用类型的业务流分发到选取的路径上。  a second scheduling sub-unit 342, configured to: if the data stream is a time-division multiplex type service flow, select, according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit, A path for distributing the service stream of the time division multiplexing type to the selected path.
进一步的, 如图 3 ( b )所示, 所述第一调度单元, 还包括:  Further, as shown in FIG. 3 (b), the first scheduling unit further includes:
第一排序输出子单元 343 ,用于将每条路径的路径带宽地图信息进行信 元均勾间插排序, 输出第一信元输出排序表;  The first sorting output sub-unit 343 is configured to perform path-to-interpolation sorting of the path bandwidth map information of each path, and output a first cell output sorting table;
第一发送子单元 344,用于将通过路径带宽地图对应的路径进行发送的 数据流根据所述第一信元输出排序表发送给所述第三级交换单元。  The first sending subunit 344 is configured to send, by using the first cell output sorting table, the data stream that is sent by the path corresponding to the path bandwidth map to the third level switching unit.
进一步的, 如图 3 ( c ) 所示, 所述第一级交换单元, 还包括: 第一接收单元 35 , 用于接收所述输入模块发送的控制信元, 所述控制 信元包括目的地址以及所述输入模块对该目的地址对应的输出模块的出端 口的带宽需求;  Further, as shown in FIG. 3(c), the first-stage switching unit further includes: a first receiving unit 35, configured to receive a control cell sent by the input module, where the control cell includes a destination address. And the bandwidth requirement of the output port of the output module corresponding to the destination address of the input module;
第一发送单元 36, 用于根据所述目的地址将所述第一接收单元接收的 控制信元发送给所述输出模块的出端口, 以使得所述输出模块的出端口根 据该出端口自身的额定带宽以及所述控制信元中携带的所述带宽需求为所 述输入模块分配带宽, 生成出端口带宽地图信息; a first sending unit 36, configured to receive, by the first receiving unit, according to the destination address And sending, by the control module, the egress port of the output module, so that the egress port of the output module allocates bandwidth to the input module according to the rated bandwidth of the egress port itself and the bandwidth requirement carried in the control cell , generating port bandwidth map information;
所述第一获取单元 31 , 具体用于接收所述输出模块发送的出端口带宽 地图信息。  The first obtaining unit 31 is specifically configured to receive the outbound port bandwidth map information sent by the output module.
进一步的, 如图 3 ( C ) 所示, 所述第一级交换单元, 还包括: 第二发送单元 37 , 用于将所述出端口带宽地图信息发送给对应的输入 模块, 以使得所述输入模块根据所述出端口带宽地图信息以及所述输入模 块中入端口数据流对与所述出端口带宽地图信息相对应的出端口的带宽需 求进行带宽分配。  Further, as shown in FIG. 3(C), the first-stage switching unit further includes: a second sending unit 37, configured to send the outbound port bandwidth map information to a corresponding input module, so that the The input module performs bandwidth allocation according to the outbound port bandwidth map information and the ingress port data stream in the input module to the bandwidth requirement of the egress port corresponding to the egress port bandwidth map information.
值得说明的是, 上述的第一获取单元 31、 第一生成单元 32、 第二生成 单元 33、 第一调度单元 34、 第一接收单元 35、 第一发送单元 36以及第二 发送单元 37所执行的动作, 可由具有一定结构的电子电路、 芯片或者处理 器来执行。  It should be noted that the first acquiring unit 31, the first generating unit 32, the second generating unit 33, the first scheduling unit 34, the first receiving unit 35, the first sending unit 36, and the second sending unit 37 are executed by the foregoing. The action can be performed by an electronic circuit, chip or processor having a certain structure.
本发明实施例还提供了一种三级互联交换网络, 包括图 3 ( a ) -图 3 ( c ) 所示的第一级交换单元, 进一步的, 还包括输入模块和输出模块;  The embodiment of the present invention further provides a three-level interconnection switching network, including the first-level switching unit shown in FIG. 3 ( a ) - FIG. 3 ( c ), and further, an input module and an output module;
所述输入模块, 用于发送控制信元给所述输出模块, 所述控制信元包 括目的地址以及所述输入模块对该目的地址对应的输出模块的出端口的带 宽需求:  The input module is configured to send a control cell to the output module, where the control cell includes a destination address and a bandwidth requirement of an output port of the output module corresponding to the destination address of the input module:
所述输出模块, 用于接收所述输入模块发送的控制信元, 根据所述控 制信元携带的带宽需求为所述输入模块分配带宽, 生成出端口带宽地图信 息, 发送给所述输入模块和所述第一级交换单元;  The output module is configured to receive a control cell sent by the input module, allocate bandwidth to the input module according to a bandwidth requirement carried by the control cell, generate port bandwidth map information, and send the information to the input module and The first stage switching unit;
所述输入模块, 还用于根据所述出端口带宽地图信息以及所述输入模 块中入端口数据流对与所述出端口带宽地图信息相对应的出端口的带宽需 求进行带宽分配。  The input module is further configured to perform bandwidth allocation according to the outbound port bandwidth map information and the inbound port data stream in the input module to the bandwidth requirement of the egress port corresponding to the egress port bandwidth map information.
在本实施例中, 如图 4 ( a )所示, 所述输入模块, 具体包括: 第二获取单元 41 , 用于获取输入模块的入端口数据流的流速率以及緩 存信息;  In this embodiment, as shown in FIG. 4( a ), the input module specifically includes: a second acquiring unit 41, configured to acquire a flow rate and cache information of an ingress port data stream of the input module;
第三生成单元 42, 用于根据所述第二获取单元获取的流速率和所述緩 存信息生成该入端口数据流对出端口的带宽需求;  The third generating unit 42 is configured to generate, according to the flow rate acquired by the second acquiring unit and the cache information, a bandwidth requirement of the ingress port data stream to the egress port;
聚合单元 43 , 用于将所述第三生成单元生成的同一出端口的带宽需求 进行聚合, 生成该输入模块对所述出端口的带宽需求; Aggregation unit 43 , configured to use the bandwidth requirement of the same egress port generated by the third generating unit Performing aggregation to generate a bandwidth requirement of the input module for the egress port;
第三发送单元 44, 用于为所述聚合单元聚合得到的出端口的带宽需求 分配相应的标识, 封装为控制信元, 所述标识包括输入模块的标识和所述 出端口的地址。  The third sending unit 44 is configured to allocate a corresponding identifier for the bandwidth requirement of the egress port obtained by the aggregation of the aggregation unit, and encapsulate the packet into a control cell, where the identifier includes an identifier of the input module and an address of the egress port.
进一步的, 如图 4 ( b )所示, 所述输入模块, 还包括:  Further, as shown in FIG. 4(b), the input module further includes:
第四生成单元 45 , 用于根据所述出端口带宽地图信息以及所述输入模 块中数据流对发送该出端口带宽地图信息的出端口的数据流带宽需求, 对 应于每个入端口生成数据流带宽地图信息;  a fourth generating unit 45, configured to generate a data stream corresponding to each ingress port according to the outbound port bandwidth map information and the data stream bandwidth requirement of the outbound port that sends the outbound port bandwidth map information in the input module Bandwidth map information;
排序单元 46, 用于将所述数据流带宽地图信息进行信元均勾间插排序 输出第二信元输出排序表, 以使得该入端口的数据流根据所述第二信元输 出排序表发送给第一级交换单元。  a sorting unit 46, configured to perform, by using the data stream bandwidth map information, a cell-to-be-interpolated sorting output, to output a second cell output sorting table, so that the data stream of the ingress port is sent according to the second cell output sorting table. Give the first level of exchange unit.
值得说明的是, 上述的第二获取单元 41、 第三生成单元 42、 聚合单元 It should be noted that the second obtaining unit 41, the third generating unit 42, and the aggregation unit described above
43、 第三发送单元 44、 第四生成单元 45以及排序单元 46所执行的动作, 可由具有一定结构的电子电路、 芯片或者处理器来执行。 43. The operations performed by the third transmitting unit 44, the fourth generating unit 45, and the sorting unit 46 may be performed by an electronic circuit, chip, or processor having a certain structure.
在本实施例中, 如图 5所示, 所述输出模块, 具体包括:  In this embodiment, as shown in FIG. 5, the output module specifically includes:
第二接收单元 51 , 用于接收所述输入模块发送的控制信元;  a second receiving unit 51, configured to receive a control cell sent by the input module;
第五生成单元 52, 用于根据所述第二接收单元接收的控制信元携带的 带宽需求为所述输入模块分配带宽, 生成出端口带宽地图信息;  a fifth generating unit 52, configured to allocate bandwidth to the input module according to a bandwidth requirement carried by the control cell received by the second receiving unit, to generate port bandwidth map information;
第四发送单元 53 , 用于将所述第五生成单元生成的端口带宽地图信息 发送给所述输入模块和所述第一级交换单元。  The fourth sending unit 53 is configured to send the port bandwidth map information generated by the fifth generating unit to the input module and the first level switching unit.
值得说明的是, 上述的第二接收单元 51、 第五生成单元 52以及第四发 送单元 53所执行的动作, 可由具有一定结构的电子电路、 芯片或者处理器 来执行。  It should be noted that the operations performed by the second receiving unit 51, the fifth generating unit 52, and the fourth transmitting unit 53 described above may be performed by an electronic circuit, chip or processor having a certain structure.
本发明实施例的提供的第一级交换单元以及三级互联交换网络, 第一 级交换单元根据 OP-BWM信息设置第一级交换单元与第三级交换单元之间 的每条路径允许承载的带宽, 对应于每条路径生成 S123-BWM信息, 使得 第一级交换单元在接收到数据流时, 根据数据流的目的地址将需要通过同 一个第三级交换单元到达出端口的数据流緩存到一个队列中, 并根据所述 S123-BWM信息将所述数据流发送给所述第三级交换单元, 实现对数据流 的调度, 不需要每发送一个信元就要进行一次请求 -仲裁请求, 解决了现有 技术中由于每发送一个信元都需要进行一次请求-仲裁, 限制了交换网络的 规模的问题。 The first level switching unit and the third level interconnection switching network provided by the embodiment of the present invention, where the first level switching unit sets each path between the first level switching unit and the third level switching unit to be beared according to the OP-BWM information. The bandwidth, corresponding to each path, generates S123-BWM information, so that when the first-level switching unit receives the data stream, according to the destination address of the data stream, the data stream that needs to reach the egress port through the same third-level switching unit is cached. And in a queue, sending the data stream to the third-level switching unit according to the S123-BWM information, to implement scheduling of the data stream, and not requiring a request-arbitration request every time a cell is sent, Resolving the prior art, since each request to send a cell requires a request-arbitration, which limits the switching network. The problem of scale.
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述 描述的系统, 设备和单元的具体工作过程, 可以参考前述方法实施例中的 对应过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above may be referred to the corresponding process in the foregoing method embodiments, and details are not described herein again.
综上, 本发明实施例的技术方案与现有技术方案相比较,。  In summary, the technical solutions of the embodiments of the present invention are compared with the prior art solutions.
本领域技术人员可以意识到, 结合本文中所公开的实施例中描述的各 方法步骤和单元, 能够以电子硬件、 计算机软件或者二者的结合来实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能一般 性地描述了各实施例的步骤及组成。 这些功能究竟以硬件还是软件方式来 执行, 取决于技术方案的特定应用和设计约束条件。 本领域技术人员可以 对每个特定的应用使用不同方法来实现所描述的功能, 但是这种实现不应 认为超出本发明的范围。  Those skilled in the art will appreciate that the various method steps and elements described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate the interoperability of hardware and software. The steps and composition of the various embodiments have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. Those skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
以上所述, 以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术人员 应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者 对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的原理和范围。  The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or some of the technical features are equivalently substituted; and the modifications or substitutions do not deviate from the principles and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要求 书 claims
1、 一种基于三级互联交换网络的调度方法, 其特征在于, 包括: 第一级交换单元获取出端口带宽地图信息, 所述出端口带宽地图信息 为根据输出模块的出端口的额定带宽以及输入模块的带宽需求为该输入模 块分配的带宽; 1. A scheduling method based on a three-level interconnected switching network, which is characterized by including: the first-level switching unit obtains outbound port bandwidth map information, and the outbound port bandwidth map information is based on the rated bandwidth of the outbound port of the output module and The bandwidth requirement of the input module is the bandwidth allocated to the input module;
所述第一级交换单元根据所述出端口带宽地图信息生成通道带宽地图 信息, 所述通道地图信息为同一个第一级交换单元与同一个第三级交换单 元之间允许承载的带宽; The first-level switching unit generates channel bandwidth map information based on the egress port bandwidth map information, where the channel map information is the bandwidth allowed to be carried between the same first-level switching unit and the same third-level switching unit;
所述第一级交换单元根据所述通道地图信息生成路径带宽地图信息, 所述路径带宽地图信息为同一个第一级交换单元与同一个第三级交换单元 之间的每条路径允许承载的带宽; The first-level switching unit generates path bandwidth map information based on the channel map information. The path bandwidth map information is the allowed carrying capacity of each path between the same first-level switching unit and the same third-level switching unit. Bandwidth;
在接收到数据流时, 所述第一级交换单元根据数据流的目的地址将需 要通过同一个第一级交换单元与同一个第三级交换单元到达输出模块的出 端口的数据流緩存到一个队列中, 并根据所述第一级交换单元与所述第三 级交换单元之间的每条路径的路径带宽地图信息, 将所述数据流通过各条 路径发送给所述第三级交换单元。 When receiving a data flow, the first-level switching unit caches the data flow that needs to pass through the same first-level switching unit and the same third-level switching unit to reach the output port of the output module into a buffer according to the destination address of the data flow. queue, and sends the data stream to the third-level switching unit through each path according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit. .
2、 根据权利要求 1所述的方法, 其特征在于, 在所述第一级交换单元 获取出端口带宽地图信息之前, 还包括: 2. The method according to claim 1, characterized in that, before the first-level switching unit obtains the egress port bandwidth map information, it further includes:
所述第一级交换单元接收所述输入模块发送的控制信元, 所述控制信 元包括目的地址以及所述输入模块对该目的地址对应的输出模块的出端口 的带宽需求; The first-level switching unit receives the control information element sent by the input module, and the control information element includes the destination address and the input module's bandwidth requirement for the output port of the output module corresponding to the destination address;
所述第一级交换单元根据所述目的地址将所述控制信元发送给所述输 出模块的出端口, 以使得所述输出模块的出端口根据该出端口自身的额定 带宽以及所述控制信元中携带的所述带宽需求为所述输入模块分配带宽, 生成出端口带宽地图信息; The first-level switching unit sends the control information element to the egress port of the output module according to the destination address, so that the egress port of the output module responds according to the rated bandwidth of the egress port itself and the control information element. The bandwidth requirement carried in the element allocates bandwidth to the input module and generates output port bandwidth map information;
所述第一级交换单元获取出端口带宽地图信息, 具体包括: The first-level switching unit obtains egress port bandwidth map information, which specifically includes:
所述第一级交换单元接收所述输出模块发送的出端口带宽地图信息。 The first-level switching unit receives the outbound port bandwidth map information sent by the output module.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述所述第一级交 换单元根据所述第一级交换单元与所述第三级交换单元之间的每条路径的 路径带宽地图信息, 将所述数据流通过各条路径发送给所述第三级交换单 元, 具体包括: 3. The method according to claim 1 or 2, characterized in that, the first-level switching unit determines the path of each path between the first-level switching unit and the third-level switching unit. Bandwidth map information, sending the data stream to the third-level switching unit through each path yuan, specifically including:
若数据流为分组类型的业务流, 所述第一级交换单元根据所述第一级 交换单元与第三级交换单元之间的每条路径的所述路径带宽地图信息, 将 所述分组类型的业务流均勾分发到所述第一级交换单元与第三级交换单元 之间的每条路径上; If the data flow is a packet type service flow, the first-level switching unit converts the packet type into the packet type based on the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit. The business flow is evenly distributed to each path between the first-level switching unit and the third-level switching unit;
若数据流为时分复用类型的业务流, 所述第一级交换单元根据所述第 一级交换单元与第三级交换单元之间的每条路径的所述路径带宽地图信 息, 选取一条路径, 将所述时分复用类型的业务流分发到选取的路径上。 If the data flow is a time division multiplexing type service flow, the first-level switching unit selects a path based on the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit. , distribute the service flow of the time division multiplexing type to the selected path.
4、 根据权利要求 3所述的方法, 其特征在于, 所述所述第一级交换单 元根据所述第一级交换单元与所述第三级交换单元之间的每条路径的路径 带宽地图信息, 将所述数据流通过各条路径发送给所述第三级交换单元, 还包括: 4. The method according to claim 3, characterized in that, the first-level switching unit determines the path bandwidth map of each path between the first-level switching unit and the third-level switching unit. Information, sending the data stream to the third-level switching unit through each path, also includes:
所述第一级交换单元将每条路径的路径带宽地图信息进行信元均匀间 插排序, 输出第一信元输出排序表; The first-level switching unit performs cell uniform interleaving and sorting on the path bandwidth map information of each path, and outputs a first cell output sorting table;
所述第一级交换单元将通过路径带宽地图对应的路径进行发送的数据 流根据所述第一信元输出排序表发送给所述第三级交换单元。 The first-level switching unit sends the data stream sent through the path corresponding to the path bandwidth map to the third-level switching unit according to the first cell output sorting table.
5、 根据权利要求 1-4任一项所述的方法, 其特征在于, 还包括: 所述第一级交换单元将所述出端口带宽地图信息发送给对应的输入模 块, 以使得所述输入模块根据所述出端口带宽地图信息以及所述输入模块 中入端口数据流对与所述出端口带宽地图信息相对应的出端口的带宽需求 进行带宽分配。 5. The method according to any one of claims 1 to 4, further comprising: the first-level switching unit sending the outbound port bandwidth map information to the corresponding input module, so that the input The module performs bandwidth allocation on the bandwidth requirements of the egress port corresponding to the egress port bandwidth map information according to the egress port bandwidth map information and the inlet port data flow in the input module.
6、 根据权利要求 5所述的方法, 其特征在于, 所述输入模块根据所述 出端口带宽地图信息以及所述输入模块中入端口数据流对所述出端口带宽 地图信息相对应的出端口的带宽需求进行带宽分配, 包括: 6. The method according to claim 5, characterized in that, the input module determines the egress port corresponding to the egress port bandwidth map information based on the egress port bandwidth map information and the inlet port data flow in the input module. Bandwidth allocation based on bandwidth requirements, including:
所述输入模块根据所述出端口带宽地图信息以及所述输入模块中数据 流对发送该出端口带宽地图信息的出端口的数据流带宽需求, 对应于每个 入端口生成数据流带宽地图信息; The input module generates data flow bandwidth map information corresponding to each ingress port based on the egress port bandwidth map information and the data flow bandwidth requirement of the egress port that sends the egress port bandwidth map information to the data flow in the input module;
将所述数据流带宽地图信息进行信元均勾间插排序输出第二信元输出 排序表, 以使得该入端口的数据流根据所述第二信元输出排序表发送给第 一级交换单元。 The data flow bandwidth map information is sorted by cell uniformity and interleaving to output a second cell output sorting table, so that the data flow of the incoming port is sent to the first-level switching unit according to the second cell output sorting table. .
7、 根据权利要求 4或 6所述的方法, 所述均匀间插排序输出的方法具 体包括: 7. The method according to claim 4 or 6, the method of uniformly interleaved sorting output has Body includes:
将待分配的带宽信息切分为多个数组, 每个数组包括多个时隙, 每个 时隙 7 载一个信元; Divide the bandwidth information to be allocated into multiple arrays, each array includes multiple time slots, and each time slot contains one cell;
利用二进制逆向进位方法为每个数组设置对应的时序位置, 以使得数 组根据时序位置输出对应的信元输出排序表。 The binary reverse carry method is used to set the corresponding timing position for each array, so that the array outputs the corresponding cell output sorting table according to the timing position.
8、 根据权利要求 2-7任一项所述的方法, 其特征在于, 所述控制信元 由所述输入模块生成并发送给所述第一级交换单元, 所述控制信元的生成 方法具体包括: 8. The method according to any one of claims 2 to 7, characterized in that: the control cell is generated by the input module and sent to the first-level switching unit, and the method for generating the control cell Specifically include:
获取输入模块的入端口数据流的流速率以及緩存信息; Obtain the flow rate and cache information of the input port data stream of the input module;
根据所述流速率和所述緩存信息生成该入端口数据流对出端口的带宽 需求; Generate the bandwidth requirement of the incoming port data flow for the outgoing port according to the flow rate and the cache information;
将同一出端口的带宽需求进行聚合, 生成该输入模块对所述出端口的 带宽需求; Aggregate the bandwidth requirements of the same egress port to generate the bandwidth requirement of the input module for the egress port;
为所述出端口的带宽需求分配相应的标识, 封装为控制信元, 所述标 识包括输入模块的标识和所述出端口的地址。 A corresponding identifier is assigned to the bandwidth requirement of the egress port and encapsulated into a control cell. The identifier includes the identifier of the input module and the address of the egress port.
9、 一种第一级交换单元, 其特征在于, 包括: 9. A first-level switching unit, characterized by including:
第一获取单元, 用于获取出端口带宽地图信息, 所述出端口带宽地图 信息为根据输出模块的出端口的额定带宽以及输入模块的带宽需求为该输 入模块分配的带宽; The first acquisition unit is used to obtain the outbound port bandwidth map information. The outbound port bandwidth map information is the bandwidth allocated to the input module based on the rated bandwidth of the outbound port of the output module and the bandwidth requirement of the input module;
第一生成单元, 用于根据所述第一获取单元获取的出端口带宽地图信 息生成通道带宽地图信息, 所述通道地图信息为同一个第一级交换单元与 同一个第三级交换单元之间允许承载的带宽; The first generation unit is configured to generate channel bandwidth map information based on the outbound port bandwidth map information obtained by the first acquisition unit. The channel map information is between the same first-level switching unit and the same third-level switching unit. Allowed bandwidth;
第二生成单元, 用于根据所述第一生成单元生成的通道地图信息生成 路径带宽地图信息, 所述路径带宽地图信息为同一个第一级交换单元与同 一个第三级交换单元之间的每条路径允许承载的带宽; The second generation unit is configured to generate path bandwidth map information based on the channel map information generated by the first generation unit. The path bandwidth map information is between the same first-level switching unit and the same third-level switching unit. The bandwidth allowed to be carried by each path;
第一调度单元, 在接收到数据流时, 用于根据数据流的目的地址将需 要通过同一个第一级交换单元与同一个第三级交换单元到达输出模块的出 端口的数据流緩存到一个队列中, 并根据所述第一级交换单元与所述第三 级交换单元之间的每条路径的路径带宽地图信息, 将所述数据流通过各条 路径发送给所述第三级交换单元。 The first scheduling unit, when receiving the data flow, is used to cache the data flow that needs to pass through the same first-level switching unit and the same third-level switching unit to reach the output port of the output module according to the destination address of the data flow. queue, and sends the data flow to the third-level switching unit through each path according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit. .
10、 根据权利要求 9所述的第一级交换单元, 其特征在于, 还包括: 第一接收单元, 用于接收所述输入模块发送的控制信元, 所述控制信 元包括目的地址以及所述输入模块对该目的地址对应的输出模块的出端口 的带宽需求; 10. The first-level switching unit according to claim 9, further comprising: The first receiving unit is configured to receive the control information element sent by the input module, where the control information element includes a destination address and the bandwidth requirement of the input module for the output port of the output module corresponding to the destination address;
第一发送单元, 用于根据所述目的地址将所述第一接收单元接收的控 制信元发送给所述输出模块的出端口 , 以使得所述输出模块的出端口根据 该出端口自身的额定带宽以及所述控制信元中携带的所述带宽需求为所述 输入模块分配带宽, 生成出端口带宽地图信息; The first sending unit is configured to send the control information element received by the first receiving unit to the output port of the output module according to the destination address, so that the output port of the output module can transmit data according to the rating of the output port itself. The bandwidth and the bandwidth requirement carried in the control cell allocate bandwidth to the input module and generate outbound port bandwidth map information;
所述第一获取单元, 具体用于接收所述输出模块发送的出端口带宽地 图信息。 The first acquisition unit is specifically configured to receive the outbound port bandwidth map information sent by the output module.
11、 根据权利要求 9或 10所述的第一级交换单元, 其特征在于, 所述 第一调度单元, 包括: 11. The first-level switching unit according to claim 9 or 10, characterized in that the first scheduling unit includes:
第一调度子单元, 用于若数据流为分组类型的业务流, 根据所述第一 级交换单元与第三级交换单元之间的每条路径的所述路径带宽地图信息, 将所述分组类型的业务流均勾分发到所述第一级交换单元与第三级交换单 元之间的每条路径上; The first scheduling subunit is configured to, if the data flow is a packet type service flow, schedule the packet according to the path bandwidth map information of each path between the first-level switching unit and the third-level switching unit. Types of business flows are evenly distributed to each path between the first-level switching unit and the third-level switching unit;
第二调度子单元, 用于若数据流为时分复用类型的业务流, 根据所述 第一级交换单元与第三级交换单元之间的每条路径的所述路径带宽地图信 息, 选取一条路径, 将所述时分复用类型的业务流分发到选取的路径上。 The second scheduling subunit is used to select a path bandwidth map information of each path between the first-level switching unit and the third-level switching unit if the data flow is a time division multiplexing type service flow. Path, distribute the service flow of the time division multiplexing type to the selected path.
12、 根据权利要求 11所述的第一级交换单元, 其特征在于, 所述第一 调度单元, 还包括: 12. The first-level switching unit according to claim 11, characterized in that the first scheduling unit further includes:
第一排序输出子单元, 用于将每条路径的路径带宽地图信息进行信元 均匀间插排序, 输出第一信元输出排序表; The first sorting output subunit is used to perform cell uniform interleaving sorting on the path bandwidth map information of each path, and output the first cell output sorting table;
第一发送子单元, 用于将通过路径带宽地图对应的路径进行发送的数 据流根据所述第一信元输出排序表发送给所述第三级交换单元。 The first sending subunit is configured to send the data flow sent through the path corresponding to the path bandwidth map to the third-level switching unit according to the first cell output sorting table.
13、 根据权利要求 9-12任一项所述的第一级交换单元, 其特征在于, 还包括: 13. The first-level switching unit according to any one of claims 9-12, further comprising:
第二发送单元, 用于将所述出端口带宽地图信息发送给对应的输入模 块, 以使得所述输入模块根据所述出端口带宽地图信息以及所述输入模块 中入端口数据流对与所述出端口带宽地图信息相对应的出端口的带宽需求 进行带宽分配。 The second sending unit is configured to send the egress port bandwidth map information to the corresponding input module, so that the input module matches the egress port bandwidth map information with the inlet port data stream in the input module based on the egress port bandwidth map information and the inlet port data flow in the input module. Bandwidth allocation is performed based on the bandwidth requirements of the egress port corresponding to the egress port bandwidth map information.
14、 一种三级互联交换网络, 其特征在于, 包括权利要求 9-13任一项 所述的第一级交换单元。 14. A three-level interconnection switching network, characterized by including any one of claims 9-13 The first-level switching unit.
15、 根据权利要求 14所述的三级互互联交换网络, 其特征在于, 还包 括输入模块和输出模块; 其中, 15. The three-level interconnection switching network according to claim 14, further comprising an input module and an output module; wherein,
所述输入模块, 用于发送控制信元给所述输出模块, 所述控制信元包 括目的地址以及所述输入模块对该目的地址对应的输出模块的出端口的带 宽需求: The input module is used to send control cells to the output module. The control cells include a destination address and the input module's bandwidth requirement for the output port of the output module corresponding to the destination address:
所述输出模块, 用于接收所述输入模块发送的控制信元, 根据所述控 制信元携带的带宽需求为所述输入模块分配带宽, 生成出端口带宽地图信 息, 发送给所述输入模块和所述第一级交换单元; The output module is configured to receive control cells sent by the input module, allocate bandwidth to the input module according to the bandwidth requirements carried by the control cells, generate output port bandwidth map information, and send it to the input module and The first-level switching unit;
所述输入模块, 还用于根据所述出端口带宽地图信息以及所述输入模 块中入端口数据流对与所述出端口带宽地图信息相对应的出端口的带宽需 求进行带宽分配。 The input module is also configured to allocate bandwidth to the bandwidth requirements of the egress port corresponding to the egress port bandwidth map information according to the egress port bandwidth map information and the inlet port data flow in the input module.
16、 根据权利要求 15所述的三级互联交换网络, 其特征在于, 所述输 入模块, 具体包括: 16. The three-level interconnection switching network according to claim 15, characterized in that the input module specifically includes:
第二获取单元, 用于获取输入模块的入端口数据流的流速率以及緩存 信息; The second acquisition unit is used to acquire the flow rate and cache information of the input port data flow of the input module;
第三生成单元, 用于根据所述第二获取单元获取的流速率和所述緩存 信息生成该入端口数据流对出端口的带宽需求; A third generation unit, configured to generate the bandwidth requirement of the inlet port data flow for the egress port based on the flow rate obtained by the second acquisition unit and the cache information;
聚合单元, 用于将所述第三生成单元生成的同一出端口的带宽需求进 行聚合, 生成该输入模块对所述出端口的带宽需求; An aggregation unit, configured to aggregate the bandwidth requirements of the same outbound port generated by the third generation unit, and generate the bandwidth requirements of the input module for the outbound port;
第三发送单元, 用于为所述聚合单元聚合得到的出端口的带宽需求分 配相应的标识, 封装为控制信元, 所述标识包括输入模块的标识和所述出 端口的地址。 The third sending unit is used to allocate a corresponding identifier to the bandwidth requirement of the egress port aggregated by the aggregation unit, and encapsulate it into a control cell. The identifier includes the identifier of the input module and the address of the egress port.
17、 根据权利要求 15或 16所述的三级互联交换网络, 其特征在于, 所述输入模块, 还包括: 17. The three-level interconnection switching network according to claim 15 or 16, characterized in that the input module further includes:
第四生成单元, 用于根据所述出端口带宽地图信息以及所述输入模块 中数据流对发送该出端口带宽地图信息的出端口的数据流带宽需求, 对应 于每个入端口生成数据流带宽地图信息; The fourth generation unit is configured to generate data flow bandwidth corresponding to each ingress port according to the egress port bandwidth map information and the data stream bandwidth requirements of the egress port that sends the egress port bandwidth map information in the input module. map information;
排序单元, 用于将所述数据流带宽地图信息进行信元均勾间插排序输 出第二信元输出排序表, 以使得该入端口的数据流根据所述第二信元输出 排序表发送给第一级交换单元。 A sorting unit configured to perform cell uniform interpolation sorting on the data flow bandwidth map information and output a second cell output sorting table, so that the data flow of the incoming port is sent to the cell according to the second cell output sorting table. First level switching unit.
18、 根据权利要求 15所述的三级互互联交换网络, 其特征在于, 所述 输出模块, 具体包括: 18. The three-level interconnection switching network according to claim 15, characterized in that the output module specifically includes:
第二接收单元, 用于接收所述输入模块发送的控制信元; The second receiving unit is used to receive the control information element sent by the input module;
第五生成单元, 用于根据所述第二接收单元接收的控制信元携带的带 宽需求为所述输入模块分配带宽, 生成出端口带宽地图信息; A fifth generation unit, configured to allocate bandwidth to the input module according to the bandwidth requirement carried by the control cell received by the second receiving unit, and generate output port bandwidth map information;
第四发送单元, 用于将所述第五生成单元生成的端口带宽地图信息发 送给所述输入模块和所述第一级交换单元。 The fourth sending unit is configured to send the port bandwidth map information generated by the fifth generating unit to the input module and the first-level switching unit.
PCT/CN2012/075832 2012-05-21 2012-05-21 Scheduling method, device and system based on three-stage interconnected switched network WO2013173966A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/075832 WO2013173966A1 (en) 2012-05-21 2012-05-21 Scheduling method, device and system based on three-stage interconnected switched network
CN201280000846.4A CN102835081B (en) 2012-05-21 2012-05-21 Scheduling method, device and system based on three-level interaction and interchange network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/075832 WO2013173966A1 (en) 2012-05-21 2012-05-21 Scheduling method, device and system based on three-stage interconnected switched network

Publications (1)

Publication Number Publication Date
WO2013173966A1 true WO2013173966A1 (en) 2013-11-28

Family

ID=47336885

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075832 WO2013173966A1 (en) 2012-05-21 2012-05-21 Scheduling method, device and system based on three-stage interconnected switched network

Country Status (2)

Country Link
CN (1) CN102835081B (en)
WO (1) WO2013173966A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019620A (en) * 2020-08-28 2020-12-01 中南大学 Web cluster load balancing algorithm and system based on Nginx dynamic weighting

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102835081B (en) * 2012-05-21 2015-07-08 华为技术有限公司 Scheduling method, device and system based on three-level interaction and interchange network
CN106375218B (en) * 2015-07-23 2019-06-21 华为技术有限公司 A kind of message forwarding method and relevant apparatus
CN107196862B (en) * 2016-03-14 2021-05-14 深圳市中兴微电子技术有限公司 Flow congestion control method and system
CN106453072A (en) * 2016-06-22 2017-02-22 中国科学院计算技术研究所 Greedy distribution method and device of on-chip network router channel resources and router
CN107959642B (en) * 2016-10-17 2020-08-07 华为技术有限公司 Method, device and system for measuring network path
CN107979544A (en) * 2016-10-25 2018-05-01 华为技术有限公司 A kind of retransmission method of IP packet, equipment and system
CN108574642B (en) * 2017-03-14 2020-03-31 深圳市中兴微电子技术有限公司 Congestion management method and device for switching network
CN110495144B (en) * 2017-06-29 2020-12-01 华为技术有限公司 Network topology structure mapping method and device, terminal and storage medium
CN107480229B (en) * 2017-08-03 2020-10-30 太原学院 Distributed computer database system for object retrieval and retrieval method thereof
CN108040302B (en) * 2017-12-14 2020-06-12 天津光电通信技术有限公司 Self-adaptive switching network routing method based on Clos and T-S-T

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848803A (en) * 2005-07-27 2006-10-18 华为技术有限公司 Down queue fast back pressure transmitting based on three-stage exchange network
WO2007125527A2 (en) * 2006-04-27 2007-11-08 Dune Networks Inc. Method, device and system of scheduling data transport over a fabric
WO2011014304A1 (en) * 2009-07-29 2011-02-03 New Jersey Institute Of Technology Forwarding data through a three-stage clos-network packet switch with memory at each stage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102835081B (en) * 2012-05-21 2015-07-08 华为技术有限公司 Scheduling method, device and system based on three-level interaction and interchange network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848803A (en) * 2005-07-27 2006-10-18 华为技术有限公司 Down queue fast back pressure transmitting based on three-stage exchange network
WO2007125527A2 (en) * 2006-04-27 2007-11-08 Dune Networks Inc. Method, device and system of scheduling data transport over a fabric
WO2011014304A1 (en) * 2009-07-29 2011-02-03 New Jersey Institute Of Technology Forwarding data through a three-stage clos-network packet switch with memory at each stage

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019620A (en) * 2020-08-28 2020-12-01 中南大学 Web cluster load balancing algorithm and system based on Nginx dynamic weighting
CN112019620B (en) * 2020-08-28 2021-12-28 中南大学 Web cluster load balancing method and system based on Nginx dynamic weighting

Also Published As

Publication number Publication date
CN102835081A (en) 2012-12-19
CN102835081B (en) 2015-07-08

Similar Documents

Publication Publication Date Title
WO2013173966A1 (en) Scheduling method, device and system based on three-stage interconnected switched network
CN110620731B (en) Routing device and routing method of network on chip
AU746166B2 (en) Fair and efficient cell scheduling in input-buffered multipoint switch
US6810031B1 (en) Method and device for distributing bandwidth
US7042883B2 (en) Pipeline scheduler with fairness and minimum bandwidth guarantee
US7161906B2 (en) Three-stage switch fabric with input device features
EP1810466B1 (en) Directional and priority based flow control between nodes
AU736406B2 (en) Method for providing bandwidth and delay guarantees in a crossbar switch with speedup
US7023841B2 (en) Three-stage switch fabric with buffered crossbar devices
US7221652B1 (en) System and method for tolerating data link faults in communications with a switch fabric
US7221647B2 (en) Packet communication apparatus and controlling method thereof
US6185221B1 (en) Method and apparatus for fair and efficient scheduling of variable-size data packets in an input-buffered multipoint switch
US8971317B2 (en) Method for controlling data stream switch and relevant equipment
US20050135356A1 (en) Switching device utilizing requests indicating cumulative amount of data
US20080267182A1 (en) Load Balancing Algorithms in Non-Blocking Multistage Packet Switches
WO2006081129A1 (en) Replication of multicast data packets in a multi-stage switching system
EP2134037B1 (en) Method and apparatus for scheduling data packet flows
US8559443B2 (en) Efficient message switching in a switching apparatus
US7623456B1 (en) Apparatus and method for implementing comprehensive QoS independent of the fabric system
US7602797B2 (en) Method and apparatus for request/grant priority scheduling
Li System architecture and hardware implementations for a reconfigurable MPLS router
Hu et al. A distributed scheduling algorithm in central-stage buffered multi-stage switching fabrics
Dastangoo Performance consideration for building the next generation multi-service optical communications platforms
Fan et al. Global and dynamic round-robin scheduler for terabit routers

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201280000846.4

Country of ref document: CN

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

Ref document number: 12877418

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12877418

Country of ref document: EP

Kind code of ref document: A1