c语言program,c_program_1C语言

这篇博客探讨了网络通信的基础,从早期的资源共享到现在的互联网应用。提到了以太网、局域网和广域网的基本概念,以及网络协议如TCP/IP在数据传输中的重要性。还讨论了网络性能的影响因素,包括协议处理、内存速度和总线速率,并通过实例比较了不同网络技术的性能。最后,指出了网络设计中的一些挑战和限制。
摘要由CSDN通过智能技术生成

《c_program_1C语言》由会员分享,可在线阅读,更多相关《c_program_1C语言(32页珍藏版)》请在人人文库网上搜索。

1、CS61CAnatomy of I/O Devices: Networks Lecture 14,March 5, 1999 Dave Patterson (http.cs.berkeley.edu/patterson) www-inst.eecs.berkeley.edu/cs61c/schedule.html,Review 1/2,Operating System started as shared I/O library Support for OS abstraction: Kernel/User bit, stacked KU bits, syscall MIPS follows c。

2、oprocessor abstraction to add resources, instructions for OS Interrupt control: Interrupt Enable bit, stacked IE bits, Interrupt Priority Levels, Interrupt Mask Re-entrant via restricting int. to higher priority DMA to accelerate data movement,Outline,Buses Why Networks? A Simple Example: Derive Net。

3、work Basics Protocol, Ethernet Administrivia, “Computers in the News” Internetworking, Protocol Suites, TCP/IP Performance Pitfalls Conclusion,Recall : 5 components of any Computer,Processor (active),Computer,Control (“brain”),Datapath (“brawn”),Memory (passive) (where programs, data live when runni。

4、ng),Devices,Input,Output,Keyboard, Mouse,Display, Printer,Disk, Network,Connecting to Networks (and Other I/O),Bus - shared medium of communication that can connect to many devices Hierarchy of Buses in a PC,Buses in a PC,Data rates Memory: 100 MHz, 8 bytes 800 MB/s (peak) PCI: 33 MHz, 4 bytes wide 。

5、132 MB/s (peak) SCSI: “Ultra2” (40 MHz), “Wide” (2 bytes) 80 MB/s (peak),Why Networks?,Originally sharing I/O devices between computers (e.g., printers) Then Communicating between computers (e.g, file transfer protocol) Then Communicating between people (e.g., email) Then Communicating between netwo。

6、rks of computers Internet, WWW,Types of Networks,Local Area Network (Ethernet) Inside a building: Up to 1 km (peak) Data Rate: 10 Mbits/sec, 100 Mbits/sec,1000 Mbits/sec Run, installed by network administrators Wide Area Network Across a continent (10km to 10000 km) (peak) Data Rate: 1.5 Mbits/sec t。

7、o 2500 Mbits/sec Run, installed by telephone companies,ABCs of Networks: 2 Computers,Starting Point: Send bits between 2 computers Queue (First In First Out) on each end Can send both ways (“Full Duplex”) Information sent called a “message” Note: Messages also called packets,A Simple Example: 2 Comp。

8、uters,What is Message Format? (Similar in idea to Instruction Format) Fixed size? Number bits?,0: Please send data from address in your memory 1: Packet contains data corresponding to request,Header(Trailer): information to deliver message Payload: data in message (1 word above),Questions About Simp。

9、le Example,What if more than 2 computers want to communicate? Need computer “address field” in packet to know which computer should receive it (destination), and to which computer it came from for reply (source),Questions About Simple Example,What if message is garbled in transit? Add redundant info。

10、rmation that is checked when message arrives to be sure it is OK 8-bit sum of other bytes: called “Check sum”; upon arrival compare check sum to sum of rest of information in message,Questions About Simple Example,What if message never arrives? If tell sender it has arrived (and tell receiver reply 。

11、has arrived), can resend upon failure Dont discard message until get “ACK”; (Also, if check sum fails, dont send ACK),Observations About Simple Example,Simple questions such as those above lead to more complex procedures to send/receive message and more complex message formats Protocol: algorithm fo。

