Computer Networks - Xarxes de Computadors

Similar documents
Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

Communications and Computer Networks

Chapter 2 - The TCP/IP and OSI Networking Models

CSE 3461 / 5461: Computer Networking & Internet Technologies

Introduction Chapter 1. Uses of Computer Networks

Chapter 5. Data Communication And Internet Technology

ICS 153 Introduction to Computer Networks. Inst: Chris Davison

Understanding TCP/IP. Introduction. What is an Architectural Model? APPENDIX

Ethernet. Ethernet. Network Devices

Overview of Computer Networks

Topics. Computer Networks. Let s Get Started! Computer Networks: Our Definition. How are Networks Used by Computers? Computer Network Components

Protocols. Packets. What's in an IP packet

Lecture 28: Internet Protocols

Architecture and Performance of the Internet

Internet Protocol: IP packet headers. vendredi 18 octobre 13

Networking Test 4 Study Guide

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

How To Use A Network Over The Internet (Networking) With A Network (Netware) And A Network On A Computer (Network)

SFWR 4C03: Computer Networks & Computer Security Jan 3-7, Lecturer: Kartik Krishnan Lecture 1-3

Introduction to computer networks and Cloud Computing

What is TCP/IP. Introduction to TCP/IP &216</ &216</ z Transmission Control Protocol/Internet Protocol

Introduction To Computer Networking

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

Data Communication Networks and Converged Networks

Transport and Network Layer

TCP/IP Basis. OSI Model

Objectives of Lecture. Network Architecture. Protocols. Contents

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

Protocols and Architecture. Protocol Architecture.

Lecture (02) Networking Model (TCP/IP) Networking Standard (OSI) (I)

Computer Networks and the Internet

finger, ftp, host, hostname, mesg, rcp, rlogin, rsh, scp, sftp, slogin, ssh, talk, telnet, users, w, walla, who, write,...

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

The TCP/IP Reference Model

WAN Technology. Heng Sovannarith

Internet Concepts. What is a Network?

Understand Wide Area Networks (WANs)

WAN. Introduction. Services used by WAN. Circuit Switched Services. Architecture of Switch Services

The OSI & Internet layering models

TCP/IP Protocol Suite. Marshal Miller Chris Chase

Slide 1 Introduction cnds@napier 1 Lecture 6 (Network Layer)

This course has been retired. View the schedule of current <a href=

What is CSG150 about? Fundamentals of Computer Networking. Course Outline. Lecture 1 Outline. Guevara Noubir noubir@ccs.neu.

Network Models and Protocols

Internetworking Microsoft TCP/IP on Microsoft Windows NT 4.0

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

IP Networking. Overview. Networks Impact Daily Life. IP Networking - Part 1. How Networks Impact Daily Life. How Networks Impact Daily Life

Data Communications and Networking Overview

Communication Systems Internetworking (Bridges & Co)

Chapter 11. User Datagram Protocol (UDP)

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Limi Kalita / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 5 (3), 2014, Socket Programming

How To Design A Layered Network In A Computer Network

Protocol Data Units and Encapsulation

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

Layered Architectures and Applications

Lab Organizing CCENT Objectives by OSI Layer

Computer Networks Vs. Distributed Systems

Transport Layer. Chapter 3.4. Think about

The OSI and TCP/IP Models. Lesson 2

Network Programming TDC 561

MANAGEMENT INFORMATION SYSTEMS 8/E

WAN Data Link Protocols

Communication Networks. MAP-TELE 2011/12 José Ruela

Chapter 9A. Network Definition. The Uses of a Network. Network Basics

Internet Working 5 th lecture. Chair of Communication Systems Department of Applied Sciences University of Freiburg 2004

Overview of TCP/IP. TCP/IP and Internet

IT Internet Architecture and Protocols. Lecture 02 Overview of Internet Architecture

How To Understand The Internet Of S (Netware)

Internet Public Network

CSIS CSIS 3230 Spring Networking, its all about the apps! Apps on the Edge. Application Architectures. Pure P2P Architecture

Internetworking and IP Address

EE984 Laboratory Experiment 2: Protocol Analysis

Basic Operation & Management of TCP/IP Networks

Data Link Protocols. TCP/IP Suite and OSI Reference Model

