| ||||||
|
January 1, 1998 Designing Fast Ethernet switches
is easy Stephen Kempainen, Technical Editor Designing Ethernet switches has never been easier. Off-the-shelf switch chips and reference designs dramatically reduce switch development costs. Fast Ethernet (FE) switches are the popular way to satisfy bandwidth-hungry applications on millions of computers. Low-cost Ethernet switches with 10- and 100-Mbps ports give each end station dedicated, rather than shared, bandwidth. However, packet switching alone doesn't relieve performance-stunting congestion. Congestion relief comes from switch features such as virtual LANs (VLANs), packet filtering, and priority levels. Building these features into switches has become easier with a variety of available switch-on-chip and chip sets. Chip vendors are even providing designs, including software, that are ready for you to take to production. Applications with increasing bandwidth requirements create demand for switching performance in networked workgroups and internetwork connections. The Layer 2, or "frame," switches--so named because they forward unaltered frames--bridge switch ports for workgroups. These switches are drop-in replacements for hubs and repeaters. They operate at the data-link layer by analyzing the media-access-control (MAC) header (Reference 1). Layer 2 switches maintain the appearance--a transparent bridge--but increase data throughput of one network. These switches provide performance gains because each port has dedicated bandwidth, and multiple ports can concurrently receive and transmit packets. Switches eliminate packet collisions. Layer 2 switches are simple to install and set up be-cause they need little configuration. Adding functionality to Layer 2 switches gives you "multilayer" switches. Additional functions in-crease performance beyond switching-speed gains by reducing congestion. The frame switch traditionally learns addresses, forwards packets without altering them, and resolves network loop paths by using spanning-tree routines to shut down paths. The same switches become multilayer by using Simple Network Management Protocol (SNMP) and Remote MONitoring (RMON) to perform management operations and enhance diagnostic capabilities. By adding these management tools, the switch be-comes visible to network operation controllers. Additional features, such as active flow control and buffering, enhance performance by alleviating congestion. Multilayer switches can also incorporate VLANs--configuring LANs by policies rather than physical location--in which a frame's tag header includes information on destination policy and priority provisions. The policy information further reduces segment traffic and congestion and increases security. Layer 3 switches, multilayer switches with internetwork routing capability, perform routing functions to connect LANs. Much confusion exists about Layer 3 switches because approximately half those switches that manufacturers call "Layer 3'' are just multilayer bridges with a different moniker, and the other half are truly routers operating at the network layer. The standard routing protocols, such as Open Shortest Path First (OSPF), use the Internet Protocol (IP) header to determine destinations. Routing protocols can increase network performance by allowing for loop paths to act as redundant paths. Therefore, the protocols need not shut those paths down, as a spanning-tree routine would. A Layer 3 switch does everything a Layer 2 switch does plus routing packets between networks, conditionally modifying and forwarding frames, and managing operations. Because these switches concentrate traffic from multiple connections, keeping performance high depends on making packet-forwarding decisions at wire speed--10-Mbps for Ethernet and 100 Mbps for FE. Router forwarding requires parsing the frame from the packet, searching large routing-address tables, and reconstructing a framed packet to transmit. The new frame includes the next destination's MAC address from the routing table, the decremented time-to-live field for the datagram, and the recalculated IP header checksum. Conditional forwarding is synonymous with packet filtering and is useful in controlling congestion and providing security. Installing a Layer 3 switch changes a network's architecture and requires configuration and maintenance to keep it functioning properly. Most chip vendors offer both store-and-forward and cut-through packet-forwarding mechanisms (Table 1). The store-and-forward, or packet-by-packet, switch takes the whole frame and checks it for errors before forwarding it. This switching mechanism supports Layer 3 routing and forwards only error-free frames. It also supports complex packet-filtering schemes and mixed-speed ports. The store-and-forward mode increases usable bandwidth by filtering all nonregulation packets from a network. However, store-and-forward mode can add latency. The cut-through switch starts forwarding the frame when the switch determines the destination. Because forwarding can begin before the switch receives the whole frame and error checking occurs only after receiving the whole frame, this mode can forward frames with errors. This switch has consistent and short latencies and applies best in single-speed workgroups and backbones. "Runt-free" cut-through switching prevents forwarding packets with less than 64 bytes, or "runts," by stalling the packet transmission until 64 bytes--the minimum regulation packet--arrive at the ingress port. Layer 2 and 3 switches make sophisticated packet-handling decisions based on information from headers and tags. The headers and tags encapsulate the packet to make it into a frame. However, these decisions hinder the switch's throughput performance unless they are fast enough to keep up with the incoming data's wire speed. For switches with multiple FE ports, many designers think hardwired decision-making is the only way to keep up with the wire speed. But hardwiring the logic assumes that the networking protocol is stable and standardized, which is only now becoming the case for packet priority and VLANs (see box "Standards for VLANs and priority tagging"). For this reason, some chip vendors, such as Vertex and MMC, assume that optimized protocols will emerge, enabling the vendors to use programmable network processors in their chip sets, easing future upgrades. Decisions increase performance A switch's packet-handling decisions also increase performance by alleviating congestion. Congestion impairs performance by blocking packets from reaching destinations. If there is too little buffer space to store blocked packets, the switch drops them, and the source must try to send them again. To increase end-to-end performance in today's networks with their primarily internetworking traffic, the protocols must be the same across all LAN boundaries. Chip manufacturers are adding logic for the new protocols to their switching chips. These protocols address problems across networks. Switch performance can suffer from packet broadcasts in which every node in the network is a destination. Layer 3 devices define network boundaries and, therefore, limit the broadcast domains. Layer 2 switches propagate "broadcast storms"--congestion resulting from simultaneous broadcast packets arriving at multiple ingress ports. These storms occur unless the Layer 2 switch provides a broadcast forward-and-filter mechanism.
IP "multicasting," in which only selected egress ports are destinations for the packet, can also hurt switch performance by causing congestion. The standard for IP multicasting is the Internet Group Management Protocol (IGMP). Layer 3 switches and routers include IGMP because it uses the IP address that these switches and routers analyze. In the IGMP, the receiving end station requests and maintains membership in a multicast group of interest, such as a videoconference. This approach reduces network traffic through the switch because the multicast source sends only to those stations that are interested rather than broadcasting to all that might be interested. IGMP is essential because of the bandwidth savings it provides. Congestion in networks also comes from video and voice streams because they require on-time delivery of a constant data flow. In addition, these streams require low latency, ordered delivery, and constant bandwidth. These requirements mean that the network must guarantee levels of service. Because Ethernet provides no means of reserving resources to guarantee levels of service, it needs new protocols to provide some reservation ability. The ReSerVation Protocol (RSVP) is an Internet Engineering Task Force draft standard that could provide some bandwidth guarantees in small networks. But, because RSVP requires each router to maintain descriptor tables--latency and bandwidth requirements--for each packet stream, this protocol may not work across large internetworks. Another protocol with some promise is IEEE 802.3p, which provides eight priority levels. Packets with higher priority move to the head of queues to avoid head-of-line blocking that increases latency and causes jittery bandwidth. 802.1p and 802.1Q work together for priority and bridging VLANs because they use the same header-tag format for priority and VLAN information. Switch-chip sets need to incorporate the queue-management functions necessary to enforce 802.1p priority transmissions. Management of many VLAN segments is essential to network performance and health but complex in a switched network. Each port in a switch needs to maintain a record of the traffic load, traffic type, delays, and other performance parameters. The port must then communicate the statistics to a management-control unit and processor for analysis. The SNMP and RMON standards define the management interfaces and statistics for including management in the switches. Almost all the chip sets in Table 1 include hardware support for management-statistics gathering. Chip sets and reference designs Chip vendors' reference designs--ranging from simple evaluation boards to complete, ready-to-manufacture product designs--significantly reduce your design-cycle time for high-speed switches with congestion control. The evaluation boards provide a platform on which to test signals and develop software. Vendors are also offering more complete designs that provide schematics, Gerber files, and lists of materials to take hardware to manufacturing. The most complete kits available are the reference designs that hand you the hardware, software, and documentation for entering the switch OEM market on a platter. The evaluation boards are inexpensive ways to run the chips through some exercises. Galileo offers an evaluation-board ensemble with each of its switch chips. For example, the Galileo-7 support board for the GT-48002A is available for $2495. The GT-48002A chip provides switching between two FE ports and a PCI-bus-expansion port. The device also includes RMON Management Information Base (MIB) counters, a CPU routing-intervention mode, and spanning-tree support. The Galileo-7 plugs into the Galileo-4BP PCI passive backplane ($495), which provides five PCI-master slots and a reprogrammable arbiter. By adding a Galileo MIPS or i960 processor-development board, you can assemble a managed, Layer 2 switch prototype. You use the prototype to develop and test code and perform benchmarking and system validation. Third-party software vendors also supply modules for the prototyping.
Texas Instruments offers OEM-ready, Layer 2-switch reference designs for its ThunderSwitch switch-on-chip products. The reference kits for the TNETX3100 Desktop ThunderSwitch 8/2 and the TNETX3150A are available for $2500 each. Both include board and enclosure schematics, Gerber files, software for test diagnostics, and chip documentation for a desktop workgroup switch. The TNETX3100 switch design has eight 10-Mbps ports and two 10/100-Mbps ports. The TNETX3100 supports on-chip, per-port storage of Etherstat for RMON and SNMP. The auxiliary device, TNETX15AE, adds 8000-address expansion to the reference design for the Desktop ThunderSwitch. The TNETX15VE is not on the reference design, but when you add it to a design, it gives VLAN capability to both the TNETX3100 and the TNETX3150A.
At the top level are the total-package reference designs. For example, the PS1000 reference design from MMC Networks leaves nothing left undone. For $250,000, you get everything you need to build a product and enter the switch business. The PS1000 FE switch-engine chip set is flexible enough to let you build in as little or as much functionality as you want. The modular design centers on MMC's ViX architecture for a shared SRAM buffer switch and the packet-switch processor. You use 10- and 100-Mbps Ethernet and ATM-interface units to add ports. The design also includes devices for address-resolution logic and bridges to a PCI bus and a CPU. The reference design includes all the Gerber files, the bill of materials, and a full suite of bridging and management software. The Layer 3 AnyFlow 5000 network-processor chip set will be available in March. This chip set includes a programmable network processor that provides the Layer 3 routing functions. Other building-block chips are two modular switch controllers, a per-flow queuing controller, Ethernet and ATM bit-stream processors, a per-flow scheduler, a memory-access buffer, and a control-message interface. The Any-Flow 5000 provides wire-speed switching and routing with class and quality-of-service provisions. For more seasoned switch designers, building-block components are available to complete Layer 2 and 3 switch designs. For example, Digital Semiconductor offers two chips for flexible switch design. The eight-port, 10/100-Mbps 21440 Ethernet controller supplies a building block for switches by combining flexible port interfaces, packet-header preprocessing, and RMON probes at each port. The 21440 features target-routing functions. For example, it assembles Ethernet frames with a MAC header, an IP header, and data from different sources. The 21340-AB buffered port switch, a building block for Layer 2 switches, lets any of the four ports connect to any of the four segment buses. Each segment bus connects separate collision domains. The new chips and reference designs lower your design costs. The reference designs shorten the cycle for experienced designers and open the field to beginners. You can use a chip vendor's reference design as your switch or just to get a quick start on a design. You differentiate your switch by enhancing the hardware design or by adding your own software modules. Either way, switch design is getting easier with today's highly integrated switching chips.
| ||||||
| ||||||
| ||||||
|
| EDN Access | Feedback | Table of Contents | | ||||||
| Copyright © 1997 EDN Magazine, EDN Access. EDN is a registered trademark of Reed Properties Inc, used under license. EDN is published by Cahners Publishing Company, a unit of Reed Elsevier Inc. | ||||||
|
Table 1--Representative Ethernet switch chips having Fast Ethernet switch ports | ||||||
| Vendor | Product, package, price, availability | Function | Ports, interface1 | Features | Reference design price, availability | Supply voltage (V) |
| Advanced Communication Devices | ACD82024, 576-pin BGA, $194.75 (10,000), February 1998 | Fast Ethernet switch controller | 24 10/100-Mbps MII | 24-port autosensing 10/100-Mbps, secure mode and loop-free traffic filtering, port-based VLAN, 8000 addresses and network-management support by external address-resolution and MIB devices, reversible MII option for CPU and expansion-port interface | Evaluation board, NA, February 1998 | 5 |
| Digital Semiconductor | 21340-AB, 208-pin PQFP, $25 (2500), now | 10/100-Mbps, buffered, four-port, MAC segment switch building block for switches and repeaters | Four 10/100-Mbps, full-duplex | As many as 36 ports per board and 256 ports per stack, address filtering on each segment, range of arbitration schemes between ports, credit-based full- and half-duplex flow control, per-port RMON and MIB counters and registers, four segments on each chip | Evaluation board, $995, first quarter of 1998 | 3.3 |
| 21440, 352-pin BGA, $39 (2500), now | Multiport 10/100-Mbps Ethernet controller, eight-port building block for switches, routers, and bridges | Eight 10/100-Mbps, full-duplex MII | Each MAC contains 256-byte independent FIFO buffers for transmitting and receiving, per-port SNMP and RMON counters, supports early address-filtering VLAN ability, 4-Gbps data bus for connecting as many as 32 ports, supports JTAG, packet transfer without CPU intervention | NA | 3.3 | |
| Galileo Technology | GT-48002A, 208-pin PQFP, $53 (10,000), now | Two-port switched Fast Ethernet controller, switching between two 100-Mbps ports and PCI bus | Two 10/100-Mbps, full-duplex MII | Performs packet forwarding and filtering, optional CPU intervention in packet-routing decisions, self-learning mechanism supports as many as 8000 unicast addresses, PCI interface for switch-expansion and management-CPU connections | Evaluation kit, ($2495), now | 5 |
| GT-48004A, 329-pin PQFP, $88 (10,000), now | Four-port, switched Fast Ethernet controller, switching among four 10/100-Mbps ports and PCI bus | Four 10/100 Mbps, full-duplex MII | Packet forwarding and filtering, expansion to 16-port switch through 2-Gbps PCI bus, RMON and MIB counters, routing-intervention mode, spanning-tree support, self-learning support for as many as 8000 unicast addresses, packet buffering by external 2- or 4-Mbyte EDO DRAM | $2495, now | 3.3 | |
| GT-48207, 208-pin PQFP, $50 (10,000), now | 10-port, switched Ethernet controller for 10 and 10/100 Mbps | Eight 10 Mbps, two 10/100 Mbps, all full-duplex MII on 10/100-Mbps ports | Packet forwarding and filtering, PHY integrated on 10-Mbps ports, self-learning and aging mechanism supports as many as 8000 unicast addresses, packet buffering by external 1- or 4-Mbyte SDRAM, 802.3x flow control | $2495, now | 3.3 | |
| GT-48208, 208-pin PQFP, $60 (10,000), now | 10-port, switched Ethernet controller for 10 and 10/100 Mbps | Eight 10 Mbps, two 10/100 Mbps, all full-duplex MII on 10/100 Mbps | Adds management capability to GT-48207 with MIB counters, spanning-tree assistance, monitoring mode, optional broadcast-storm filtering, VLANs based on port or MAC address, IGMP packet trapping to support IP multicast, priority queuing, multicast switch | $2495, now | 3.3 | |
| GT-48212, 208-pin PQFP, $75 (10,000), now | 14-port, switched Ethernet controller for 10 and 10/100 Mbps | 12 10 Mbps, two 10/100 Mbps, all full-duplex, MII on 10/100 Mbps | Adds management capability to GT-48207 with MIB counters, spanning-tree assistance, monitoring mode, optional broadcast-storm filtering, VLANs based on port or MAC address, IGMP packet trapping to support IP multicast, priority queuing, IP multicast switch | $2495, now | 3.3 | |
| I-Cube | LS100 quad-port Ethernet switch interface, 256-pin PQFP, $60.72 (25,000), now | Building block for switch with as many as 24 ports | Four 10/100-Mbps, full-duplex MII | Integrated MAC controllers, address-translation logic, memory-control and buffer management, for use with any I-Cube crossbar switch, ports configurable to full or half duplex | Raptor, $5000, now | 3.3 |
| LS106, 256-pin PQFP, $38.27 (25,000), now | Single-port Ethernet switch interface, building block for switch with as many as 25 ports | One 10/100-Mbps full-duplex MII | Integrated MAC controllers, address-translation logic, memory control and buffer management, for use with any I-Cube crossbar switch, ports configurable to full or half duplex | Raptor reference design, $5000, now | 3.3 | |
| LS081, 64-pin TQFP, $14.19 (25,000), now | Nine-port LAN switching element, building-block crossbar switch for packet switch | Nine 100-Mbps, full-duplex proprietary interface | Nonblocking crossbar-switch and switch-arbitration logic, arbitration supports round-robin scheme with four levels of priority, for use as eight ports of 10/100 Mbps plus one management port | NA | 3.3 | |
| LS101, 144-pin PQFP, $29.62 (25,000), now | 25-port LAN switching element, building-block crossbar switch for packet switch | 25 100-Mbps, full-duplex proprietary interface | Nonblocking crossbar-switch and switch-arbitration logic, arbitration supports round-robin scheme with four levels of priority, for use as 24 ports of 10/100 Mbps plus one management port | Raptor reference design, $5000, now | 3.3 | |
| LS101A, 144-pin PQFP, $29.95 (25,000). March 1998 | 27-port LAN switching element, building-block crossbar switch for packet switch | 27 100-Mbps, full-duplex proprietary interface | Nonblocking crossbar-switch and switch-arbitration logic, arbitration supports round-robin scheme with four levels of priority, can use as 16 ports of 10/100 Mbps and 10 ports consolidated as 1-Gbps uplink plus one management port | Raptor reference design, $5000, now | 3.3 | |
| LS102, 256-pin PQFP, $42.95 (25,000), March 1998 | 49-port LAN switching element, building-block crossbar switch for packet switch | 49 100-Mbps, full-duplex proprietary interface | Nonblocking crossbar-switch and switch-arbitration logic, arbitration supports round-robin scheme with four levels of priority, can use as 24 ports of 10/100 Mbps and two sets of 10 ports consolidated as 1-Gbps uplink plus one management port | NA | 3.3 | |
| Lucent Microelectronics | LUC3M08, 388-pin PBGA, $54 (10,000), now | Eight-port Ethernet MAC, building-block MAC for switches | Eight 10/100-Mbps, full-duplex MII | 4.2-Gbps proprietary system interface, serves as port interface for either shared memory, cut-through or crosspoint switch fabrics, 32-bit event counters for RMON statistics, core is in Silicon Suite for ASIC integration | NA | 3.3 |
| MMC Networks | PS1000, 256-pin PBGA, three 208-pin PQFPs, 144-pin LQFP, $416 (10,000), | Packet-switch network-processor chip set, seven-chip set for modular design of 10/100-Mbps Ethernet switches | 16 10 Mbps, full duplex | Nonblocking switch with direct support for as many as 32 I/O channels, mailbox-messaging mechanism between ports, unicast, multicast, and broadcast support, separate devices for switch, processor Fast Ethernet, Ethernet, and ATM interfaces | Full suite of hardware and software, $250,000, now | 3.3 and 5 |
| AnyFlow 5000, three 352-pin BGAs, three 272-pin BGAs, 256-pin BGA, 208-pin QFP, $35/FE port, $220/GE port, $250/OC-12 port (10,000) | Network processor, eight chips that are building blocks for modular design of packet or cell switches | 128 100-Mbps, full-duplex or ATM OC-3, 16-Gbit Ethernet, or 32 ATM OC-12 | Layer 3 switching and routing and packet-to-cell internetworking; 40-Gbps nonblocking bandwidth; packet filtering, address translation, and tunneling for security, class, and quality-of-service provisions; network management; per-flow queuing | Reference design, first quarter of 1998 | 3.3 | |
| Oki Semiconductor | MSM7693, 352-pin BGA, $40 (10,000), now | Eight-port 10/100-Mbps Ethernet MAC, function for Ethernet switch applications | Eight 10/100-Mbps, MII or SNI | Large-packet support for VLAN tagging, automatic runt removal, full- and half-duplex flow control, RMON support, large FIFO buffers, burst-I/O data channel, programmable controller, 64-bit FIFO bus to switch fabric, PCI bus for statistics and control | NA | 3.3 |
| Sony Semiconductor | CXD1700 pacITman, 352-pin PBGA, $195 (1000), now | Single-chip shared-memory Ethernet switch | 24 10-Mbps, two 100-Mbps MII, all full duplex | Switching modes for store and forward, and fragment-free cut-through, broadcast isolation using MAC-based VLAN, supports flow control, 1.28 Mbps bus bandwidth, address learning, port mirroring with any-to-any relationship on all ports | CXD1700 pc board, $675, now | 3.3 |
| Texas Instruments | TNETX3100 desktop ThunderSwitch 8/2, 240-pin PQFP, $50 (10,000), now | Single-chip shared-memory switch | Eight 10-Mbps SNI, two 10/100-Mbps MII, all full duplex | Automatic source-address recognition, flow control on 10-Mbps ports, multiple levels of address support, supports unmanaged or managed networks, per-port Etherstat and RMON statistics, extendable address-look-up interface to TNETX15VE and 15AE | Reference kit, $2500, now | 3.3 |
| TNETX3150A ThunderSwitch 12/3, 352-pin BGA, $90 (10,000), now | Single-chip shared-memory switch | 12 10-Mbps SNI, three 10/100-Mbps MII, all full duplex | Automatic source-address recognition, flow control on 10-Mbps ports, multiple levels of address support, supports unmanaged or managed networks, per-port Etherstat and RMON statistics, extendable address-look-up interface to TNETX15VE and 15AE | Reference kit, $2500, now | 3.3 | |
| TNETX3270 ThunderSwitch 24/3, 240-pin PQFP, $100 (10,000), samples during the first quarter of 1998 | Single-chip shared-memory switch | 24 10 Mbps SNI, three 10/100-Mbps MII, all full duplex | 5-Gbps internal bandwidth; embedded CAM technology; 2048 addresses; synchronous interface to TI 3.3V, 10-Mbps Octal PHY; supports 32 VLANs; 1.2-Gbps memory bandwidth; 802.3x flow control; port trunking and load sharing | Reference kit, $2500, first quarter of 1998 | 2.5 | |
| TNETX15VE 144-pin QFP, $28 (10,000), now | External VLAN/address device, adding more addressing and VLAN capabilities for the TNETX3150A and TNETX3100 | NA | Provides as many as 2000 addresses, works with standard SRAM, auto-configurable through the EEPROM, management-drive I/O interface for PHY management, provides VLAN and spanning-tree support, works with TNETX3150, 3150A,3100 | NA | 2.5 | |
| TNETX15AE external address device, 144-pin QFP, $12 (10,000), now | Adding more addressing capabilities for the TNETX-3150A and TNETX3100 | NA | Provides as many as 8000 addresses, works with standard SRAM, auto-configurable through the EEPROM, management-driver I/O interface for PHY management, works with TNETX3150, 3150A,3100 | NA | 3.3 | |
| Vertex Networks | XpressFlow 2001 chip set, including SC-201 XpressFlow Engine, $39, 256-pin PQFP; EA-208E, $69, 352 pin BGA; EA-222, $39, 352-pin BGA; EA-224, $79, 352-pin BGA; all prices: 10,000-unit quantities, all sampling now | Ethernet/Fast Ethernet switch chip set, including eight-port, 10-Mbps EA-208E; six-port, 10-Mbps EA-208; two-port, 10/100-Mbps EA-222; four-port, 10/100-Mbps EA-224 | 60 ports, MII or SNI | 1.5-Mbps forwarding rate; turbo, safe cut-through, and store-and-forward switching modes; VLAN levels 1 and 2 and ID tagging support; multicast and broadcast; four-priority-level queuing per port; software for SNMP, RMON, full-duplex flow control, embedded HISC µP | Multiple reference designs, $3200 to $4000, now | 3.3 |
| XaQti | XQ18110FP GigaPower protocol accelerator, 240-pin PQFP, $80 (10,000), March 1998 | Full-rate, inline packet processing for switch and RMON acceleration | One 10/100/1000-Mbps, full duplex MII, GigaMII, or Fibre Channel | Programmable RISC uC engine for transmitting and receiving path enables concurrent IP forwarding (routing); MAC, VLAN, tag, and flow switching; hardware assistance for RMON II and 32- and 64-bit SNMP and RMON counters; 8-kbyte receiving and 4-kbyte transmitting FIFO buffers with flow control | NA | 3.3 |
| 1MII = media-independent interface; SNI = serial network interface. | ||||||