Raj Jain. The Ohio State University Columbus, OH 43210 Raj Jain

Similar documents
Introduction to TCP/IP

Internet Protocol Version 6 (IPv6)

IP Next Generation (IPv6)

IP Next Generation (IPv6)

Chapter 1: Introduction

High-Level Data Link Control

Networking Test 4 Study Guide

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Data Link Protocols. 5.4 Framing

Ethernet. Ethernet. Network Devices

Transport and Network Layer

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

OSI Model. Application Presentation Session Transport Network Data Link Physical. EE156 Computer Network Architecture

WAN Data Link Protocols

IP - The Internet Protocol

Introduction to IP v6

Data Communications and Networking Overview

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

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

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

Network Security TCP/IP Refresher

LAN Switching Computer Networking. Switched Network Advantages. Hubs (more) Hubs. Bridges/Switches, , PPP. Interconnecting LANs

Overview of TCP/IP. TCP/IP and Internet

RARP: Reverse Address Resolution Protocol

Mathatma Gandhi University

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

DATA COMMUNICATION AND NETWORKS

Chapter 2 - The TCP/IP and OSI Networking Models

Transport Layer. Chapter 3.4. Think about

IT Data Communication and Networks (Optional)

Introduction to IP networking

8.2 The Internet Protocol

IP address format: Dotted decimal notation:

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT COMPUTER NETWORKS

Datacommunication. Internet Infrastructure IPv4 & IPv6

Data Communication Networks Introduction

ESSENTIALS. Understanding Ethernet Switches and Routers. April 2011 VOLUME 3 ISSUE 1 A TECHNICAL SUPPLEMENT TO CONTROL NETWORK

Objectives of Lecture. Network Architecture. Protocols. Contents

Basic Operation & Management of TCP/IP Networks

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

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

Industrial Networks & Databases. Protocols and Networks - Device Bus - - Field Bus -

The OSI and TCP/IP Models. Lesson 2

ICS 153 Introduction to Computer Networks. Inst: Chris Davison

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

Overview of Computer Networks

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

2. What is the maximum value of each octet in an IP address? A. 128 B. 255 C. 256 D. None of the above

Transport Layer Protocols

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

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

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

How do I get to

FIREWALLS & NETWORK SECURITY with Intrusion Detection and VPNs, 2 nd ed. Chapter 2 An Introduction to Networking

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

Computer Networks - Xarxes de Computadors

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

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

Protocols and Architecture. Protocol Architecture.

CLASS C PROFILE. Prepared by: NTCIP Steering Group. May 1996

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

TCP/IP and the Internet

TCP/IP Protocol Suite. Marshal Miller Chris Chase

Internetworking. Agenda Internetworking & universal services Protocols for Internetworking ISO 7-Layer Reference Model TCP/IP Layering Model

Point to Multi-Point Protocol (PMPP) Prepared by: NTCIP Steering Group

Communications and Computer Networks

IT4405 Computer Networks (Compulsory)

Computer Networks CS321

Introduction To Computer Networking

Data Communication Networks and Converged Networks

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

IP Addressing. -Internetworking (with TCP/IP) -Classful addressing -Subnetting and Supernetting -Classless addressing

Network Programming TDC 561

PART OF THE PICTURE: The TCP/IP Communications Architecture

Computer Networks. Chapter 5 Transport Protocols

Future Internet Technologies

Content Page No. Unit I Lesson 1. Introduction to Digital Communication Lesson 2. WAN Technology Lesson 3. History about TCP/IP

The internetworking solution of the Internet. Single networks. The Internet approach to internetworking. Protocol stacks in the Internet

11/22/

Network Models and Protocols

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Data Link Layer Overview

Module 1. Introduction. Version 2 CSE IIT, Kharagpur

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

Chapter 9. IP Secure

Route Discovery Protocols

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

CSE 3461 / 5461: Computer Networking & Internet Technologies

Networking Overview. (as usual, thanks to Dave Wagner and Vern Paxson)

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

Understanding Layer 2, 3, and 4 Protocols

