Text has no relevant information

Slides:



Advertisements
Similar presentations
MCT620 – Distributed Systems
Advertisements

Computer Networks TCP/IP Protocol Suite.
1 UNIT I (Contd..) High-Speed LANs. 2 Introduction Fast Ethernet and Gigabit Ethernet Fast Ethernet and Gigabit Ethernet Fibre Channel Fibre Channel High-speed.
Communicating over the Network
Protocol layers and Wireshark Rahul Hiran TDTS11:Computer Networks and Internet Protocols 1 Note: T he slides are adapted and modified based on slides.
1 Chapter One Introduction to Computer Networks and Data Communications.
Local Area Networks - Internetworking
Networks & Components Discuss the components required for successful communications Explain the purpose of communications software Identify various sending.
Network Fundamentals – Chapter 4 Sandra Coleman, CCNA, CCAI
The Internet–Illustrated Introductory, Fourth Edition
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA TCP/IP Protocol Suite and IP Addressing Halmstad University Olga Torstensson
TCP/IP MODEL Maninder Kaur
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
Computers Are Your Future © 2008 Prentice-Hall, Inc.
04/26/2004CSCI 315 Operating Systems Design1 Computer Networks.
Review on Networking Technologies Linda Wu (CMPT )
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
TCP: Software for Reliable Communication. Spring 2002Computer Networks Applications Internet: a Collection of Disparate Networks Different goals: Speed,
Chapter 15 Networks.
1 Networking A computer network is a collection of computing devices that are connected in various ways in order to communicate and share resources. The.
TCP/IP Reference Model Host To Network Layer Transport Layer Application Layer Internet Layer.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
COMPUTER NETWORKS.
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
Lecturer: Tamanna Haque Nipa
15-1 More Chapter 15 Goals Compare and contrast various technologies for home Internet connections Explain packet switching Describe the basic roles of.
Chapter 15 Networks. Chapter Goals Types of networks Topologies Open Systems Home Internet connections 15-2.
Chapter 2 The Infrastructure. Copyright © 2003, Addison Wesley Understand the structure & elements As a business student, it is important that you understand.
Networks and Telecommunications
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Computers Are Your Future Chapter 8 Computers Are Your Future © 2008 Prentice-Hall, Inc.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Network Technologies & Principles 1 Communication Subsystem. Types of Network. Principles of Network. Distributed Protocols.
ACM 511 Chapter 2. Communication Communicating the Messages The best approach is to divide the data into smaller, more manageable pieces to send over.
© McLean HIGHER COMPUTER NETWORKING Lesson 1 – Protocols and OSI What is a network protocol Description of the OSI model.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources.
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
Computer Security Workshops Networking 101. Reasons To Know Networking In Regard to Computer Security To understand the flow of information on the Internet.
Lecture (Mar 23, 2000) H/W Assignment 3 posted on Web –Due Tuesday March 28, 2000 Review of Data packets LANS WANS.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني.
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
Data Communication Network Models
Lecture 4 unit 1. categories of network A network can be categorized as a 1.Local area network. 2.Wide area network. 3.Metropolitan area network. 4.Personal.
Network Models. The OSI Model Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO). Model for understanding.
COMPUTER NETWORKS Hwajung Lee. Image Source:
BASICS Gabriella Paolini (GARR) 27/05/11 - ICCU Roma 1 How INTERNET works !
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Chapter 5 Network and Transport Layers
Introduction to TCP/IP networking
NETWORK Unit 1 Module: 2 Objective: 7.
Slides taken from: Computer Networking by Kurose and Ross
Chapter 5 Network and Transport Layers
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Packet Sniffing.
Chapter Goals Compare and contrast various technologies for home Internet connections Explain packet switching Describe the basic roles of various network.
NETWORK Unit 1 Module: 2 Objective: 7.
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
NETWORK Unit 1 Module: 2 Objective: 7.
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
OSI Reference Model Unit II
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources Usually,
COMPUTER NETWORKING Presented by Pushpanjali Associate professor
Unit – III Network Essentials
Presentation transcript:

Text has no relevant information Computer Networks Text has no relevant information

Learning Outcomes Be able to explain the differences between different types of computer networks Be able to identify differences in connection based and connectionless communication protocols Be able to explain the way data are exchanged between two machines in term of the standard protocols and their data headers Unit 19

