2. LAN SwitchingTop 10 Graphics:
Ethernet:
CSMA/CD - Carrier sense multiple access with collision detect: Media-access mechanism where devices listen for a carrier before transmitting; if no carrier is sensed for a specific period of time, a device can transmit. If two devices transmit at once, a collision occurs and is detected by all colliding devices. Collisions delay retransmission for a random length of time. CSMA/CD access is used by Ethernet and IEEE 802.3. IEEE 802.3 - IEEE LAN protocol that specifies an implementation of the physical layer and the MAC sublayer of the data link layer. IEEE 802.3 uses CSMA/CD access over a variety of physical media. Extensions to the IEEE 802.3 standard specify implementations for Fast Ethernet (IEEE 802.3u). Variations of the original IEEE 802.3 specification include 10Base2, 10Base5, 10BaseF, 10BaseT, 10Broad36, 100BaseTX, 100BaseT4, and 100BaseFX. The performance of a shared media Ethernet/802.3 LAN can be negatively effected by several factors:
Latency:
Repeater - Layer 1 device that regenerates and propagates electrical signals between two network segments. Half-Duplex Ethernet Design (Standard Ethernet)
Bandwidth - The difference between the highest and lowest frequencies available for network signals. The term is also used to describe the rated throughput capacity of a given network medium or protocol. Congestion - Traffic in excess of network capacity. This can be seen in slower response times, longer file transfers and network users becoming less productive due to network delays. Propagation delay comes from the amount of time it takes a data frame to travel across the physical media and from the time it takes for a frame to pass through a network device such as a repeater. This latency is the total of all the delays caused by the network devices and media as the frame moves from on device to another. The 'transmission time' is the time it takes the frame or packet to move from the data link layer - the data being placed into a packet or frame, to the physical layer - onto the physical cabling of the network. Each Ethernet bit has a 100ns window for transmission. A byte is equal to eight bits. Therefore, one byte takes a minimum of 800ns to transmit (8 bits at 100ns per equals 800ns). A 64 byte frame takes 51,200ns or 51.2 microseconds to transmit (64 bytes at 800ns equals 51,200ns, 51,200ns/1000 equals 51.2 microseconds). Attenuation - Loss of communication signal energy. The signal weakens as it travels through the network from the resistance found in the medium. An Ethernet repeater is a physical layer device on the network that boosts or regenerates the signal on an Ethernet LAN.
Hub (multiport repeater)
Improving LAN performance
Collision domain - In Ethernet, the network area within which frames that have collided are propagated. Repeaters and hubs propagate collisions; LAN switches, bridges and routers do not. Bridge - Device that connects and passes packets between two network segments that use the same communications protocol. Bridges are passive on the network and operate at the 2-Data link layer (layer 2) of the OSI reference model. In general, a bridge will filter, forward, or flood an incoming frame based on the MAC address of that frame.
Store and forward packet switching - Packet-switching technique in which frames are completely processed before being forwarded out the appropriate port. This processing includes calculating the CRC and checking the destination address. In addition, frames must be temporarily stored until network resources (such as an unused link) are available to forward the message. Interface:
Router - operates at the 3-Network layer and bases all of its forwarding decision between segments on the Layer 3 protocol address. It accomplishes this by examining the destination address on the data packet and looking in its routing table for forwarding instructions. 3-Network layer device that uses one or more metrics to determine the optimal path along which network traffic should be forwarded. Routers forward packets from one network to another based on network layer information. Occasionally called a gateway (although this definition of gateway is becoming increasingly outdated).
Acknowledgment - Notification sent from one network device to another to acknowledge that some event (for example, receipt of a message) has occurred. Sometimes abbreviated ACK. Protocols that require an 'acknowledgement' from the receiver to the sender for every packet as it is delivered (known as acknowledgement oriented protocols) have a loss of throughput of 30-40%. Protocols that require minimal acknowledgements (sliding window protocols) suffer a 20-30% loss of throughput. Switch - Network device that filters, forwards, and floods frames based on the destination address of each frame. The switch operates at the 2-Data link layer of the OSI model. A LAN which uses a switched Ethernet topology creates a network that behaves like it only has two nodes - the sending node and the receiving node.
Because of the switching employed, the MAC address of the destination device is read and the switch begins transmitting the packet before the total packet arrives in the switch. This more than makes up for the inherent latency found in the switch. Full-duplex Ethernet: Full duplex Ethernet allows the transmission of a packet and the reception of a different packet at the same time. This simultaneous transmission and reception requires two pairs of cables and a switched connection between each node. This connection is considered point-to-point and is nearly collision free. Since both nodes can transmit and receive at the same time there are no negotiations for bandwidth. Full duplex Ethernet can use an existing shared media as long as the media meets minimum Ethernet standards.
The Full-Duplex Ethernet Switch (FDES) takes advantage of the two pairs of required cables in this configuration by creating a direct connection between the transmit (TX) at one end of the circuit to the receive (RX) end of the other circuit. The same holds true for the opposite circuits on each end. With these two stations connected this way a collision free domain is created. Both stations are not sharing the same wiring pair to transmit and receive.
Standard Ethernet usually can only use 50-60% of the 10Mbps available bandwidth. This is due to collisions and latency. Full duplex Ethernet offers 100% of the bandwidth in both directions. This produces a potential 20Mbps throughput - 10Mbps TX and 10Mbps RX. Layer 2 LAN SwitchLAN switches are considered 'multiport bridges' with no 'collision domain' because of 'microsegmentation'. Data is exchanged at high speeds by switching the packet to its destination.
Microsegmentation - Division of a network into smaller segments, usually with the intention of increasing aggregate bandwidth to network devices. Ethernet switching increases the bandwidth available on a network. It does this by creating dedicated network segments (point-to-point connections) and connecting those segments in a virtual network within the switch. This virtual network circuit exists only when two nodes need to communicate. Virtual circuit - Logical circuit created to ensure reliable communication between two network devices. A virtual circuit is defined by a VPI/VCI pair, and can be either permanent (a PVC) or switched (an SVC). Virtual circuits are used in Frame Relay and X.25. In ATM, a virtual circuit is called a virtual channel. Sometimes abbreviated VC . Even though the LAN switch eliminates 'collision domains', all hosts connected to the switch are still in the same 'broadcast domain' . Therefore a broadcast from one node will still be seen by all other nodes connected through the LAN switch. An Ethernet switch 'learns' addresses by:
Addresses are learned 'dynamically' - as new addresses are read they are learned and stored in 'content addressable memory' (CAM). Each time an address is stored it is time stamped and stored for a set period of time. Each time an address is referenced or found in the CAM, it receives a new time stamp. Addresses that are not referenced during set period of time are removed from the list. By removing aged or old addresses the CAM maintains an accurate and functional forwarding database. Parallelism - Indicates that multiple paths exist between two points in a network. These paths might be of equal or unequal cost. Parallelism is often a network design goal: if one path fails, there is redundancy in the network to ensure that an alternate path to the same point exists. Symmetrical LAN Switch:
Asymmetric LAN Switch:
Memory Buffering - An Ethernet switch may use a buffering technique to store-and-forward packets to the correct port or ports. This memory buffer can make use of two methods for forwarding packets
'Store and forward' packet switching - Packet-switching technique in which frames are completely processed before being forwarded out the appropriate port. This processing includes calculating the CRC and checking the destination address. In addition, frames must be temporarily stored until network resources (such as an unused link) are available to forward the message. 'Cut-through' packet switching - Packet switching approach that streams data through a switch so that the leading edge of a packet exits the switch at the output port before the packet finishes entering the input port. A device using cut-through packet switching reads, processes, and forwards packets as soon as the destination address is looked up, (first 16 bytes) and the outgoing port determined. Also known as on-the-fly packet switching.
'Spanning-Tree Protocol' (STP) - Bridge protocol that utilizes the spanning-tree algorithm, enabling a learning bridge to dynamically work around loops in a network topology by creating a spanning tree. Bridges exchange bridge protocol data unit (BPDU) messages with other bridges to detect loops, and then remove the loops by shutting down selected bridge interfaces. Refers to both the IEEE 802.1 Spanning-Tree Protocol standard and the earlier Digital Equipment Corporation Spanning-Tree Protocol upon which it is based. The IEEE version supports bridge domains and allows the bridge to construct a loop-free topology across an extended LAN.
A switch uses STP on all Ethernet and Fast Ethernet-based VLANs. STP detects and breaks loops by placing some connections in a standby mode, which are activated in the event of an active connection failure. A separate instance of STP runs within each configured VLAN, ensuring Ethernet topologies that conform to industry standards throughout the network. The supported STP states are as follows:
Unicast - Message sent to a single network destination. Broadcast - Data packet that will be sent to all nodes on a network. Broadcasts are identified by a broadcast address. Multicast - Single packets copied by the network and sent to a specific subset of network addresses. These addresses are specified in the destination address field. VLANAn Ethernet switch is designed to physically segment a LAN into individual collision domains. However, each segment is still part of one broadcast domain. The total number of segments on a switch equals one broadcast domain. This means that a broadcast from a node on one segment is seen by all nodes on all other segments. Virtual Local Area Networks (VLANs) are a grouping of network devices or users that is not restricted to a physical switch segment. A VLAN is a logical grouping of devices or users. A VLAN creates a single broadcast domain that is not restricted to a physical segment and is treated like a subnet. VLAN setup is done in the switch via software. VLANs are not standardized and require the use of proprietary software from the switch vendor.
|