How To Understand The Layered Architecture Of A Network

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

Using MIS 3e Chapter 6A Appendix

Address Resolution Protocol (ARP), Reverse ARP, Internet Protocol (IP)

Internet Control Protocols Reading: Chapter 3

Network Layer: Network Layer and IP Protocol

Transcription:

Networking Basics The Ohio State University Columbus, OH 43210 Jain@CIS.Ohio-State.Edu http://www.cis.ohio-state.edu/~jain/ 1

Overview Standards Organizations ISO/OSI and TCP/IP Reference Model Flow and Error Control Ethernet, HDLC, PPP Internet Protocol (IP), IPv6 TCP Domain Name System 2

International Standards Organizations ISO: International Standards Organization Chartered by United Nations ITU: International Telecommunications Union ITU-T: Consultative Committee on International Telephone and Telegraph (CCITT) ITU-R: Consultative Committee on International Radio (CCIR) Example Standards: G.724, X.25, Q.931 www.itu.ch IEC: International Electrotechnical Commission 3

National Standards Organizations ANSI: American National Standards Institute www.ansi.org Non-governmental, nonprofit, over 300 committees ANSI T1.105-1995 SONET ANSI X3.131-1994 SCSI-2 Represents USA in ITU, IEC, and ISO 4

Professional Associations IEEE: Inst of Electrical and Electronic Engineers, standards.ieee.org IEEE ISO (via ANSI) Ethernet IEEE 802.3 ISO 8802-3:1998 EIA: Electronic Industries Association, www.eia.org Example: EIA-232 (RS-232) TIA: Telecommunications Industries Association, www.tiaonline.org ATM Forum, www.atmforum.com Frame Relay Forum, www.frforum.com 5

IETF: Professional Communities Internet Engineering Task Force, www.ietf.org Originated by DARPA for TCP/IP protocol development Now chartered by Internet Society Request for Comments (RFC), E.g., www.ietf.org/rfc/rfc0793.txt = TCP Internet Drafts: ftp.ietf.org/internet-drafts/ draft-ietf-diffserv-framework-02.txt draft-bhani-mpls-te-eval-00.txt 6

ISO/OSI Reference Model 3 2 1 Application Presentation Session Transport Network Datalink Physical File transfer, Email, Remote Login ASCII Text, Sound Establish/manage connection End-to-end communication: TCP Routing, Addressing: IP Two party communication: Ethernet How to transmit signal: Coding 7

TCP/IP Reference Model TCP = Transport Control Protocol IP = Internet Protocol (Routing) TCP/IP Ref Model Application Transport Internetwork Host to Network TCP/IP Protocols FTP Ether net TCP Telnet HTTP IP Packet Radio 8 UDP Point-to- Point OSI Ref Model Application Presentation Session Transport Network Datalink Physical

Layered Packet Format Nth layer control info is passed as N-1th layer data. Ethernet Header IP Header TCP Header FTP Header 9 FTP Data TCP Data IP Data Ethernet Data Ethernet Trailer

Flow Control Flow Control = Sender does not flood the receiver, but maximizes throughput Sender throttled until receiver grants permission Methods: Stop and wait, Sliding window Sender Receiver Data Ack Data Ack 10 Sender Receiver Data Ack Data Ack

Error Control Error Control = Deliver frames without error, in the proper order to network layer Error Detection: Cyclic Redundancy Check, Sequence Numbers, Ack/Nak, Time-out Error Recovery: Automatic Repeat Request (ARQ) Stop and Wait, Go back n Selective Reject Timeout 1 Ack 2 2 2 1 Ack 3 3 Ack 5 1 Srej 3 3 Ack 5 11

Connection-Oriented vs Connectionless Connection-Oriented: Telephone System Path setup before data is sent Data need not have address. Circuit number is sufficient. Connectionless: Postal System. Complete address on each packet The address decides the next hop at each router 12

Multiple Access Protocols (a) Multiple Access (b) Carrier-Sense Multiple Access with Collision Detection 13

