Presentation is loading. Please wait.

Presentation is loading. Please wait.

Bridging. Bridge Functions To extend size of LANs either geographically or in terms number of users. − Protocols that include collisions can be performed.

Similar presentations


Presentation on theme: "Bridging. Bridge Functions To extend size of LANs either geographically or in terms number of users. − Protocols that include collisions can be performed."— Presentation transcript:

1 Bridging

2 Bridge Functions To extend size of LANs either geographically or in terms number of users. − Protocols that include collisions can be performed in a collision domain of limited size. − In ring networks the number of stations is limited. To connect LANs that use different technologies To avoid using more costly routers

3 Data Link Layer Switching Multiple LANs connected by a backbone to handle a total load higher than the capacity of a single LAN.

4 Local Internetworking A configuration with four LANs and two bridges.

5 Bridges from 802.x to 802.y Operation of a LAN bridge from to

6 Bridges from 802.x to 802.y The IEEE 802 frame formats. The drawing is not to scale.

7 Bridges Various types of bridges − No-frills bridges − Learning bridges − Complete (Spanning Tree) bridges Complete bridges − Topology changes − Timeout procedure − Settable parameters VLANs

8 No-frills Bridges Serve to extend the size of a single LAN segment, i.e. the size of a collision domain. Bridge receives packets from all LANs attached to its ports. Bridge receives a packet, stores it, and broadcast it to all of its ports when they become idle, except to the port that received the packet. The total network capacity cannot exceed the capacity of a single LAN.

9 Learning Bridges Bridge receives packets from all LANs attached to its ports. Whenever a learning bridge receives a packet from some LAN, it reads the packet source address and stores the source and the corresponding port into the cache memory. Whenever a bridge receives a packet, it reads the packet destination address, and the port address to which the destination is attached from the cache memory, if the address is available. Bridge transmits the packet to the read port, or to all ports except to the receiving one, if the port address is not available. Cache entries are deleted after a specified timeout period.

10 Example of Learning Bridge Station A sends to station D B PORT 1PORT 2 A Q MD PORT 3

11 Example of Learning Bridge Station A sends to station D ZC B PORT 1PORT 2 A Q MD A PORT 3

12 Example of Learning Bridge Station D sends to station A B PORT 1PORT 2 A Q MD A ZC PORT 3

13 Example of Learning Bridge Station D sends to station A B PORT 1PORT 2 A Q MD A ZC D PORT 3

14 Example of Learning Bridge Station Q sends to station A B PORT 1PORT 2 A Q MD A ZC D PORT 3

15 Example of Learning Bridge Station Q sends to station A B PORT 1PORT 2 A Q MD A ZC DQ PORT 3

16 Example of Multiple Learning Bridges A B1 T B2 MDQ K A Q PORT 1 K D M T PORT 2 D Q M A PORT 1 T K PORT 2 LAN2LAN1 LAN3

17 B1B2B3 LAN1 LAN2 A Topology with Loops

18 Learning Bridges with Loops All three bridges receive a packet, note that station A is on LAN1, and queue the packet for transmission. Say bridge 3 is the first to transmit the packet onto LAN2. Bridges 1 and 2 view the packet as it is transmitted on LAN2, note that A is now on LAN2, and queue the packet. Say bridge 1 now transmit the first received packet onto LAN2. Bridge 3 note that the packet is on LAN2 and queue the packet. The number of packets transmitted on the network exponentially increases.

19 Complete Bridges Complete bridges are defined by IEEE standard. They run spanning tree algorithm to exclude loops. A tree comprising bridges is calculated, and these bridges send messages toward the tree root. Tree is formed in a distributed way, each bridge sends configuration messages, and each bridge forwards only the best configuration message. The procedure stops when all bridges forward the same configuration message.

20 Spanning Tree Bridges (a) Interconnected LANs. (b) A spanning tree covering the LANs. The dotted lines are not part of the spanning tree.

21 Spanning Tree (ST) Algorithm Based on the information from the configuration messages, bridges calculate the spanning tree. Bridges choose the bridge to be the tree root. Bridges calculate the number of hops to the tree root. For each LAN, the designated bridge is determined, which forwards packets to the root. Designated bridge determines the root port through which it forwads packets to the root.

22 Configuration Message Configuration message format DSAP=SSAP= Configuration message comprises tree root ID, cost of forwarding (the number of hops from the tree root), transmitting bridge ID, port ID at the transmitting bridge, settable parameters. Destination Source DSAP SSAP configuration message

23 Best Configuration Message The best configuration message has the lowest root ID. If multiple messages have the same root ID, the best message has the lowest cost. If multiple messages have the same root ID, and the same cost, the best message has the lowest transmitting bridge ID. If multiple messages have these three values the same, the best one has the lowest port ID on the transmitting bridge. RootCostBridge Port Port Port Port 2 becomes a root port, and forwards messages to ports 1 and 3

