版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Computer Networking Lecture 18the Ethernet technologiesMay 28, 2017Dr. Qingyao WSome slides are from lectures of Prof. J.F Kurose and K.W. RossEthernet“dominant” wired LAN technology: cheap $20 for NIC first widely used LAN technology simpler, cheaper than token LANs and ATM kept up with speed race:
2、 10 Mbps 10 Gbps Metcalfes EthernetsketchStar topology bus topology popular through mid 90s all nodes in same collision domain (can collide with each other) today: star topology prevails active switch in center each “spoke” runs a (separate) Ethernet protocol (nodes do not collide with each other)sw
3、itchbus: coaxial cablestarEthernet Frame StructureSending adapter encapsulates IP datagram (or other network layer protocol packet) in Ethernet framePreamble: 7 bytes with pattern 10101010 followed by one byte with pattern 10101011 used to synchronize receiver, sender clock ratesEthernet Frame Struc
4、ture (more) Addresses: 6 bytes if adapter receives frame with matching destination address, or with broadcast address (eg ARP packet), it passes data in frame to network layer protocol otherwise, adapter discards frame Type: indicates higher layer protocol (mostly IP but others possible, e.g., Novel
5、l IPX, AppleTalk) CRC: checked at receiver, if error is detected, frame is droppedEthernet: Unreliable, connectionless connectionless: No handshaking between sending and receiving NICs unreliable: receiving NIC doesnt send acks or nacks to sending NIC stream of datagrams passed to network layer can
6、have gaps (missing datagrams) gaps will be filled if app is using TCP otherwise, app will see gaps Ethernets MAC protocol: unslotted CSMA/CDEthernet CSMA/CD algorithm1. NIC receives datagram from network layer, creates frame2. If NIC senses channel idle, starts frame transmission If NIC senses chann
7、el busy, waits until channel idle, then transmits3. If NIC transmits entire frame without detecting another transmission, NIC is done with frame !4. If NIC detects another transmission while transmitting, aborts and sends jam signal5. After aborting, NIC enters exponential backoff: after nth collisi
8、on, NIC chooses K at random from 0,1,2,2m-1. NIC waits K512 bit times, returns to Step 2 (m = min(n,10) Ethernets CSMA/CD (more)Jam Signal: make sure all other transmitters are aware of collision; 48 bitsBit time: 0.1 microsec for 10 Mbps Ethernet ;for K=1023, wait time is about 50 msec Exponential
9、Backoff: Goal: adapt retransmission attempts to estimated current load heavy load: random wait will be longerfirst collision: choose K from 0,1; delay is K 512 bit transmission timesafter second collision: choose K from 0,1,2,3after ten collisions, choose K from 0,1,2,3,4,1023CSMA/CD efficiency Tpro
10、p = max prop delay between 2 nodes in LAN ttrans = time to transmit max-size frame efficiency goes to 1 as tprop goes to 0 as ttrans goes to infinity better performance than ALOHA: and simple, cheap, decentralized!transprop/ttefficiency511Review Link layer addressing Link layer traffic Within the sa
11、me subnet Across subnets LAN technologies Ethernet, connectionless and unreliable service Frame structure (carrying IP datagram as payload) CSMA/SD, when nodes connect with a hub, sharing a broadcast link802.3 Ethernet Standards: Link & Physical Layers many different Ethernet standards common MA
12、C protocol and frame format different speeds: 2 Mbps, 10 Mbps, 100 Mbps, 1Gbps, 10G bps different physical layer media: fiber, cableapplicationtransportnetworklinkphysicalMAC protocoland frame format100BASE-TX100BASE-T4100BASE-FX100BASE-T2100BASE-SX100BASE-BXfiber physical layercopper (twisterpair)
13、physical layerManchester encoding used in 10BaseT each bit has a transition allows clocks in sending and receiving nodes to synchronize to each other no need for a centralized, global clock among nodes! Hey, this is physical-layer stuff!Link-layer switchesHubs physical-layer (“dumb”) repeaters: bits
14、 coming in one link go out all other links at same rate all nodes connected to hub can collide with one another no frame buffering no CSMA/CD at hub: host NICs detect collisionstwisted pairhubSwitches link-layer device: smarter than hubs, take active role store, forward Ethernet frames examine incom
15、ing frames MAC address, selectively forward frame to one-or-more outgoing links when frame is to be forwarded transparent hosts are unaware of presence of switches plug-and-play, self-learning switches do not need to be configuredSwitch: allows multiple simultaneous transmissions hosts have dedicate
16、d, direct connection to switch switches buffer packets Ethernet protocol used on each incoming link, but no collisions; full duplex each link is its own collision domain switching: A-to-A and B-to-B simultaneously, without collisions not possible with dumb hubAABBCCswitch with six interfaces(1,2,3,4
17、,5,6) 123456Switch Table Q: how does switch know that A reachable via interface 4, B reachable via interface 5? A: each switch has a switch table, each entry: (MAC address of host, interface to reach host, time stamp) looks like a routing table! Q: how are entries created, maintained in switch table
18、? something like a routing protocol?AABBCCswitch with six interfaces(1,2,3,4,5,6) 123456Switch: self-learning switch learns which hosts can be reached through which interfaces when frame received, switch “learns” location of sender: incoming LAN segment records sender/location pair in switch tableAA
19、BBCC123456A ASource: ADest: AMAC addr interface TTLSwitch table (initially empty)A160Switch: frame filtering/forwardingWhen frame received:1. record link associated with sending host2. index switch table using MAC dest address3. if entry found for destination then if dest on segment from which frame
20、 arrived then drop the frame else forward the frame on interface indicated else flood forward on all but the interface on which the frame arrivedSelf-learning, forwarding: exampleAABBCC123456A ASource: ADest: AMAC addr interface TTLSwitch table (initially empty)A160A AA AA AA AA A frame destination unknown:floodA A destination A location known:A460selective sendInterconnecting switches switches can be connected togetherAB Q: sending from A to F
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2027届上海市高三高考英语模拟试卷真题(含答案详解)
- 2026及未来5年平衡垫项目可行性研究报告(市场调查与数据分析)
- 2026及未来5年工艺凉鞋项目可行性研究报告(市场调查与数据分析)
- 数字孪生系统开发委托协议
- 6-6-6-Benzene-1-3-5-triyl-tris-2-naphthoic-acid-6-6-6-Benzene-1-3-5-triyl-tris-2-naphthoic-acid-生命科学试剂-MCE
- 5-Benzyloxy-isophthalic-acid-生命科学试剂-MCE
- 外国大学数学试题及答案
- 抵制非法宗教活动课件
- 2026年医药行业专利申请分析报告及市场前景展望
- 2026年智能家居行业硬件销售增长趋势报告
- 山东省济南市2025-2026学年七年级上册期末复习:文言文阅读(课外阅读)练习题与答案
- 江苏省泰州市泰州中学2026-2027学年高二上学期10月第一次质量检测生物试卷(无答案)
- 恶性胸腔积液诊断与治疗教学课件
- 2026年宁波市文化旅游投资集团有限公司人员招聘笔试备考试题及详细答案解析
- 中医科医院感染管理制度-001
- 2026年传承红色薪火 勇担少年使命 - 纪念长征胜利90周年校长主题讲话
- 会议音视频系统维护保养手册
- GB/T 8334-2026液化石油气和液化二甲醚钢瓶定期检验与评定
- 动力配电系统施工方案-技术交底
- 2025-2026学年七年级上学期期中考试语文试题(无答案)
- 2025青岛水务集团有限公司招聘(89人)笔试历年备考题库附带答案详解
评论
0/150
提交评论