Multiple Access Protocols Aloha at University of Hawaii: Transmit whenever you like Worst case utilization = 1/(2e) =18% CSMA: Carrier Sense Multiple Access Listen before you transmit CSMA/CD: CSMA with Collision Detection Listen while transmitting. Stop if you hear someone else. Ethernet uses CSMA/CD. Standardized by IEEE 802.3 committee. 14

Ethernet Standards 10BASE5: 10 Mb/s over coaxial cable (ThickWire) 10BROAD36: 10 Mb/s over broadband cable, 3600 m max segments 1BASE5: 1 Mb/s over 2 pairs of UTP 10BASE2: 10 Mb/s over thin RG58 coaxial cable (ThinWire), 185 m max segments 10BASE-T: 10 Mb/s over 2 pairs of UTP 10BASE-FL: 10 Mb/s fiber optic point-to-point link 10BASE-FB: 10 Mb/s fiber optic backbone (between repeaters). Also, known as synchronous Ethernet. 15

HDLC Family Synchronous Data Link Control (SDLC): IBM High-Level Data Link Control (HDLC): ISO Link Access Procedure-Balanced (LAPB): X.25 Link Access Procedure for the D channel (LAPD): ISDN Link Access Procedure for modems (LAPM): V.42 Link Access Procedure for half-duplex links (LAPX): Teletex Point-to-Point Protocol (PPP): Internet Logical Link Control (LLC): IEEE Advanced Data Comm Control Proc (ADCCP): ANSI V.120 and Frame relay also use HDLC 16

HDLC Primary station: Issue commands Secondary Station:Issue responses Combined Station: Both primary and secondary Unbalanced Configuration: One or more secondary Balanced Configuration: Two combined station Normal Response Mode (NRM): Response from secondary Asynchronous Balanced Mode (ABM): Combined Station Asynchronous Response Mode (ARM): Secondary may respond before command 17

HDLC Framing: Bit Stuffing HDLC frames are delimited by flags: 01111110 Stuff bits if pattern appears in data Remove stuffed bits at destination Transmitter Receiver 0 11111 11111 11111 10010 01111110 0 111110 111110 111110 10010 01111110 Flag 0 11111 11111 11111 10010 18

HDLC Frames Information Frames: User data Piggybacked Acks: Next frame expected Poll/Final = Command/Response Supervisory Frames: Flow and error control Go back N and Selective Reject Final No more data to send Unnumbered Frames: Control Mode setting commands and responses Information transfer commands and responses Recovery commands and responses Miscellaneous commands and responses 19

Point-to-point Protocol PPP: Introduction Originally for User-network connection Now being used for router-router connection also PPP is used when you connect to an internet service provider (ISP) via modem PPP is a variation of HDLC Uses flags like HDLC Uses byte stuffing in stead of bit stuffing 20

PPP in HDLC-Like Framing Flag Address Control Protocol 01111110 11111111 00000011 Flag = 0111 1110 = 7E Byte Stuffing: 7E 7D 5E 7D 7D 5D Info Padding CRC Flag 21

Internet Protocol (IP) Connectionless service. Variable size datagrams Best-effort delivery: Delay, out-of-order, corruption, and loss possible. Higher layers should handle these. Handles only data forwarding Uses routing tables prepared by other protocols, e.g., Open Shortest Path First (OSPF), Routing Information Protocol (RIP) Provides only Send and Delivery services Error and control messages generated by Internet Control Message Protocol (ICMP) IP address: 32-bit = 4 decimal #s, e.g., 164.107.61.210 22

IP Addressing: An Example 128.10 Router 128.211 128.10.0.1 128.10.0.2 128.211.6.115 Router 10.0.0.37 10.0.0.49 192.5.48.3 10 Router 192.5.48 All hosts on a network have the same network prefix Fig 14.6 23

Subnetwork Network = Multiple subnets connected via routers Generally each subnet is one Ethernet All hosts on the subnet have the same address prefix Mask.AND. Address = Prefix Example: First 23 bits = subnet Address: 10010100 10101000 00010000 11110001 Mask: 11111111 11111111 11111110 00000000.AND. 10010100 10101000 00010000 00000000 Network R R R Subnet 1 Subnet 2 Subnet n 24

