790 likes | 991 Views
Introduction to Computer Networks. 講義網址 http://www.ee.cgu.edu.tw/member/teacher/mfli/index.htm 參考網頁 http://cherry.cs.nccu.edu.tw/~lien/NIIslide.htm. Classification of Computer Networks Network Structure Network Architecture The OSI Reference Model The DoD TCP/IP Model Network Terminologies
E N D
Introduction to Computer Networks 講義網址http://www.ee.cgu.edu.tw/member/teacher/mfli/index.htm 參考網頁http://cherry.cs.nccu.edu.tw/~lien/NIIslide.htm • Classification of Computer Networks • Network Structure • Network Architecture • The OSI Reference Model • The DoD TCP/IP Model • Network Terminologies • An Overview of Reliable Data Transfer • Network Addressing • Routing • MAC Protocols
Introduction • What is computer networks? A system consists of two or more autonomous computers/equipment interconnected by transmission media (e.g., coaxial cable, fiber, twisted pair, microwave) . • What is the goals of computer networks? Resource sharing High reliability Economic efficiency
Introduction • PSTN (Public Switched Telephone Networks)
Introduction • PSTN (Public Switched Telephone Networks)
Introduction • Antique Phones
Introduction • Antique Switches
Introduction • IP Networks (Internet)
Introduction • IP Network Architecture
Introduction • Integrated Services via ADSL
Introduction • Integrated Services via ADSL
Introduction • Triple Play Services 影像/語音/數據
Introduction • Cable TV (HFC,Hybrid Fiber Coaxial) Diagram: http://www.cabledatacomnews.com/cmic/diagram.html
Introduction • Cable TV Typically 500 to 5,000 homes cable headend home cable distribution network (simplified)
Introduction • Cable TV
Introduction • Cable TV
AP AP Internet hub, switch or router BSS 1 BSS 2 Introduction • WLAN (WiFi)
Mobile Switching Center Mobile Switching Center Public telephone network, and Internet wired network Introduction • Cellular Mobile Networks
Introduction • WiMAX
Introduction • Satellite Communication Networks
Introduction • Classification of Computer Networks LAN(Local Area Networks) MAN(Metropolitan Area Networks) WAN(Wide Area Networks) SAN(Storage Area Networks)
MAN MAN WAN Introduction • Classification of Computer Networks LAN LAN LAN LAN LAN LAN LAN LAN LAN LAN LAN • Applications of Computer Networks Email(Electronic Mail) E-Library BBS E-Commerce Financial ATM Video Conference Remote Medical SystemE-Learning
子網路 主機 交換機 傳輸線 傳輸線 Introduction • Network Structure:Components Terminal or Host: PC, Station Transmission Line: wired and wireless media, (circuit, channel, trunk) Switching Elements: switch, router Subnet: responsible for connecting hosts, usuallymaintained by ISP
1 2 4 6 3 5 Introduction • Network Topologies Star: ATM Ring:Token Ring, FDDI Bus:Ethernet Tree:100-VG-anyLAN Complete Connected Irregular
Introduction • Network Types Broadcast Networks: (1) every host/station can receive the messages from a certain sender, e.g., Bus and Ring (2) usually used in small LAN (3) Ethernet, Token Bus, Token Ring, FDDI,…
Introduction • Network Types (cont.) Point-to-Point Networks: (1) only the two established a connection can communicate each other (2) usually used in large scale MAN or WAN, e.g., ATM networks
Introduction • Network Architecture: Why Protocol Hierarchy? Reduce complexity Provide standard interface Provide symmetric function for the same layers Provide predictable performance and be able to control the changes of SW/micro-code Provide standard language for designers, venders and managers to communicate Network Architecture: Protocol Definition Layer n on Host A carries on a conversation with Layer n on Host B. The rules used in this conversation are known as Layer n Protocol.
第 n 層協定 第n層 第n層 n / n-1 介面 n / n-1 介面 第 n-1 層協定 第n-1層 第n-1層 n-1 / n-2 介面 n-1 / n-2 介面 主機A 主機B Introduction • Network Architecture: Interface Between each pair of adjacent layers in the same Host there is an Interface
Introduction • ISO OSI Reference Model The Physical Layer The Data Link Layer The Network Layer The Transport Layer The Session Layer The Presentation Layer The Application Layer
receiver sender Actual data transmission path Application Application Presentation Presentation Presentation Protocol Session Session Encapsulation De-capsulation Transport Transport Network Network Data Link Data Link Physical Physical Introduction • ISO OSI Reference Model Message PH Data Data SH Data TH Data NH Data DT DH Bits Encapsulation and De-capsulation
receiver sender Actual data transmission path Application Application Presentation Presentation Presentation Protocol Session Session Encapsulation De-capsulation Transport Transport Network Network Data Link Data Link Physical Physical Introduction • ISO OSI Reference Model Message PH Data Data SH Data TH Data NH Data DT DH Bits Encapsulation and De-capsulation
receiver sender Actual data transmission path Application Application Presentation Presentation Presentation Protocol Session Session Encapsulation De-capsulation Transport Transport Network Network Data Link Data Link Physical Physical Introduction • ISO OSI Reference Model Message PH Data Data SH Data TH Data NH Data Bits Encapsulation and De-capsulation
receiver sender Actual data transmission path Application Application Presentation Presentation Presentation Protocol Session Session Encapsulation De-capsulation Transport Transport Network Network Data Link Data Link Physical Physical Introduction • ISO OSI Reference Model Message PH Data Data SH Data TH Data Data Bits Encapsulation and De-capsulation
receiver sender Actual data transmission path Application Application Presentation Presentation Presentation Protocol Session Session Encapsulation De-capsulation Transport Transport Network Network Data Link Data Link Physical Physical Introduction • ISO OSI Reference Model Message PH Data Data SH Data Data Data Bits Encapsulation and De-capsulation
receiver sender Actual data transmission path Application Application Presentation Presentation Presentation Protocol Session Session Encapsulation De-capsulation Transport Transport Network Network Data Link Data Link Physical Physical Introduction • ISO OSI Reference Model Message PH Data Data Data Data Data Bits Encapsulation and De-capsulation
receiver sender Actual data transmission path Application Application Presentation Presentation Presentation Protocol Session Session Encapsulation De-capsulation Transport Transport Network Network Data Link Data Link Physical Physical Introduction • ISO OSI Reference Model Message Data Data Data Data Data Bits Encapsulation and De-capsulation
Application Message APDU Presentation PPDU Session SPDU Transport TPDU Data Header Network Packet Data Link Frame Data Trailer Header Physical Data Bit/Byte Stream Data Header Data Header Header Data Introduction • ISO OSI Reference Model Small size of message without fragmentation
Application Presentation Message Session Transport Data Header Network Data Link Data Header Physical APDU Data Header PPDU Data Header SPDU Header Data Trailer TPDU Data Packet Frame Bit/Byte Stream Introduction • ISO OSI Reference Model Large size of message with fragmentation
Introduction • The Physical Layer responsible for transmitting a series of bit or byte streams, can use electric or optical signal to carry “0” and “1”. open and close a physical connection transmitting a series of data bits management of physical layer • The Data Link Layer consists of two sub-layers, MAC(Medium Access Control) and LLC(Logical Link Control), data link establishment and release
Introduction • The Data Link Layer (cont.) break upper layer data unit, Packet, into smaller data unit, Frame Sequence Control, Flow Control Error Detection, Error Control, Error Recovery • The Network Layer Routing and Relay Break upper layer data unit, TPDU, into smaller data unit, Packet Congestion Control, Billing and Accounting Subnet Control and Operation Reset service
Introduction • The Transport Layer End-to-End Sequence Control, Error Control, and Flow Control Multiplexing function Mapping Transport address into Network address • The Session Layer Token management Synchronization management Login Management one-to-one mapping for Session connection and Transport connection
Introduction • The Presentation Layer responsible for selection of syntax and semantics Data Compression, Encoding and Decoding Data Encryption and Decryption • The Application Layer File Transfer Virtual Terminal Handling Electronic Mail Remote Login
Introduction • The DoD TCP/IP Model Network Access Layer: Internet Layer Transport/Host-to-Host Layer: Application/Process Layer: receives upper layer packets and then transmits them into physical media, and reverses the actions in the receiving end : packet format, packet transfer, routing, IP protocol end-to-end communication, error detection and control, error recovery, TCP protocol File Transfer, Email, Telnet,…
Introduction • The DoD TCP/IP Model:Protocol Stack • Comparison of OSI and DoD TCP/IP Models OSI TCP/IP
Application Application Presentation Presentation Session Session End-to-End Protocol Transport Transport Perfect Perfect Network Network Network Data Link Data Link Data Link Data Link OK OK OK Physical Physical Physical Physical Introduction • Layering Protocol:Operating Procedure Switch Router
Introduction • Connection-Oriented and Connectionless Services Connection-Oriented Service:includes three phases (1) connection establishment phase (2) data transmission phase (3) connection release phase e.g. TCP • Connection-Oriented and Connectionless Services Connectionless Service: e.g., IP (1) no need of establishing connection (2) each data packet should have complete destination address
Introduction • Network Terminologies Simplex Communication:data only travel in one direction, like one-way road, e.g., TV broadcast Half-Duplex Communication:data can travel in either direction, but not simultaneously, e.g., certain intercom Full-Duplex Communication:data can travel in both direction at once, e.g., telephone system Error Control:a mechanism about data retransmission or correction when error occurs
Introduction • Network Terminologies Flow Control:a mechanism that controls the transmission and receiving rate in order to prevent data overflow and loss Acknowledgement Frame:a control frame used for the receiving end to inform the sender some information and status Bandwidth: bit per second (bps), kbps(103bps), Mbps(106bps), Gbps(109bps), Tbps(1012bps) Delay=transmission+queueing+propagation transmission delay = packet size/transmission rate propagation delay = path length/(2c/3) c: light speed queueing delay: queueing theory