24 Best Configuration Message RootCostBridge Port Port Port Root bridge is 12, given bridge B becomes designated bridge for LANs attached to its ports 1 and 3, the bridge port 2 becomes a root port, and forwards configuration messages to ports 1 and 3, cost (the number of hops) is incremented by 1 becoming 86 and updated in the configuration message which is then forwarded.

25 Example of ST Algorithm Bridge B92 receives the configuration messages B92 PORT 1 PORT 3 PORT 2PORT 4 PORT

26 Example of ST Algorithm Bridge B92 receives the configuration messages B92 PORT 1 PORT 3 PORT 2PORT 4 PORT

27 Refinements of ST Algorithm Failures of the links or bridges must be detected by the downstream bridges. Root bridge sends configuration messages reapetedly. Configuration messages have age, and maximum age. Changes of the topology because of failures or new equipment are announced with the special messages. Upstream bridges acknowledge those notifications. Changes of topology should not introduce loops. For this reason preforwarding time is introduced. Cache values with the positions of the stations should be regularly updated. So, cache is deleted after timeout period.

28 protocol identifier version message type TCA reserved TC root ID cost of path to root bridge ID port ID message age max age hello time forward delay broj okteta Configuration Message Format Topology Change Flag Topology Change Ack Flag

29 protocol identifier version message type broj okteta Topology Change Notification Message Format

30 Topology Change Due to Failures Root transmits configuration messages with age equal to 0 once per each hello time. Root also specifies the maximum age. Each bridge increments message age field in each slot of a specified duration. It sends this message every hello time. When the message age exceeds the maximum age, the bridge discards the configuration message in question, and recalculates the spanning tree.

31 Example of Failure Configuration message at root port 4 expires, and port 3 becomes a root port. B92 PORT 1 PORT 3 PORT 2PORT 4 PORT

32 Example of Failure Configuration message at root port 3 expires, and port 5 becomes a root port. B92 PORT 1 PORT 3 PORT 2PORT 4 PORT

33 Example of Failure Configuration message at root port 5 expires, and bridge B92 becomes a root bridge. B92 PORT 1 PORT 3 PORT 2PORT 4 PORT

34 Notification of Topology Change Topology changes when a bridge or a link fails, or a new bridge or a new link is added to the network. Bridge that notices the topology change sends the topology change notification message on its root port to the upstream bridge, once per hello time, until the upstream bridge acknowledges the receipt of the topology change notification message. Topology change notification messages are propagated in this way bridges in the tree to the root bridge. Root then sets topology change flag in the configuration messages that it sends downstream.

35 Avoiding Loops as Topology Changes Loops can be formed in transient intervals when there are topology changes. When topology changes a new tree is calculated. Some bridges might turn on before the others turn off, and loop can be formed. Before some bridge start forwarding, it waits during the time interval sufficient for all bridges to get the information about new spanning tree. Waiting time is divided into listening and learning intervals. During the listening interval, the bridge only forwards configuration messages. During the learning interval, the bridge receives messages only to learn about the positions of the stations, but does not forward them.

36 Cache Duration Because placement of stations changes, the cache entries linking stations and ports should be deleted occassionaly, after the cache timeout period. Cache timeout period should be as long as several minutes. But, when the bridges get the configuration messages with the topology change flag set, they set the cache timeout period to the forwarding delay.

37 Settable Parameters Bridge and the port priorities: two and one octet respectively. Hello time: the time that elapses between two consecutive configuration messages, or between consecutive topology change notification messages. Recommended 2s. Max age: the configuration message age value for which it is discarded as too old. Recommended value 20s, 2s per hop.

38 Settable Parameters Forward delay: the duration of the listening modes, and the learning mode before a bridge starts forwarding data. It is half the time needed for the topology information to spread. Recommended value 30s. Long cache timer: recommended 5min. Path cost: the cost to be added to the cost field at some bridge.

39 Problems of Bridging The probability of packet loss increases. The delay increases. Error rate increases when CRC is changed. Packet reordering when the tree is reconfigured. Packet duplication because of temporary loops. Stations cannot use the maximum packet size. LAN specific information such as priority may be lost. Unexpected packet format conversion may occur.

40 Virtual LAN (VLAN) VLAN is equivalent to the broadcast domain. Motivations for VLANs are: separation of broadcast domains, moving stations without changing their IP addresses, security. Multiple VLANs can be attached to one packet switch. Stations attached to one port may belong to one or more VLANs. Packet travelling between switches have VLAN tag comprising 2 bytes.

41 Virtual LANs (a) Four physical LANs organized into two VLANs, gray and white, by two bridges. (b) The same 15 machines organized into two VLANs by switches.

42 The IEEE 802.1Q Standard The (legacy) and 802.1Q Ethernet frame formats.


Download ppt "Bridging. Bridge Functions To extend size of LANs either geographically or in terms number of users. − Protocols that include collisions can be performed."

Similar presentations


Ads by Google