Data Communication and Computer Network

WANs connect remote sites. Connection requirements vary depending on user requirements, cost, and availability.

Raritan Valley Community College Academic Course Outline. CISY Advanced Computer Networking

Connecting with Computer Science, 2e. Chapter 5 The Internet

Top-Down Network Design

CTS2134 Introduction to Networking. Module 07: Wide Area Networks

VoIP Bandwidth Considerations - design decisions

PART OF THE PICTURE: The TCP/IP Communications Architecture

How do I get to

an interconnected collection of autonomous computers interconnected = able to exchange information

Cisco CCNA Optional Semester 4 Labs Wide Area Networking LAB 1 T1 TSU WAN LINK OVERVIEW - Instructor Guide (Estimated time: 30 minutes)

8/27/2014. What is a computer network? Introduction. Business Applications (1) Uses of Computer Networks. Business Applications (2)

High-Level Data Link Control

A Heterogeneous Internetworking Model with Enhanced Management and Security Functions

Chapter 7: Computer Networks, the Internet, and the World Wide Web. Invitation to Computer Science, C++ Version, Third Edition

IST 220 Exam 3 Notes Prepared by Dan Veltri

Based on Computer Networking, 4 th Edition by Kurose and Ross

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

CCNA R&S: Introduction to Networks. Chapter 5: Ethernet

Transcription:

Computer Networks - Xarxes de Computadors Teacher: Llorenç Cerdà Slides: http://studies.ac.upc.edu/fib/grau/xc Outline Course Syllabus Unit 2. IP Networks Unit 3. TCP Unit 4. LANs Unit 5. Network applications 1

Course Organization Course Syllabus 2+1h lectures/week: theoretical + problems Print the problems manual (available in the racó). Try to do the problems beforehand. Find textbooks and related links at the web page. Laboratory sessions of 2h on selected weeks + 2 non classroom labs Buy laboratory manual in Repography. Study and prepare sessions before hand. Minicontrol held at the end of each session. Required submitting a report at the beginning of the session. Otherwise, the minicontrol cannot be done. web page: http://studies.ac.upc.edu/fib/grau/xc 2

Evaluation: Where: Grau en enginyeria informàtica - Xarxes de Computadors (XC-grau) NF = Final grade. Course Syllabus NF = 0.25 * NL + 0.75 * NT NL = Laboratory: 25% average of lab sessions, and 75% a final lab. exam. NT = Theory grade. NT can be obtained: Continuous evaluation: NC = 0.4 * C1 + 0.3 * C2 + 0.3 * C3. If NC 5 then NT=NC. C1: Units 1,2 (introduction+ip), C2: Unit 3 (TCP), C3: Units 4,5 (LANs+Apps) Final Exam (EF). NT=max(NC, EF). If with NC it is NF 5, you must send an email to the coordinator if you want to do the EF (to increase grade). 3

Course Syllabus Incentive to study: The final grade (NF) will be increased 1 point to students who meet the following conditions: Deliver on time the tracking problems (exercicis de seguiment) that will be proposed during the course. Obtain a grade 5 at least 1 of the Controls. Have a theory grade (NT) and lab (NL) greater than or equal to 5: NT,NL 5. Autonomous learning (transversal competence): Two non classroom labs (home labs) will be proposed in the Racó. Evaluated with a specific final lab exam. 4

Computer Networks - Xarxes de Computadors Outline Course Syllabus Unit 2. IP Networks Unit 3. TCP Unit 4. LANs Unit 5. Network applications 5

Outline Brief history of Computer Networks and Internet Introduction to the Internet Standardization Organizations and OSI Reference Model Client-Server Paradigm 6

Brief history of Computer Networks 1830: Telegraph 1866: First transatlantic telegraph cable 1875: Alexander Graham Bell invented the telephone 1951: First commercial computer 1960: Concept of Packet Switching. 1960s: ARPANET project, origins of the Internet. 1972: First International and commercial Packet Switching Network, X.25. 1990s: The Internet is opened to the general public. Pavel Shilling Telegraph, 1832. Major Telegraph Lines, 1891. UNIVAC: First commercial computer, 1951 Source: wikipedia New York Telephone Cabling, 1888 Telephone Central Office in London, 1926 Today's Networking Equipment. 7

