信息通信网络概论课件:Chapter6-MediumAccessControl-LAN-2_第1页
信息通信网络概论课件:Chapter6-MediumAccessControl-LAN-2_第2页
信息通信网络概论课件:Chapter6-MediumAccessControl-LAN-2_第3页
信息通信网络概论课件:Chapter6-MediumAccessControl-LAN-2_第4页
信息通信网络概论课件:Chapter6-MediumAccessControl-LAN-2_第5页
已阅读5页,还剩69页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Chapter 6 Medium Access Control protocols and Local Area Networks,Part II: Overview of LANs Ethernet Token Ring 802.11 Wireless LAN 802.16 Wireless MAN LAN Bridges,Chapter 5 Peer-to-Peer Protocols and Data Link Layer,Overview of LANs,What is a LAN?,Local area means: Private ownership freedom from re

2、gulatory constraints of WANs Short distance (1km) between computers low cost very high-speed, relatively error-free communication complex error control unnecessary Machines are constantly moved Keeping track of location of computers a chore Simply give each machine a unique address Broadcast all mes

3、sages to all machines in the LAN Need a medium access control protocol,Typical LAN Structure,ROM,Ethernet Processor,Transmission Medium Network Interface Card (NIC) Unique MAC “physical” address,LAN topology,Terminator,Hub,BUS,STAR,TREE,RING,Medium Access Control Sublayer,In IEEE 802.1, Data Link La

4、yer divided into: 1. Medium Access Control Sublayer Coordinate access to medium Connectionless frame transfer service Machines identified by MAC/physical address Broadcast frames with MAC addresses 2. Logical Link Control Sublayer Between Network layer & MAC sublayer,MAC Sub-layer,IEEE 802 Serial St

5、andards,Logical Link Control Layer,IEEE 802.2: LLC enhances service provided by MAC,Logical Link Control Services,Type 1: Unacknowledged connectionless service Unnumbered frame mode of HDLC Type 2: Reliable connection-oriented service Asynchronous balanced mode of HDLC Type 3: Acknowledged connectio

6、nless service Additional addressing A workstation has a single MAC physical address Can handle several logical connections, distinguished by their SAP (service access points).,LLC PDU Structure,1,Source SAP Address,Information,1,Control,1 or 2 bytes,Destination SAP Address,Source SAP Address,I/G,7 b

7、its,1,C/R,7 bits,1,I/G = Individual or group address C/R = Command or response frame,Destination SAP Address,1 byte,Examples of SAP Addresses: 06 IP packet E0 Novell IPX FE OSI packet AA SubNetwork Access protocol (SNAP),Encapsulation of MAC frames,IP,LLC PDU,IP Packet,Chapter 5 Peer-to-Peer Protoco

8、ls and Data Link Layer,802.3 Ethernet,A bit of history,1970 ALOHAnet radio network deployed in Hawaiian islands 1973 Metcalf and Boggs invent Ethernet, random access in wired net 1979 DIX Ethernet II Standard 1985 IEEE 802.3 LAN Standard (10 Mbps) 1995 Fast Ethernet (100 Mbps) 1998 Gigabit Ethernet

9、2002 10 Gigabit Ethernet Ethernet is the dominant LAN standard,1、IEEE 802.3 MAC: Ethernet,MAC Protocol: CSMA/CD Slot Time is the critical system parameter Truncated binary exponential backoff for retransmission n: 0 = r 2k-1, where k=min(n,10) Give up after 16 retransmissions,B send data to D,C,D,A,

10、E,匹配电阻(用来吸收总线上传播的信号),匹配电阻,No,No,No,Accept,B,CSMA/CD collision detection,Stations can transmit jamming signals when collision be detected,IEEE 802.3 Original Parameters,Transmission Rate: 10 Mbps Min Frame: 512 bits = 64 bytes Why? Slot time: 512 bits/10 Mbps = 51.2 sec 51.2 sec x 2x105 km/sec =10.24