Forwarding an IP Datagram Delivers datagrams to destination network (subnet) Routers maintain a routing table of next hops Next Hop field does not appear in the datagram Net 1 R1 Net 2 R2 Net 3 R3 Net 4 Table at R2: Destination Next Hop Net 1 Forward to R1 Net 2 Deliver Direct Net 3 Deliver Direct Net 4 Forward to R3 Fig 16.2 25

IPv6: How Many Addresses? 10 Billion people by 2020 Each person will be served by more than one computer Assuming 100 computers per person 10 12 computers More addresses may be required since Multiple interfaces per node Multiple addresses per interface Some believe 2 6 to 2 8 addresses per host Safety margin 10 15 addresses IPng Requirements 10 12 end systems and 10 9 networks. Desirable 10 12 to 10 15 networks 26

128-bit long. Fixed size IPv6 Addresses 2 128 = 3.4 10 38 addresses 665 10 21 addresses per sq. m of earth surface If assigned at the rate of 10 6 /µs, it would take 20 years Expected to support 8 10 17 to 2 10 33 addresses 8 10 17 1,564 address per sq. m Allows multiple interfaces per host. Allows multiple addresses per interface Allows unicast, multicast, anycast Allows provider based, site-local, link-local 85% of the space is unassigned 27

Colon-Hex Notation Dot-Decimal: 127.23.45.88 Colon-Hex: FEDC:0000:0000:0000:3243:0000:0000:ABCD Can skip leading zeros of each word Can skip one sequence of zero words, e.g., FEDC::3243:0000:0000:ABCD ::3243:0000:0000:ABCD Can leave the last 32 bits in dot-decimal, e.g., ::127.23.45.88 Can specify a prefix by /length, e.g., 2345:BA23:7::/40 28

IPv6 vs IPv4 1995 vs 1975 IPv6 only twice the size of IPv4 header Only version number has the same position and meaning as in IPv4 Added: Priority and flow label All fixed size fields. No optional fields. Replaced by extension headers. Allows Plug and Play as well as Secure address assignment 29

Dentist s Office Dentist 30

1000 Computers on the Dock 31

Connection oriented TCP: Key Features Point-to-point communication: Two end-points Reliable transfer: Data is delivered in order Full duplex communication Stream interface: Continuous sequence of octets Reliable connection startup: Data on old connection does not confuse new connections Graceful connection shutdown: Data sent before closing a connection is not lost. 32

TCP Header Source Dest Seq Ack Data Resvd Control Window Port Port No No Offset 16 16 32 32 4 6 6 16 Checksum Urgent Options Pad Data 16 16 x y Size in bits Port (16 bits): Identifies source user process 20 = FTP, 23 = Telnet, 53 = DNS, 80 = HTTP,... Ack number (32 bits): Next byte expected Window = Number bytes allowed to send 33

Domain Name System: Hierarchy Unnamed root com edu gov au... us dec ohio-state nsf co va cis netlab ee cobra reston cnri Example: cobra.netlab.ohio-state.edu 34

User Database Database Query Response Name Resolution Cache Name Server Name Resolver Cache 35 Query Response Query Response Query Cache Name Server Response Name Server Cache Database

Summary IETF s RFCs and I-Ds are key sources for recent developments HDLC uses 01111110 flag and requires bit-stuffing Ethernet uses CSMA/CD IP is a connectionless forwarding protocol with 32-bit addresses IPv6 extends addresses to 128 bits TCP is a connection-oriented reliable stream protocol DNS allows name to address resolution 36

Networking Basics: Key References W. Stallings, Data and Computer Communications, 5th Ed, Prentice Hall, 1997 M. W. Murhammer, et al, TCP/IP Tutorial and Technical Overview, 6th Ed, Prentice Hall, 1998 A. S. Tanenbaum, Computer Networks, 3rd Ed, Prentice Hall, 1996 37