12、r properly sending and receiving messages (packets),Ethernet Packet Format,Preamble,Dest Addr,Src Addr,Length of Data2 Bytes,Data,Check,Preamble to recognize beginning of packet Unique Address per Ethernet Network Interface Card so can just plug in if not, delete message (sender resends when timer e。

13、xpires) 1: If OK, OS copies data to user address space, Enabling technologies: SW standards that allow reliable communications without reliable networks Hierarchy of SW layers, giving each layer responsibility for portion of overall communications task, called protocol families or protocol suites Ab。

14、straction to cope with complexity of communication vs. Abstraction for complexity of computation,Protocol for Network of Networks,Transmission Control Protocol/Internet Protocol (TCP/IP) This protocol family is the basis of the Internet, a WAN protocol IP makes best effort to deliver TCP guarantees 。

15、delivery TCP/IP so popular it is used even when communicating locally: even across homogeneous LAN,FTP From Stanford to Berkeley,BARRNet is WAN for Bay Area T3 is 45 Mbit/s leased line (WAN); FDDI is 100 Mbit/s LAN IP sets up connection, TCP sends file,T3,FDDI,FDDI,Ethernet,Ethernet,Ethernet,Henness。

16、y,Patterson,FDDI,Protocol Family Concept,Message,Message,Message,Protocol Family Concept,Key to protocol families is that communication occurs logically at the same level of the protocol, called peer-to-peer, but is implemented via services at the lower level Danger is each level lower performance i。

17、f family is implemented as hierarchy (e.g., multiple check sums),TCP/IP packet, Ethernet packet, protocols,Application sends message,TCP breaks into 64KB segments, adds 20B header,IP adds 20B header, sends to network,If Ethernet, broken into 1500B packets with headers, trailers (24B),All Headers, tr。

18、ailers have length field, destination, .,Shared vs. Switched Based Networks,Shared Media vs. Switched: pairs communicate at same time: “point-to-point” connections Aggregate BW in switched network is many times shared point-to-point faster since no arbitration, simpler interface,Example of Network P。

19、erformance,Compare Ethernet, ATM sending a message with a 5 MB payload Time to send message: Overhead + Size/Data Rate Ethernet Overhead: 500 microseconds BW is 1.25 Mbyte/sec ATM Overhead: 600 microseconds BW is 10 Mbyte/sec Transmission time = Overhead + Size/(Data Rate),Example of Network Perform。

20、ance,Compare Ethernet (10 Mbit/sec), ATM (800 Mbit/sec) sending a message with a 250 Byte payload Time to send message: Overhead + Size/Data Rate Ethernet Overhead: 460 microseconds BW is 1.25 Mbyte/sec Time = 460 + 250/1.25 = 660 usecs ATM Overhead: 630 microseconds BW is 10 Mbyte/sec Time = 630 + 。

21、250/10 = 655 microseconds,Limits to Performance of Networks,Layers of protocol Processor speed for protocol processing Memory speed for transferring messages Bus speed for connecting to computer Sharing of Network by multiple computers,I/O Pitfall: Relying on Peak Data Rates,Using the peak transfer 。

22、rate of a portion of the I/O system to make performance projections or performance comparisons Peak bandwidth measurements often based on unrealistic assumptions about system or unattainable because of other system limitations In example, Peak Bandwidth FDDI vs.10 Mbit Ethernet = 10:1, but delivered。

23、 BW ratio (due to software overhead) is 1.01:1 Peak PCI BW is 132 MByte/sec, but combined with memory often 80 MB/s,Network Media (if time),“And in Conclusion.” 1/1,Protocol suites allow heterogeneous networking Another use of principle of abstraction Protocols operation in presence of failures Standardization key for LAN, WAN Integrated circuit revolutionizing network switches as well as processors Switch just a specialized computer High bandwidth networks with slow SW overheads dont deliver their promise Next: Anatomy of disks, RAID。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值