Vswitch board bandwidth calculation

Source: Internet
Author: User

Vswitch board bandwidth calculation

Calculation Formula description

The backboard bandwidth of A vswitch is the maximum amount of data that can be transferred between the vswitch interface processor or interface card and the data bus. The backboard bandwidth indicates the total data exchange capability of a vswitch. The unit is Gbps. It is also called the switching bandwidth. The bandwidth of A vswitch ranges from several Gbps to hundreds of Gbps. The higher the bandwidth of A vswitch, the stronger the ability to process data, but the higher the design cost.

Generally, the calculation method is as follows:

(1) wire speed backboard bandwidth

Measure the test taker's knowledge about the total bandwidth provided by all ports on the vswitch. The formula is as follows: number of ports x corresponding port rate x 2 (full duplex mode). If the total bandwidth is less than or equal to the nominal backboard bandwidth, the bandwidth is linear.

(2) Layer 2 packet forwarding speed

Second-layer packet forwarding rate = number of Gigabit ports x 1.488 Mpps + number of 0.1488 MB ports x Mpps + number of other types of ports x calculation method, if this rate can be less than or equal to the forwarding rate of the nominal second-layer packet, the switch can achieve the line speed when performing Layer 2 switching.

(3) Layer 3 packet forwarding speed

Layer 3 packet forwarding rate = number of Gigabit ports x 1. 488 Mpps + 0.1488 MB port count × Mpps + number of other types of ports × calculation method. If this rate can be less than or equal to the forwarding rate of a nominal layer-3 packet, the switch can achieve line speed when performing layer-3 switching.

Therefore, if the above three conditions can be met, we will say that this switch is truly linear and non-blocking.

The utilization rate of the backboard Bandwidth Resources is closely related to the internal structure of the vswitch. Currently, the internal structure of a vswitch mainly includes the following types: first, the shared memory structure, which relies on the central switching engine to provide high-performance connections across all ports, the core engine checks each input packet to determine the route. This method requires a lot of memory bandwidth and high management costs. Especially with the increase of switch ports, the price of the central memory will be very high, so the switch kernel becomes a bottleneck for performance implementation; the second is the cross-bus structure. It can establish direct point-to-point connections between ports, which is good for single-point transmission performance, but not suitable for multi-point transmission. The third is the hybrid cross-bus structure, this is a hybrid cross-bus implementation method. Its design idea is to divide an integrated cross-Bus Matrix into small cross matrices and connect them through a high-performance bus in the middle. The advantage is that the number of Cross buses is reduced, the cost is reduced, and the bus contention is reduced. However, the bus connected to the cross matrix becomes a new performance bottleneck.

Port Rate Calculation

The minimum packet length for Ethernet transmission is 64 bytes, And the POS port is 40 bytes. The packet forwarding speed is measured by the number of 64 bytes of data packets (minimum packet) sent per unit time. For Gigabit Ethernet, the calculation method is as follows: 1,000,000,000 bps/8bit/(64 + 8 + 12) byte = 1,488,095 pps Description: When the Ethernet frame is 64 byte, the fixed overhead of the frame gap between 8-byte frames and 12-byte frames must be considered. Therefore, the packet forwarding rate of A 1-gigabit Ethernet port when forwarding a 64-byte packet is 1.488 Mpps. The line-rate port forwarding rate of Fast Ethernet is exactly 148.8 of that of Gigabit Ethernet, which is kpps.

Serial number, port type, packet forwarding Rate

1. 10 Gigabit Ethernet 14.88 Mpps

2. Gigabit Ethernet 1.488 Mpps

3. 0.1488 Mbps Ethernet

OC-3 POS 0.29 Mpps

4. OC-12 POS 1.17 Mpps

5. OC-48 POS 468 MppS

Total port Rate

In Ethernet, each frame header must contain an 8-byte leading character, which is used to tell the listener that data is coming. Then, there must be a frame gap between each frame in the Ethernet, that is, after each frame is sent, wait for a while before another frame is sent. In the Ethernet standard, the minimum value is 12 bytes, however, the frame gap may be larger than 12 bytes in practice. Here I use the minimum value. Each frame requires a fixed overhead of 20 bytes. Now let's calculate the actual throughput of a single port of the switch: 148,809 × (64 + 8 + 12) × 8 ≈ 100 Mbps, through this formula, we can see that the actual data exchange volume accounts for 64/84 = 76%. The "line rate" data throughput of the switch port link is actually only 76 Mbps, and the other part is used to handle additional overhead, both of them are standard Mbit/s or Gbit/s.

Vswitch board bandwidth calculation method

The backboard bandwidth is the maximum amount of data that can be transferred between the vswitch interface processor or interface card and the data bus. The higher the bandwidth of the backboard of A vswitch, the stronger the ability to process data, but the design cost will also rise. However, how can we check whether the bandwidth of A vswitch is sufficient? Obviously, the estimation method is useless. I think we should consider the following two aspects:

1) The sum of the total port capacity X ports should be 2 times smaller than the backboard bandwidth, enabling full-duplex non-blocking switching, proving that the switch has the conditions to maximize the data exchange performance.

2) Full configuration throughput (Mpps) = number of fully configured GE ports x 1. 488Mpps the theoretical throughput of One gigabit port when the packet length is 64 bytes is 1.488 Mpps. For example, A vswitch that can provide up to 64 Gigabit ports must have a full configuration throughput of 64 × 1.488 Mpps = 95.2 Mpps to ensure that all ports are working at the same speed, provides non-blocking packet switching. If a vswitch can provide a maximum of 176 Gigabit ports and the declared throughput is less than 261.8 Mpps (176x1.488 Mpps = 261.8 ), the user has reason to think that the switch adopts a blocking structure design.

Generally, the switches that both meet the requirements are qualified switches.

For vswitches with relatively large backboards and low throughput, the software efficiency/dedicated chip circuit design is not a problem, but the backboard is relatively small. The overall performance of vswitches with relatively high throughput is relatively high. However, the Board bandwidth can be believed by the manufacturer, but the throughput cannot be believed by the manufacturer. because the latter is a design value, the test is very difficult and the significance is not great.

The back-end speed of a vswitch is generally Mbps, which refers to the second layer. Mpps is used for switching between three or more layers.

[Edit recommendations]

SDN network will reshape the Ethernet switch development form IDC: the overall growth rate of Ethernet switches and routers in the market is slow. Details about the main types and Applications of L3 switches [Editor: Lin TEL :( 010) 68476606]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.