11、 km, 1 way 5.12 km round trip distance Max Length: 2500 meters + 4 repeaters Each x10 increase in bit rate, must be accompanied by x10 decrease in distance,IEEE 802.3 MAC Frame,Preamble,SD,Destination address,Source address,Length,Information,Pad,FCS,7,1,6,6,2,4,64 - 1518 bytes,Synch,Start frame,802

12、.3 MAC Frame,Every frame transmission begins “from scratch” Preamble helps receivers synchronize their clocks to transmitter clock 7 bytes of 10101010 generate a square wave Start frame byte changes to 10101011 Receivers look for change in 10 pattern,IEEE 802.3 MAC Frame,IEEE 802.3 MAC Frame,Length:

13、 # bytes in information field Max frame 1518 bytes, excluding preamble & SD Max information 1500 bytes: 05DC Pad: ensures min frame of 64 bytes FCS: CCITT-32 CRC, covers addresses, length, information, pad fields NIC discards frames with improper lengths or failed CRC,DIX Ethernet II Frame Structure

14、,DIX: Digital, Intel, Xerox joint Ethernet specification Type Field: to identify protocol of PDU in information field, e.g. IP, ARP Framing: How does receiver know frame length? physical layer signal,IEEE 802.3 Physical Layer,Table 6.2 IEEE 802.3 10 Mbps medium alternatives,Thick Coax: Stiff, hard t

15、o work with,T connectors flaky,Hubs & Switches!,Physical Layer (Cont.),Manchester Encoding used in 802.3 Naming 10Base5 10Base2 10BaseT,0,0,1,0,1,0,1,1,0,Clock,Physical Layer (Cont.),Ethernet Hubs & Switches,Twisted Pair Cheap Easy to work with Reliable Physically Star-topology CSMA-CD Works like bu

16、s topology,No collisions unless multiple stations share same input line,Fast Ethernet,Table 6.4 IEEE 802.3 100 Mbps Ethernet medium alternatives,To preserve compatibility with 10 Mbps Ethernet: Same frame format, same interfaces, same protocols Hub topology only with twisted pair & fiber Bus topolog

17、y & coaxial cable abandoned Category 3 twisted pair (ordinary telephone grade) requires 4 pairs Category 5 twisted pair requires 2 pairs (most popular) Most prevalent LAN today,Gigabit Ethernet,Table 6.3 IEEE 802.3 1 Gbps Fast Ethernet medium alternatives,Slot time increased to 512 bytes (rather tha

18、n 64 bytes) Small frames need to be extended to 512 B Frame bursting to allow stations to transmit burst of short frames Frame structure preserved but CSMA-CD essentially abandoned Extensive deployment in backbone of enterprise data networks and in server farms,10 Gigabit Ethernet,Table 6.5 IEEE 802

19、.3 10 Gbps Ethernet medium alternatives,Frame structure preserved CSMA-CD protocol officially abandoned LAN PHY for local network applications WAN PHY for wide area interconnection using SONET OC-192c Extensive deployment in metro networks anticipated,Typical Ethernet Deployment,Chapter 5 Peer-to-Pe

20、er Protocols and Data Link Layer,802.5 Token Ring,IEEE 802.5 Ring LAN,Unidirectional ring network 4 Mbps and 16 Mbps on twisted pair Differential Manchester line coding Token passing protocol provides access Fairness Access priorities Breaks in ring bring entire network down Reliability by using sta

21、r topology,Star Topology Ring LAN,Stations connected in star fashion to wiring closet Use existing telephone wiring Ring implemented inside equipment box Relays can bypass failed links or stations,Chapter 5 Peer-to-Peer Protocols and Data Link Layer,802.11 Wireless LAN 802.16 WiMAX Cellular Mobile N

22、etworks,IEEE 802.11 Wireless LANs,ESS (Extended Service Set),A,B,DS (Distribution System),GW,Portal,802.x LAN,Internet,IEEE802.11b/a/g 54Mbps & 802.11n 240Mbps,Why NOT Wireless CSMA/CD ?,three main reasons: (1) difficult to detect collision in radio environment transmitting power overwhelms receivin