What do we know about Networking? So far we have looked at the socket API discussed the basic actions that applications have to perform to communicate been aware of threads and how to use them seen how to use semaphores to deal with problems that require the application to process more than one thing at a time The question we want to raise at this point is what happens when we send our packet is there anything else we need to know about that might be of interest to a programmer? Unit 19

Is this enough? What happens when we send our data from one machine to another? With respect to network programming: Is it certain that the data will always arrive? Should we care how long it might take for data to arrive? Should we care about the data arrival rate? etc. Would knowledge about any of these things change the way we design a program? Are there other issues that might be of interest to us and help us write more robust programs? What we really need to talk about is would knowledge about any of these things change the way we design a program Unit 19

How can computers be connected? Ask the students for ideas on how networks are connected in particular go looking for technologies - should get back various comments about wired and hopefully wireless networks the Unit 19

Communication paths When data is exchanged between computers it may traverse many different network types and travel at different speeds 100 Mb/s - local Ethernet (copper wire) 1 Gb/s - local backbone (fiber) 155 Mbs/s - OC3 leased line 10 Gb/s – OC192 backbone 11 Mb/s - 802.11g to the laptop Unit 19

What’s a Network? A network is a Collection of interconnected computers. Depending on the number of computers and the distance between them we can form: Local Area Networks (LAN) cover small local area, like a home, office, or campus are fast can be wireless Metropolitan Area Networks (MAN) usually spanning a campus or a city typically use wireless structure or optical fiber connections to link their sites. Wide Area Networks (WAN) cover a wide area, involve a large number of computers usually connect LAN’s and MAN’s Internet is a WAN Unit 19

Local Area Networks or Bus: Computers are connected to a central cable (bus). Also called Ethernet. Ring: Computers are connected into a loop. Star: Computers are connected to a hub or a switch most popular nowadays Network Hub: has ports where computers are attached repeats the signal received at one port out each of the other ports Network Switch: Like a hub, but it only sends the signal to one other port Unit 19

Metropolitan Area Networks[Tan02] Unit 19

Wide Area Networks [Tan02] Backbone Notes in the subnet are usually routers. A router acts as a junction between two or more networks to transfer data among them. Unit 19

Satellite Links Unit 19

Architecture of the Internet [Tan02] Network Access Point: huge interconnection points Points Of Presence: connects clients to an ISP To connect a computer to Internet, we connect it to an ISP computer via a modem. Unit 19

Distinguishing Network Characteristics Latency - how long it takes data to get from one location to the next Bandwidth – the amount of data that can be moved in a given unit of time Jitter – the variability in latency Error rate – how frequently data becomes corrupted during transmission Public transit vs cars Latecy is the same but the BW is difference Unit 19

Data transmission Signal transmission over cables, fiber optics, or other media generates errors; Sender may have to re-send a message many times For efficiency, messages are divided into fix-size packets before they sent Two ways to send the packets: Using Connectionless Service (or Datagram) Using Connection-Oriented Service (or virtual circuit ) Unit 19

Connection Based Service(TCP/IP) Sending and receiving hosts establish a connection Sender Splits sequence of outgoing bytes into packets Remembers sent packets in case they are lost and need to be resent Receiver Receives packets Reassembles packets into a sequence of bytes If packets don’t arrive in a given time requests the sender to retransmit them Produces a reliable streamed delivery of data The most common protocol supported by most OS’s is TCP/IP TCP – Transmission Control Protocol IP – Internet Protocol Remind about the Socket interface so we know how to do the connection so this is the other type of work that needs to be done Explain what is mean by reliable and streamed Unit 19

Datagram (UDP) Not streamed – data arrives in the “chunks” that the sender sent, called datagrams Datagrams have a maximum size Datagrams are individually addressed Datagrams may be lost Datagrams may arrive out of order No connection setup No connection state The most common protocol supported by most OS’s is UDP – User Datagram Protocol Talk about postcards as being like packets and what happens if you drop them into the mailbox – they don’t come out in that order at the destination Unit 19

Protocol A formally agreed upon convention for performing or engaging in some sort of activity A data communication protocol is an example of a protocol to exchange data between machines A connection protocol describes how two machines establish a connection. (Usually a subset of a data communication protocol) Not sure if this is an important slide or not, it is a bit of an aside and the important point to get across is that everyone has to agree on what the rules are for things to work Unit 19

Introducing Protocol Layers Communication protocols are usually designed as a stack of layers Similar idea to virtual machine Add layers to perform various functions Lowest layer deals with hardware Next layer deals with moving data to the destination machine Next layer handles correcting errors and lost data (if appropriate) and getting data to application Last layer is the application Unit 19

