1 / 52

1587: COMMUNICATION SYSTEMS 1 Local Area Networks

1587: COMMUNICATION SYSTEMS 1 Local Area Networks. Dr. George Loukas. University of Greenwich , 2012-2013. Errors Quick revision: Prevention. Simple Parity. Hamming Distance. PREVENT. LRC. Reduce the probability of errors happening: Improve cable’s shielding Replace older equipment

dana
Télécharger la présentation

1587: COMMUNICATION SYSTEMS 1 Local Area Networks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 1587: COMMUNICATION SYSTEMS 1Local Area Networks Dr. George Loukas University of Greenwich, 2012-2013

  2. Errors Quick revision: Prevention Simple Parity Hamming Distance PREVENT LRC • Reduce the probability of errors happening: • Improve cable’s shielding • Replace older equipment • Reduce the transmission speed • For wireless: Stay away from devices sharing the same wireless frequencies • ... CRC Forward Error Correction DETECT CONTROL Stop and Wait Sliding Window Retransmit Go-back-N Selective Reject Do nothing

  3. Errors Quick revision: Detection Simple Parity 1 Hamming Distance PREVENT 1001011 LRC For odd (or even) parity, ensure that number of 1s is odd (or even) CRC Forward Error Correction DETECT CONTROL Stop and Wait Parity checks along all rows and columns Sliding Window Retransmit 101001101 Go-back-N 1101011 1 Selective Reject Do nothing 1111111 1 Example LRC even parity 1·x8+0·x7+1·x6+0·x5+0·x4+1·x3+1·x2+0·x1+1·x0 0101010 1 0 0011011 Convert to polynomial and remainder of division with another given generating polynomial must be 0 1 0100101

  4. Errors Quick revision: Control - Retransmit Sender Receiver data sent DATA Simple Parity Hamming Distance data received OK PREVENT LRC CRC Forward Error Correction ACK sent DETECT ACK ACK received CONTROL DATA Stop and Wait data received with error data sent Sliding Window Retransmit Go-back-N NACK sent NACK Do nothing Selective Reject • Stop-and-Wait: Transmit one frame at time and wait for ACK before sending next • Sliding Window: Transmit up to W frames before receiving an ACK. • Go-back-N: Transmit up to W frames before receiving an ACK, but if a NACK arrives for a frame retransmit from that frame and on. • Selective-Reject: Transmit up to W frames before receiving an ACK, but if a NACK arrives for a frame retransmit only that frame. NACK received DATA data re-sent data received OK

  5. Errors Quick revision: Control - Correct Hamming Distance Hamming Distance Simple Parity PREVENT LRC DATA CRC Forward Error Correction DETECT No error or correctable error CONTROL Stop and Wait Sliding Window Retransmit decoder Error detectable but not correctable Go-back-N Selective Reject Do nothing Hamming Distance = D + C +1 Hamming Distance of a code is the minimum number of bits by which two characters of this code can differ DATA + check bits Receiver Number of errors we can detect e.g. here hamming distance = 2 Number of errors we can correct

  6. Networks Digital transmission over a distance Network of nodes 50 km 50 km

  7. Type of network by area covered Metropolitan Area Network Wide Area Network Internet WAN MAN Personal Area Network LAN PAN Local Area Network BAN Body Area Network

  8. Local Area Networks • owned by the organisation that uses it • a variety of devices can be attached to it • internal data rates tend to be high • a significant capital investment Architecture depends on: LAN Local Area Network TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING

  9. TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING STAR BUS RING TREE

  10. BUS TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING BUS • transmission from any station is received by all other stations tap terminator terminator bus

  11. TREE BUS TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • generalisation of the bus topology • transmission from any station is received by all other stations TREE headend

  12. TREE BUS RING TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • a closed loop of repeaters joined by point to point links • receive data on one link & retransmit on another (links unidirectional and stations attach to repeaters) • data in frames • circulate past all stations • destination recognises address and copies frame • frame circulates back to source where it is removed – very high speed links over long distances – single link or repeater failure disables network RING

  13. TREE STAR BUS RING TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • each station connects to central node • central node can broadcastor act as frame switch • only one station can transmit at a time STAR – uses natural layout of wiring in building – best for short distances – high data rates for small number of devices

  14. TREE STAR BUS RING TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • each station connects to central node • central node can broadcast or act as frame switch • only one station can transmit at a time STAR – uses natural layout of wiring in building – best for short distances – high data rates for small number of devices

  15. TREE STAR BUS RING TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • The real topology is usually a combination of Bus, Tree, Ring and Star topologies. • Choice of topology depends on • reliability • expandability • performance • Need to consider in context of: • transmission medium, wiring layout and access control

  16. TREE STAR BUS RING TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • Key factors for choosing transmission medium: • Cost per meter and cost of installation • Speed (number of bits per second that can be transmitted reliably) • Attenuation (the signal weakens and is distorted by the medium itself) • Electromagnetic Interference • Types of data supported • Reliability • Security

  17. Twisted Pair TREE STAR BUS RING GUIDED TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • Twisted pair • Oldest option but still the most popular, esp. Cat 5 • very cheap • thin and flexible • can run for several km without amplification • typically used in Star topologies • but • a bit fragile

  18. Twisted Pair TREE Coaxial STAR BUS RING GUIDED TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • Coaxial cable • greater transmission capacity than twisted pair • less prone to interference than twisted pair • but • heavy and expensive • pretty rare today • can be baseband or broadband (transmission over a single or multiple frequencies)

  19. Opt. Fibre Twisted Pair TREE Coaxial STAR BUS RING GUIDED TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • Optical Fibre • thin and light • high speed - used in backbone networks • repeaters needed every 30 km compared to 5 km for copper • low error rates (not affected by power-surges or electro-magnetic interference) • hard to wire-tap

  20. Opt. Fibre Twisted Pair Wireless TREE Coaxial STAR BUS RING GUIDED UNGUIDED TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • Wireless • Useful when on the move or where it is physically difficult to lay cables • Technologies: • spread spectrum technology • narrowband, high frequency radio • infra-red

  21. Opt. Fibre Twisted Pair Wireless TREE Coaxial STAR BUS RING GUIDED UNGUIDED TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • Some examples: • Token Bus / Token Ring • CSMA-CD

  22. Opt. Fibre TOKEN RING Twisted Pair Wireless TREE Coaxial STAR BUS RING GUIDED UNGUIDED TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • TOKEN RING • Developed by IBM in the early 1980s. • Based on the principle of taking turns, using tokens to control access • Each station may only transmit during its turn and can only send one frame per turn • A token is a bit sequence. • For example: When a node wants to transmit: – Waits for free token – Removes free token from ring and replaces with busy token – Transmits message – When done transmitting, replaces busy token with free token Busy token: 01111111 Free token: 01111110

  23. Opt. Fibre TOKEN RING Twisted Pair Wireless TREE Coaxial STAR BUS RING GUIDED UNGUIDED TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING FREE BUSY DATA

  24. Opt. Fibre TOKEN RING Twisted Pair Wireless TREE Coaxial STAR BUS RING GUIDED UNGUIDED TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING

  25. Opt. Fibre TOKEN RING Twisted Pair Contention-based protocols: CSMA Wireless TREE Coaxial STAR BUS RING CSMA GUIDED UNGUIDED TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING Stations listen for clear medium (carrier sense) • if medium idle, transmit • if two stations start at the same instant, collision • wait reasonable time • if no ACK then retransmit Utilisation depends on propagation time (medium length) and frame length (Carrier Sense Multiple Access)

  26. Opt. Fibre TOKEN RING Twisted Pair Wireless TREE Coaxial STAR BUS RING CSMA CSMA/CD GUIDED UNGUIDED TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • With CSMA, collision occupies medium for duration of transmission • Better if stations listens while transmitting • CSMA/CD rules: • if medium idle, transmit • if busy, listen for idle, then transmit • if collision detected, jam and then cease transmission • after jam, wait random time then retry

  27. CSMA/CDOperation t0 t1 t2 t3

  28. Opt. Fibre TOKEN RING Twisted Pair Collision Detection Wireless TREE Coaxial STAR BUS RING CSMA CSMA/CD GUIDED UNGUIDED TOPOLOGY TRANSMISSION MEDIUM METHOD OF SHARING • on twisted pair (star-topology) • activity on more than one port is collision • use special collision presence signal • on baseband bus • collision produces higher signal voltage • collision detected if cable signal greater than single station signal • signal is attenuated over distance • IEEE standard for coaxial cable limits: 500m for 10Base5 and 185m for 10Base2)

  29. Original 10-Mbps Ethernets

  30. LAN protocols ... Ethernet (CSMA/CD) Carrier Sense Multiple Access with Collision Detection Most widely used LAN standard (IEEE 802.3) Developed by Xerox in the 1970s and standardised in 1985

  31. LANs in the OSI model The OSI model LAN protocols focus on the Data Link and Physical Layer Application Layer Presentation Layer data IEEE 802 – interface to higher layers – flow control and detection and retransmission of dropped packets Session Layer Transport Layer Data Link segments – interface between LLC and the Physical Layer – assembles and disassembles frames Network Layer packets LLC sublayer (logical link control) Data Link Layer MAC sublayer (media access control) frames – encoding/decoding of signals – bit transmission/reception – transmission medium and topology Physical Layer Physical Layer bits

  32. LAN protocols: IEEE 802.3 Frame Format • Preamble: Used by the receiver for synchronisation. • Start Frame Delimiter (SFD): The sequence 10101011, which indicates the actual start of the frame. • Destination Address (DA): The station(s) for which the frame is intended. • Source Address (SA): The station that sent the frame. • Length/Type: Length of LLC data field in octets or Ethernet Type field. • LLC Data: Data supplied by LLC. • Pad: Octets added to ensure that the frame is long enough for proper Collision Detection. • Frame Check Sequence (FCS): A 32-bit Cyclic Redundancy Check for detection of errors

  33. 5 minutes

  34. Internetworking A single network is not always possible or preferable, especiallyfor large and widely dispersed organisations. By linking networks together, we can create a larger and more suitable network. Some basic types of components are needed: REPEATER HUB BRIDGE SWITCH ROUTER GATEWAY

  35. Internetworking: Repeater A repeater connects two segments of a network at the physical layer (it physically retransmits the signals) or extends the distance limitation of the cable Hubs are multi-port repeaters. When a data frame arrives at one port, it is broadcast to all other ports so that all segments of the LAN can see all frames. 100 m 100 m Bandwidth shared between the ports. A 10/100 Mbps hub will allocate a total of 10/100 Mbps to its ports REPEATER HUB BRIDGE SWITCH ROUTER GATEWAY

  36. Two Level Hub Topology REPEATER HUB BRIDGE SWITCH ROUTER GATEWAY

  37. Internetworking: Bridge A bridge interconnects two similar LANs • Used where extending with repeaters is not enough • Does not modify the format or content of frames • Operates in the data link layer Switches are multi-port bridges A 10/100 Mbps hub will allocate 10/100 Mbps to each of its ports REPEATER HUB BRIDGE SWITCH ROUTER GATEWAY

  38. Bridge Vs. Switch • bridges handle frames in software, while switches in hardware • bridges handle one frame at a time, while switches multiple • bridges use store-and-forward operation, while switches can have cut-throughoperation (can start forwarding a frame before the whole of the frame has been received) REPEATER HUB BRIDGE SWITCH ROUTER GATEWAY

  39. BRIDGE SWITCH REPEATER HUB BRIDGE SWITCH ROUTER GATEWAY

  40. Routing Alternative routes Why? For load balancing and fault tolerance Based on what criteria? Min-hop, delay, bandwidth et. REPEATER HUB BRIDGE SWITCH ROUTER GATEWAY

  41. Routing: Spanning Tree Algorithm For any connected graph there is a spanning tree maintaining connectivity with no closed loops IEEE 802.1 Spanning Tree Algorithm • Each bridge is assigned unique identifier • Exchanges info between bridges to find spanning tree • Is automatically updated whenever topology changes

  42. MAC address • unique 48-bit address which is hardwired into each network card • MAC address is linked to an IP address for use over the Internet • ARP Address Resolution Protocol – dynamic mapping table • determines whether a route to a destination exists 00-1C-C2-1B-A1-D4

  43. Internetworking: Router Gateway is a network node equipped for interfacing with another network that uses different protocols Acts as entrance to other networks. A router routes packets to other networks Nowadays routers typically include the functionality of a switch (or hub), gateway etc. Typically connected to two LANs or a LAN and the Internet Service Provider (ISP) They use a variety of protocols to route packets REPEATER HUB BRIDGE SWITCH ROUTER GATEWAY

  44. Internetworking: Why bother? Why not have one big LAN? Reliability Faults would spread throughout the network Security Different types of users/information would all use the same network Cost / Geography Too expensive to build a LAN over a large geographical area REPEATER HUB BRIDGE SWITCH ROUTER GATEWAY

  45. High-Speed LANs Why?

  46. High-Speed LANs: Types Gigabit Ethernet Fibre Channel High-speed Wi-Fi • Wireless • Very convenient • Increasingly popular • But easy to eavesdrop and often unreliable • Extension of the older 10-Mbps and 100-Mbps CSMA/CD • No need to change previous infrastructure • Low cost • Easily scalable • Needs new infrastructure

  47. High-Speed LANs: Typical Gigabit topology Gigabit Ethernet • Extension of the older 10-Mbps and 100-Mbps CSMA/CD • No need to change previous infrastructure

  48. High-Speed LANs: Gigabit Ethernet types Gigabit Ethernet • Extension of the older 10-Mbps and 100-Mbps CSMA/CD • No need to change previous infrastructure

  49. High-Speed LANs: 10-Gigabit Ethernet types Gigabit Ethernet • Extension of the older 10-Mbps and 100-Mbps CSMA/CD • No need to change previous infrastructure

  50. High-Speed LANs: Fibre Channel Fibre Channel • Used more often for Storage Area Networks • Usually 2 – 16 Gbps • Can run on both twisted pair copper wire and fibre-optic cables • Topologies: Point-to-Point, Arbitrated Loop, Switched Fabric • Low cost • Easily scalable • Needs new infrastructure

More Related