23、g power at the same station (2) Hidden terminal problem transmitting stations out of each others range (undetectable) (3) Exposed terminal problem - transmitting stations INSIDE each others range, but not receivers! (unnecessary),A transmits data frame,(a),C senses medium, station A is hidden from C

24、,Data Frame,Hidden Terminal Problem,New MAC that may include RTS/CTS,Reservations,B,A,C,D,E,Station A sent RTS (Request To Send),,Reservations ( Cont. ),CTS,B,A,C,D,E,CTS,If idle , B sent CTS (Clear To Send),A transmits data if received CTS,CTS,Exposed Terminal Problem,A,D,C,B,Reservations ( Cont. )

25、,B,A,C,D,E,Station B sent RTS (Request To Send),,Reservations ( Cont. ),CTS,B,A,C,D,E,CTS,If idle , A sent CTS (Clear To Send),B transmits data if received CTS,Reservations ( Cont. ),B,A,C,D,E,CTS,If idle , D sent CTS (Clear To Send),C transmits data if received CTS,Remarks,Collision detection (CD)

26、is not possible in wireless setting, hence, collision avoidance (CA) is needed. Station cannot listen while transmitting The use of RTS/CTS is an optional part of CSMA/CA. The CA does not refer to the use of RTS/CTS, but rather to the way stations back-off when they find the channel busy. The back-o

27、ff is similar to non-persistent CSMA.,WiMAX ( IEEE 802.16 ),802.16 - air interface for fixed BWA system, wireless MAN standard IEEE 802.16 (2001) IEEE 802.16a (January 2003) IEEE 802.16d = IEEE802.16-2004 IEEE 802.16e = IEEE802.16-2006 (Mobile WiMAX System Profile R1):75Mbps 802.16m (Mobile WiMAX Sy

28、stem Profile R2 ):1Gbps (Draft) be a protocol for wireless metropolitan networks. support both of PMP (point to multipoint) and Mesh mode.,Cellular Network Evolution,AMPS TACS NMT C450 NAMTS,模拟技术,DAMPS IS-95 GSM PDC,数字技术,CDMA2000 TD-SCDMA WCDMA UWC136 DECT,语音业务,窄 带 多媒体业务,技术驱动,业务驱动,1G FDMA,2G TDMA,3G

29、 CDMA IMT-2000,宽 带 多媒体业务,用户驱动,B3G OFDMA IMT-advanced,WWRF mITF NGMC Future,Frequency Division Multiplexing OFDM frequency dividing,FDM OFDM,Chapter 5 Peer-to-Peer Protocols and Data Link Layer,LAN Bridges and Ethernet Switches,Hubs, Bridges & Routers,Interconnecting of LANs Repeater: interconnected

30、at physical layer Signal regeneration All traffic appears in both LANs Channel saturations Security and robustness problem Bridge: interconnected at MAC or Data Link Layer MAC address filtering Local traffic stays in own LAN Routers: interconnected at network layer Gateway: interconnected at higher

31、layer than network layer,Hubs, Bridges & Routers,Hub: Active central element in a star topology Twisted Pair: inexpensive, easy to install Simple repeater in Ethernet LANs “Intelligent hub”: fault isolation, net configuration, statistics Requirements that arise:,Hub,Station,Station,Station,Two Twist

32、ed Pairs,?,Operation at data link level implies capability to work with multiple network types (irrelevant to network layer) However, must deal with Difference in MAC formats Difference in data rates, buffering, timers Difference in maximum frame lengths,PHY,MAC,LLC,Network,Network,PHY,MAC,LLC,802.3

33、,802.3,802.5,802.5,802.3,802.3,802.3,802.5,802.5,802.5,CSMA/CD,Token Ring,General Bridge Issues,Bridges of Same Type,Common case involves LANs of same type Bridging is done at MAC level,Interconnection of IEEE LANs with complete transparency Use table lookup, and discard frame, if source & destinati

