Application viewpoint: analyze the practical application of layer-3 switches

Source: Internet
Author: User

There are many things worth learning about layer-3 switches. Here we mainly introduce the practical application of layer-3 switches. Experts tell you what layer-3 switches are, and now every household has their own computers, I learned what a layer-3 switch is. At that time, the layer-3 switch was based on software, and the forwarding speed was very slow. Later, I developed to implement layer-3 Switch with hardware.

In, a layer-3 switch was born. So what is a layer-3 switch? In the early days, people wanted to combine the layer-2 switching and layer-3 routing functions on a single device to reduce the number of devices. At that time, layer-3 switching was based on software, and the forwarding speed was very slow. Later, it was developed to implement layer-3 switching with hardware.

From today's point of view, a layer-3 switch is essentially a special type of router, which focuses on switching layer-2 and layer-3 in terms of performance. It has a strong exchange capability and a low-cost router. It implements layer-3 switching of IP packets with ASIC, and its exchange capability is above MPPS. Traditional routers generally do not have more than 0.1 million packets/second. This refers to the forwarding capability of a single board, it does not mean the overall forwarding capability of multiple boards in Distributed forwarding situations, nor does it include GSR consisting of expensive network processors. In addition, a higher-speed CPU is now available, but it is hard to exceed 1 mpps3 ).

The high price of the network processor lies in its complexity in addition to layer-3 switching. It also has strong QOS, POLICY, and other functions. Taking IBM's Rainer processor as an example: its hardware can manage thousands of streams, the software configures bandwidth of different streams, and is embedded with PowerPC processors. It has a large number of coprocessors and hardware accelerators, data can be processed in parallel.

In order to reduce costs, the forwarding part of a layer-3 Switch cannot support thousands of streams at a wire speed and can allocate bandwidth. In the past, some people thought that it was very expensive to use the longest match to search for a large route table. In other words, it was very expensive to use hardware to achieve the longest match for a large route table. According to the survey data, this is not necessarily true.

The cost of using CAM for route table search is not high. Take KawasakiLSI's CAM chip KE5BLME064 that supports longest matching search as an example. It supports 64 K route prefix items. Each ENTRY40bit is wide and the packet search speed can reach 6.7 Mpps, with a latency of several hundred nanoseconds, the price is less than 60 USD 6. Of course, reducing the supported route table items will undoubtedly reduce the cost, and there is no need for too many route table items in the general application environment of layer-3 switches. Therefore, three-layer switches generally support less route table items than GSR, for example, the CISCO4000 series only supports 16-to 32 K route table items, and the ACCLER1000 of Nortel supports 32 K.

However, the SUPERENGINES2 of CISCO applications in the 6500 series already supports up to 128 kb, which can be equivalent to the table items of the backbone network router. The route tables supported by the forwarding engine designed by CISCO are becoming larger and larger, considering that layer-3 switches are applied to man networks and backbone networks.

In general, the price of a network processor should be based on its flexibility. You must support QOS, POLICY, and multiple protocols. In particular, some protocols have not yet fully formed standards, the network processor may only need to modify the software to support most layer-3 switches, which also leads to incompatibility between the early three-layer Switches of many manufacturers and the current protocol ), the Network Processor needs to identify more packets and schedule more complex tasks to achieve line rate processing.

It is often composed of multiple micro engines and supports multi-thread processing. These may be the main reason for the sharp rise in network processor prices. In contrast, layer-3 switches have weak capabilities in this regard. For example, the CISCO6000 series only supports 16 QOS queues, 4000 only supports one queue, and 5500 supports two queues, the layer-3 engine of Extreme only supports four queues.

Because hardware is used to implement layer-3 switching, the switching speed can be very high, but to support a large number of layer-3 protocols, such as IP, IPX, AppleTalk, DECnet, and so on, these protocols have different packaging formats, it is easy to implement with software, but it is very difficult to implement with hardware. There are too many protocols to implement forwarding with hardware, which will only bring about a sharp increase in costs.

What is a layer-3 Switch? Generally, only common IP addresses, IPX protocols, and IP multicast are supported. Some layer-3 switches support others, but they are implemented by software with a low forwarding rate. For example, CISCO's ipvst6000 series uses software to implement AppleTalk on MSFC, the forwarding rate ranges from 0.1 million to 0.2 million packets per second. What is a layer-3 switch now mainly provides Ethernet interfaces. Ethernet technology is simple and cost-effective. It is the most widely used in enterprise networks. layer-3 switches use Ethernet interfaces to provide low-cost and high-speed switches for enterprise networks. They replace vrouters with high prices but poor performance.

The ASIC of a layer-3 Switch provides both layer-2 and layer-3 IP exchanges, integrating the functions of the original layer-2 Ethernet switch and vro, greatly reducing users' costs. With the rise of broadband services, the application scope of layer-3 switches is constantly expanding, especially the rapid development of GE and 10G Ethernet technologies. As a result, layer-3 switches have gradually moved from enterprise networks to man networks, the expansion of application scope also promotes its design innovation.

For example, CACHE technology is widely used in layer-3 switches. When layer-3 switches are applied to man networks and backbone networks, the business flow becomes more irregular and network topology changes increase, due to the increase in video language services and the demand for QOS, the disadvantages of adopting this technology are becoming more and more obvious; what is layer-3 switches that require more and more protocols to be supported when developing towards man and backbone networks? For example, some manufacturers already support OSPF, BGP, MPLS, and other protocols, some even use programmable ASIC to support IPV6.

Layer-3 switches support more and more interfaces, and some already support Wide Area Network Ports. For example, the CISCO6000 series provides the Wide Area Network Module flexWAN and various wide area network interfaces. Such as ATM, POS, frame relay, and PPP. However, this part is also handled by software like traditional routers. flexWAN has two 263M RM7000 processors to process these wan interface protocols, and the interface speed is not high, currently only OC-3ATM or OC-3POS is supported.

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.