Brief History of the Internet 1966: Defense Advanced Research Projects Agency (DARPA). ARPANET project. ARPANET connected Universities, research labs and military centers. Military portion separated in 1983. 1970s: End-to-end reliability was moved to hosts, developing TCP/IP. TCP/IP was ported to UNIX Berkeley distribution, BSD. 1990s: The Internet is opened to commerce and the general public by the Internet Service Providers, ISP. http://www.geant2.net http://www.rediris.es 8

Outline Brief history of Computer Networks and Internet Introduction to the Internet Standardization Organizations and OSI Reference Model Client-Server Paradigm 9

Organization of the Internet and Terminology Host Access Network LAN WAN Telephone company, telco, or carrier. Router Line Bitrate Bits per second, bps. Domestic users and SOHOs (Small office/ home office) Corporate Networks ISDN NIC ADSL LAN 64 kbps 4 Mbps 4 Mbps ADSL router 56 kbps 34 Mbps LAN Carrier operators WANs Public switched telephone network, PSTN X.25 ISP Frame Relay ATM leased lines: E1 (2 Mbps), E3 (34 Mbps) router router ISP 100 Mbps router router ISP router ISP 10

Bitrate t b is the transmission time of 1 bit. modem v t =1/t b is the line bitrate in bits per second (bps) typical bitrate prefixes: Examples: k, kilo: 10 3 M, Mega: 10 6 G, Giga: 10 9 T, Tera: 10 12 P, Peta: 10 15 Public Switched Telephone Network (PSTN) modem: 56 kbps ADSL: 4 Mbps LAN Ethernet: 10 Mbps, 100 Mbps, 1Gbps, 10 Gbps. Carrier lines E3: 34 Mbps, OC-192: 9,9 Gpbs, V 0 -V s(t) 1 0 0 1 0 1 1 t b v t =1/t b NRZ signal bits t 11

Types of Switching Circuit switching, e.g. PSTN (Public Switched Telephone Network) Packet switching: Virtual Circuit, e.g. X.25, ATM. Datagram: Internet. message to send (e.g. web page) header: source addr. destination addr. packets (datagrams) client modem PSTN ISP Internet ISP LAN server Datagram packet switching 12

Outline Brief history of Computer Networks and Internet Introduction to the Internet Standardization Organizations and OSI Reference Model Client-Server Paradigm 13

Standardization Bodies International Telecommunication Union, ITU: WAN standards. http://www.itu.org/. International Organization for Standardization, ISO: Industrial standards. http://www.iso.org/. Institute of Electrical and Electronics Engineers, IEEE: LAN standards. http://www.ieee.org/. European Telecommunications Standards Institute, ETSI: Mobile phone standards (GSM). http://www.etsi.org/. Electronic Industries Alliance, EIA: Cabling standards. http://www.eia.org/. Internet Engineering Task Force, IETF: Internet standards. http://www.ietf.org. Standardization proposals are done through Request For Comments, RFCs. They are mirrored around the world, e.g. http://www.rfc-editor.org World Wide Web Consortium (W3C). http://www.w3.org 14

ISO Open Systems Interconnection (OSI) Reference Model 7 application 6 presentation 5 session 4 transport 3 network 2 data link 1 physical Terminal node Layers or Levels: Physical or Layer 1 (L1), Peer layers communicate using a protocol. Protocols from different layers are independent. Layer i offers services (e.g. send a datagram to a given address) to layer i+1: Service Access Points (SAP). Peer layers exchange Protocol Data Unit (PDU), which consists of a header and payload. Brief description of Layers: 3 network 2 data link 1 physical Intermediate node 7 application 6 presentation 5 session 4 transport 3 network 2 data link 1 physical Terminal node 7. Application: Processes using network services (web, email) 6. Presentation: Encoding of text, numbers 5. Session: Login type service. 4. Transport: End to end data transfer. 3. Network: Routing. 2. Data link: Structured transport of bits. 1. Physical: Electric and mechanical. *Internet jargon: Layer 8: the user. 15