34、on in same LAN forward frame, if source & dest in different LAN use flooding, if destination unknown Use backward learning to build table observe source address of arriving frames handle topology changes by removing old entries,1、 Transparent Bridges,B1,S1,S2,B2,S3,S4,S5,Port 1,Port 2,Port 1,Port 2,

35、LAN1,LAN2,LAN3,B1,S1,S2,B2,S3,S4,S5,Port 1,Port 2,Port 1,Port 2,LAN1,LAN2,LAN3,Address Port,S1,1,Address Port,S1,1,S1S5,S1 to S5,S1 to S5,S1 to S5,S1 to S5,B1,S1,S2,B2,S3,S4,S5,Port 1,Port 2,Port 1,Port 2,LAN1,LAN2,LAN3,Address Port,S1,1,S3,1,Address Port,S1,1,S3,2,S3S2,S3S2,S3S2,S3S2,S3S2,S3S2,B1,S

36、1,S2,B2,S3,S4,S5,Port 1,Port 2,Port 1,Port 2,LAN1,LAN2,LAN3,S4 S3,Address Port,S1,1,S3,2,S4,2,Address Port,S1,1,S3,1,S4,2,S4S3,S4S3,S4S3,S4S3,B1,S1,S2,B2,S3,S4,S5,Port 1,Port 2,Port 1,Port 2,LAN1,LAN2,LAN3,Address Port,S1,1,S3,2,S4,2,S2,1,S2S1,S2S1,S2S1,Adaptive Learning,In a static network, tables

37、eventually store all addresses & learning stops In practice, stations are added & moved all the time Introduce timer (minutes) to age each entry & force it to be relearned periodically If frame arrives on port that differs from frame address & port in table, update immediately,Address,Port,TTL,LAN1,

38、LAN2,LAN3,B1,B2,B3,B4,B5,LAN4,(1),(2),(1),(1),(1),(1),(2),(2),(2),(2),(3),Avoiding Loops,Loops maybe created accidentally or intentionally (increase redundancy) learning process will lead to broadcast storm Broadcast storm will bring down the entire network Spanning Tree algorithm,Spanning Tree Algo

39、rithm,Select a root bridge among all the bridges root bridge = the lowest bridge ID Determine the root port for each bridge except the root bridge root port = port with the least-cost path to the root bridge Select a designated bridge for each LAN designated bridge = bridge has least-cost path from

40、the LAN to the root bridge designated port connects the LAN and the designated bridge All root ports and all designated ports are placed into a “forwarding” state. These are the only ports that are allowed to forward frames. The other ports are placed into a “blocking” state,LAN1,LAN2,LAN3,B1,B2,B3,

41、B4,B5,LAN4,(1),(2),(1),(1),(1),(1),(2),(2),(2),(2),(3),LAN1,LAN2,LAN3,B1,B2,B3,B4,B5,LAN4,(1),(2),(1),(1),(1),(1),(2),(2),(2),(2),(3),Bridge 1 selected as root bridge,LAN1,LAN2,LAN3,B1,B2,B3,B4,B5,LAN4,(1),(2),(1),(1),(1),(1),(2),(2),(2),(2),(3),Root port selected for every bridge except root port,R

42、,R,R,R,LAN1,LAN2,LAN3,B1,B2,B3,B4,B5,LAN4,(1),(2),(1),(1),(1),(1),(2),(2),(2),(2),(3),Select designated bridge for each LAN,R,R,R,R,D,D,D,D,LAN1,LAN2,LAN3,B1,B2,B3,B4,B5,LAN4,(1),(2),(1),(1),(1),(1),(2),(2),(2),(2),(3),All root ports & designated ports put in forwarding state,R,R,R,R,D,D,D,D,LAN1,LAN2,LAN3,B1,B2,B3,B4,B5,LAN4,(1),(2),(1),(

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论