Layering Yet Again! Application Application Transport Unix I/O Network Application programs Operating system Hardware General Layering Structure File System Link Disk Drive Draw lines from the operating system part of things to indicate that the Unix/IO model and transport and network part of things are all part of the OS On the network side of things talk about all the things that we learned at each part Network Layering File System Layering Unit 19

Ethernet, token ring, wireless Protocol Layers Application Application Transport Network Link telnet, FTP, SMTP, HTTP TCP, UDP IP Ethernet, token ring, wireless Transport Network Link Draw a physical layer on the bottom to indicate that there is some form of actual signaling going on Unit 19

Layers of Functionality Each layer hides the details from the layer above and uses the services of the layer below A layer in a node A interacts with the same layer in another node B (using the layers below it ) Specifically: Link – moves the data between directly connected nodes on the path to the destination Network – used to route the data between the source/destination end points Transport – application to application delivery Application – application level interchanges Unit 19

Encapsulation To achieve the desired functionality each layer adds “headers” to the data it receives Headers are meant for the corresponding layer at the destination Headers are removed at the destination layer Unit 19

Protocol headers Application Application data Transport TCP Header A. Data Application data A. Data Transport TCP Header A. Data TCP Header A. Data Network IP Header TCP Header A. Data Link Ethernet Header IP Header TCP Header A. Data Unit 19

Protocol headers: Going Down Application A. Data Transport TCP Header A. Data Network IP Header TCP Header A. Data Link It should be possible to animate this slide so that we can actually see it move through the layers. Idea would be to put the moving stuff on the top and have a transparent version below so that we can see what was done at the previous layers Ethernet Header IP Header TCP Header A. Data Unit 19

Protocol headers: Coming up Application Transport Network Link It should be possible to animate this slide so that we can actually see it move through the layers. Idea would be to put the moving stuff on the top and have a transparent version below so that we can see what was done at the previous layers Ethernet Header IP Header TCP Header A. Data Unit 19

Header Contents TCP IP Ethernet Source Port Destination Port Sequence Number ACK Number Additional Fields Control Fields (Includes transport protocol type) Source IP Address Destination IP Address Options Dest Ethernet Addr Source. Ethernet Addr Type/Size TCP Port can be the application port or the running program’s port. Unit 19

Routing example Source Destination Application data TCP Header Transport Network Link Application Transport Network Link Network Link Draw out each part of the movement through the stack Application data TCP Header IP Header 802.11G Header Ethernet Header Unit 19

Routing Unit 19

Protocol Processing AP1 Application Protocol 1 AP2 Application TCP UDP IP Relate this back to the socket API and how the calls tell these layers what to do. In particular point out how bind is needed in this situation so that the application can inform the system of where it should be accepting packets. Ethernet Wireless Unit 19

TCP Acknowledgement Normal Operation, no loss Send pkt0 pkt0 recv pkt0 Send ACK0 ACK0 recv ACK0 Send pkt1 pkt1 recv pkt1 Send ACK1 ACK1 recv ACK1 Send pkt2 pkt2 recv pkt2 Send ACK2 recv ACK2 ACK2 Unit 19

TCP Acknowledgement Lost Packet Send pkt0 pkt0 recv pkt0 Send ACK0 ACK0 recv ACK0 Send pkt1 pkt1 X loss Timeout Send pkt1 pkt1 recv pkt1 Send ACK1 ACK1 recv ACK0 pkt2 Unit 19

Extending Device I/O Layering makes it “easy” to Example: incorporate networking in the OS extend I/O to devices that are connected to computer through a network Example: Network File Systems (NFS) Just insert the new service at the appropriate layer Unit 19

Inserting New Functionality UNIX I/O Application UNIX FFS File System Logging FS NFS Client Other Devices Virtual Disk Interface Virtual Disk Interface Network Protocol Stack SCSI IDE Unit 19

From the beginning to the end STDIO GCC Mozilla emacs STDIO GCC Firefox emacs Application programs UNIX I/O FFS LFS Virtual Disk interface IDE SCSI Other devices Protocol Stack Link IP Transport Operating system UNIX I/O FFS LFS Virtual Disk interface IDE SCSI Other devices Protocol Stack Virtual Machine Monitor CPU Motherboard Disks Display Network card etc Hardware Virtual Machine Monitor CPU Motherboard Disks Display Network card etc Unit 19