TCP/IP Architecture No RFC specifies the TCP/IP model. Networking literature usually identifies the layer model: application 4 transport (TCP/UDP) 3 network (IP) physical network interface host 3 network (IP) physical network interface router application 4 transport (TCP/UDP) 3 network (IP) physical network interface host physical network physical network Physical network (Internet jargon): Any network that transport datagrams (not the OSI physical layer!) 16

Encapsulation Each layer adds/remove the PDU header. Layer: application message (e.g. web page) PDU name: message transport TCP header TCP segment network IP header IP datagram data link Ethernet header CRC ethernet frame physical bits or characters 17

TCP/IP Implementation TCP/IP networking code is part of the Operating System kernel. Socket interface: Is the Unix networking interface for the processes. It was first implemented in Berkeley Software Distribution, BSD. The socket system call creates a socket descriptor used to store all information associated with a network connection, similarly as an inode descriptor for a file. process socket layer 4 transport (TCP/UDP) system calls: socket(), connect(), read(), write() Operating System Socket Descriptor within the Kernel Data Structure file{} f_data proc{} filedesc{} *file{}[] inode{} open file 3 network (IP) p_fd fd_ofiles file{} socket{} interface layer NIC NIC: Network Interface Card process table descriptor table f_data so_type so_proto socket 18

Outline Brief history of Computer Networks and Internet Introduction to the Internet Standardization Organizations and OSI Reference Model Client-Server Paradigm 19

Client Server Paradigm: Processes, messages, sockets segments and IP datagrams User space Transport layer Operating System Process message to send (e.g. request a web page) Socket interface Segments encapsulated into IP datagrams Socket Interface: TCP/IP API: socket(), bind(), listen(), accept(), connect(), read(), write() User space Transport layer Operating System Process message to send (e.g. a web page) Socket interface Segments encapsulated into IP datagrams client ISP Internet ISP server 20

Client Server Paradigm: The Internet Transport Layer Two protocols are used at the TCP/IP transport layer: User Datagram Protocol (UDP) and Transmission Control Protocol (TCP). UDP offers a datagram service (non reliable). It is connectionless. TCP offers a reliable service (correct segments are acknowledged, ack, lost segments are retransmitted). It is connection oriented (covered in detail in Unit 3). TCP connection: Connection establishment Exchange of data Termination Client Three way handshaking t ack ack ack ack Server t 21

Client Server Paradigm How connection is established among processes? The client always initiates the connection towards a known IP address, in the IP header, and a well known port (< 1024), in the TCP/UDP header. Well known ports are standardized by IANA in RFC-1700 (Assigned Numbers). In a unix machine can be found in /etc/services. The server is a daemon waiting for client requests. Processes client server Socket interface port x1 port y1 Socket interface Ephemeral port ( 1024) Host A TCP/UDP Operating System dst port = y1 src port = x1 Host B TCP/UDP Operating System Well known port <1024 dst port = x1 src port = y1 TCP/UDP header 22

Client Server Paradigm UNIX /etc/services File Enables server and client programs to convert service names to well known ports. linux> cat /etc/services # Network services, Internet style # Note that it is presently the policy of IANA to assign a single well known # port number for both TCP and UDP; hence, most entries here have two entries # even if the protocol doesn't support UDP operations. # This list could be found on: # http://www.iana.org/assignments/port numbers # ************************************************************************ # WELL KNOWN PORT NUMBERS # The Well Known Ports are assigned by the IANA and on most systems can # only be used by system (or root) processes or by programs executed by # privileged users. # # Keyword Decimal Description # echo 7/tcp Echo echo 7/udp Echo discard 9/tcp # Discard discard 9/udp # Discard daytime 13/tcp # Daytime (RFC 867) daytime 13/udp # Daytime (RFC 867) chargen 19/tcp # Character Generator chargen 19/udp # Character Generator ftp data 20/tcp # File Transfer [Default Data] ftp data 20/udp # File Transfer [Default Data] ftp 21/tcp # File Transfer [Control] ssh 22/tcp # SSH Remote Login Protocol ssh 22/udp # SSH Remote Login Protocol telnet 23/tcp # Telnet telnet 23/udp # Telnet 23

Client Server Paradigm Network applications Remote commands telnet ssh Exchange of documents ftp, sftp peer-to-peer Web based applications Email Network management Real time Voice over IP Video streaming 24