What is a Network? TCP / IP. The ISO OSI Model. Protocols. The TCP/IP Protocol Suite. The TCP/IP Protocol Suite. Computer network.

Similar documents
TCP/IP and the OSI Model

Types of Transfer. Connection-oriented Transfer. Connectionless Transfer. Networks generally provide two types of communication. Connection-oriented

03 The Internet Model and TCP/IP

The Internet Protocol (IP)

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

Network Programming. Introduction to Sockets. Dr. Thaier Hayajneh. Process Layer. Network Layer. Berkeley API

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

System Programming. Introduction to computer networks

IP: Addressing, ARP, Routing

Defining Networks with the OSI Model. Module 2

Interconnecting Networks with TCP/IP

The Client Server Model and Software Design

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

IP Address Assignment

Chapter 7. Local Area Network Communications Protocols

Copyleft 2005, Binnur Kurt. Objectives

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

TCP/IP Protocol Suite and IP Addressing

ECE4110 Internetwork Programming. Introduction and Overview

Objectives. Upon completion you will be able to: Understand how the Internet came into being

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

Chapter 2 Network Models 2.1

TCP /IP Fundamentals Mr. Cantu

Chapter 7 Transport Layer. 7.0 Introduction 7.1 Transport Layer Protocols 7.2 TCP and UDP 7.3 Summary

TSIN02 - Internetworking

Business Data Networks and Security 10th Edition by Panko Test Bank

Network+ Guide to Networks 6 th Edition. Chapter 4 Introduction to TCP/IP Protocols

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

Introduction to Internetworking

SC/CSE 3213 Winter Sebastian Magierowski York University CSE 3213, W13 L8: TCP/IP. Outline. Forwarding over network and data link layers

CHAPTER-2 IP CONCEPTS

CCNA Exploration Network Fundamentals. Chapter 04 OSI Transport Layer

Vorlesung Kommunikationsnetze

Introduction to the TCP/IP protocol suite

Network Architecture Models

Overview of TCP/IP Overview of TCP/IP protocol: TCP/IP architectural models TCP protocol layers.

PART X. Internetworking Part 1. (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution)

CN1047 INTRODUCTION TO COMPUTER NETWORKING CHAPTER 6 OSI MODEL TRANSPORT LAYER

ISO OSI 7 Layer model and the TCP/IP protocol stack. Introduction to the TCP/IP protocol suite. Networking Glossary


Kent State University

The Data Link Layer. 32 PART I Networking Basics

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers

Need For Protocol Architecture

C19: User Datagram and Multicast

User Datagram Protocol(UDP)

0 TCP/IP overview. 0.1 The Internet

Need For Protocol Architecture

DATA COMMUNICATION AND NETWORKS

CSE 461 Module 10. Introduction to the Transport Layer

CSC 546: Client/Server Fundamentals. Fall Major client/server protocols

Chapter 6. The Protocol TCP/IP. Introduction to Protocols

Introduction to TCP/IP

TCP/IP Overview. Basic Networking Concepts. 09/14/11 Basic TCP/IP Networking 1

TCP/IP and OSI Model. Lecture 10 TCP. Host-to-Host Transport Layer. TCP/IP and OSI Model (Continued) TCP Basic (Continued) TCP -- Basic

Operating Systems CS 571

Layering in Networked computing. OSI Model TCP/IP Model Protocols at each layer

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Single Network: applications, client and server hosts, switches, access links, trunk links, frames, path. Review of TCP/IP Internetworking

Novell TCP IP for Networking Professionals.

Lecture-4. TCP/IP-Overview:

Network Reference Models

TSIN02 - Internetworking

TSIN02 - Internetworking

Computer Network Addressing. The TCP/IP Layers and Addresses. Topics. The Internet Communication. The TCP/IP Layers and Addresses IP Address

History of TCP/IP and Internet (continued) TCP/IP. History of TCP/IP and Internet. History of TCP/IP and Internet

Peer entities. Protocol Layering. Protocols. Example

Networking and Internetworking 1

TSIN02 - Internetworking

Data & Computer Communication

4. Basic IP Support Protocols

Novell. NetWare 6. TCP/IP ADMINISTRATION GUIDE

UDP, TCP, IP multicast

Business Data Communications and Networking

Reference Models. 7.3 A Comparison of the OSI and TCP/IP Reference Models

06/02/ Local & Metropolitan Area Networks 0. INTRODUCTION. 1. History and Future of TCP/IP ACOE322

TCP/IP Fundamentals. Introduction. Practice Practice : Name. Date Period

Internetwork Protocols

b) Diverse forms of physical connection - all sorts of wired connections, wireless connections, fiber optics, etc.

Chapter 3: Network Protocols and Communications CCENT Routing and Switching Introduction to Networks v6.0 Instructor Planning Guide

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I

INTRODUCTORY INFORMATION TECHNOLOGY COMMUNICATING OVER NETWORKS. Faramarz Hendessi

CPS221 Lecture: Layered Network Architecture

Review of Important Networking Concepts

Chapter Motivation For Internetworking

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

NETWORK PROGRAMMING. Instructor: Junaid Tariq, Lecturer, Department of Computer Science

1. IPv6 is the latest version of the TCP/IP protocol. What are some of the important IPv6 requirements?

C18: Network Fundamentals and Reliable Sockets

CS-461 Internetworking. Dr. Mohamed Aboutabl

CPEG514 Advanced Computer Networks. Atef Abu Salim University of Nizwa Spring 2013/2014

B.Sc. (Hons.) Computer Science with Network Security B.Eng. (Hons) Telecommunications B.Sc. (Hons) Business Information Systems

Network+ Guide to Networks 5 th Edition. Chapter 4 Introduction to TCP/IP Protocols

Chapter 2 Network Models 2.1

Online Documentation: To access the online documentation for this and other Novell products, and to get updates, see

Transcription:

What is a Network? TCP / IP Computer network a set of computers using common protocols to communicate over connecting transmission media. Protocol a formal description of message formats and the rules two or more machines follow to exchange messages. CS3 - AWT/Swing 1 CS3 - AWT/Swing 2 Protocols The ISO OSI Model OSI Hi Hi Got the time? 2:00 time TCP connection req. TCP connection reply. Get http://gaia.cs.umass.edu/index.htm <file> APPLICATION PRESENTATION SESSION TRANSPORT NETWORK DATA LINK PHYSICAL Top Layer Bottom Layer CS3 - AWT/Swing 3 CS3 - AWT/Swing 4 The TCP/IP Protocol Suite The TCP/IP Protocol Suite TCP/IP is a set of protocols that were created specifically to allow development of network and internetwork communications on a global scale TCP/IP is the most commonly used protocols within the internet. TCP/IP is normally considered to be a fourlayer system. Application Transport Network Link Telnet, FTP, e-mail, etc. TCP, UDP IP device driver and interface card CS3 - AWT/Swing 5 CS3 - AWT/Swing 6

The TCP/IP Reference Model Standardization OSI APPLICATION PRESENTATION SESSION TRANSPORT NETWORK DATA LINK PHYSICAL INTERNET APPLICATION TRANSPORT INTERNET HOST TO NETWORK Telnet, ftp, etc. TCP, UDP IP, ICMP, IGMP Device driver and card Who controls the TCP/IP protoocol suite? The Internet Society (ISOC) a professional society to facilitate, support, and promote the evolution and growth of the Internet The Internet Architecture Board (IAB) the technical oversight and coordination body The Internet Engineering Task Force (IETF) is the near-term, standards-oriented group. The Internet Research Task Force (IRTF) pursues longterm research projects. CS3 - AWT/Swing 7 CS3 - AWT/Swing 8 RFCs All official standards in the internet community are published as a Request for Comments, or RFC. All RFCs are available at no charge through electronic mail, FTP, or the Web. A nice place to get RFCs is at http://www.rfc-editor.org/ IP: Internet Protocol IP is the workhorse protocol of the TCP/IP protocol suite IP provides an unreliable, connectionless, datagram delivery service RFC791 is the official specification of IP Sits in the Internet Layer of the TCP/IP Model CS3 - AWT/Swing 9 CS3 - AWT/Swing 10 Addressing A distinction is made between names, addresses, and routes A name indicates what we seek An address indicates where it is A route indicates how to get there IP deals primarily with addresses. It is the task of higher level protocols to make the mapping from names to addresses. CS3 - AWT/Swing 11 IP Addresses Every host on the internet must have a unique Internet Address (an IP address) IP addresses are 32-bit numbers and are divided into two components: the host address and the network address The number of bits assigned to the host and network varies depending on the class of the address CS3 - AWT/Swing 12

Dotted Decimal Notation IP addresses are normally written as four numbers (octets), one for each byte of the address. 129.21.38.169 Dotted Decimal Notation Two sections Net identifies the network to which a computer belongs Will always contain the first octet Host Identifies an individual machine Will always contain the last octet CS3 - AWT/Swing 13 CS3 - AWT/Swing 14 IP address classes Class A For very large networks 1 st octet identifies net (1-126) / Octet 2-4 identifies host Can support 16million+ (2 24-2) hosts Class B For medium sized networks (like college campuses) Octet 1-2 identifies net / Octet 3-4 identifies host Octet 1 = 128 191 Can support 65K hosts (2 16-2) IP address classes Class C For small businesses Octet 1-3 identifies net / Octet 4 identifies host 1 st octet = 192 223 Can support 254 hosts Class D / Class E Multicast CS3 - AWT/Swing 15 CS3 - AWT/Swing 16 IP Address Classes The easiest way to differentiate between the classes is to look at the first number Class Range A 0.0.0.0 to 127.255.255.255 B 128.0.0.0 to 191.255.255.255 C 192.0.0.0 to 223.255.255.255 D 224.0.0.0 to 239.255.255.255 E 240.0.0.0 to 247.255.255.255 Special IP addresses 0.0.0.0 The default network for any machine 127.0.0.1 Loopback address to send messages to yourself 255.255.255.255 Broadcast send messages to all on a network. CS3 - AWT/Swing 17 CS3 - AWT/Swing 18

Assigning IP Addresses Since every interface must have a unique IP address, there must be a central authority for assigning numbers That authority is the Internet Network Information Center, called the InterNIC. The InterNIC assigns only network ids, the assignment of host ids is up to the system administrator CS3 - AWT/Swing 19 IP Addresses Note that each piece of network hardware also has a unique Ethernet (MAC) Address For IP over ethernet, conversion from IP to MAC address must be made. Conversion table usually kept in cache Address Resolution Protocol (ARP) used to query hardware for addresses NOT a TCP/IP Protocol! CS3 - AWT/Swing 20 IP Routing and delivery of packets Only responsible for sending packets from one point to another Doesn t care what s in the packet or if packets are part of a larger message. CS3 - AWT/Swing 21 Other Internet Protocols ICMP Internet Control Message Protocol Supports packets containing error, control, and informational methods. Defined on top of IP E.g. used by ping. IGMP Internet Group Management Protocol Standard for IP multicasting over the Internet Defined on top of IP CS3 - AWT/Swing 22 Transport Layer The transport layer is responsible for Disassembling and assembling streams of data Addressing packets (and send to IP) Error checking Types of Transfer Networks typically provide two types of transfer Connection-oriented often reliable stream based Point to point like phone call Connectionless often unreliable datagram based Sends independent packets of data like Postal Mail Order of delivery is not important Delivery not guaranteed, CS3 - AWT/Swing 23 CS3 - AWT/Swing 24

Connection-oriented Transfer Connectionless Transfer Server Accept Connection Establishment Client Connect Server Client Communication Communication CS3 - AWT/Swing 25 CS3 - AWT/Swing 26 Transport Layer The TCP/IP Protocol Suite TCP Transmission Control Protocol Connection based protocol that provides a reliable flow of data UDP Datagram Protocol Sends independent packets of data with no guarantee of arrival ICMP ARP TCP IP Hardware Interface UDP IGMP RARP application transport network link CS3 - AWT/Swing 27 CS3 - AWT/Swing 28 Transmission Control Protocol TCP provides a connection-oriented, reliable, byte stream service (RFC793) TCP is an independent, general purpose protocol that can be adapted for use with delivery systems other than IP. TCP Streams A stream of 8-bit bytes is exchanged across a TCP connection. The treatment of the byte stream by TCP is similar to the treatment of a file by the UNIX operating system. Connections provided by TCP allow concurrent transfer in both directions. Such connections are called full duplex. CS3 - AWT/Swing 29 CS3 - AWT/Swing 30

TCP Ports TCP uses protocol port numbers to identify the ultimate destination within a machine. How does one determine the port to communicate with? Well-known Ports Randomly Assigned Ports Questions Datagram Protocol UDP is a simple, unreliable, datagramoriented, transport layer protocol (RFC768). 0 15 16 31 16-bit source port 16-bit length data (if any) 16-bit destination port 16-bit checksum 8 bytes CS3 - AWT/Swing 31 CS3 - AWT/Swing 32 Datagram Protocol Designed for applications where streams of data need not be disassembled or assembled Messages that fit in a single packet Will not keep track of what is send nor resend if not received UNIX Networking In the early 80s UNIX was being developed by several organizations One of the most influential development groups was UCB 4BSD provided support for the DARPA Internet networking protocols, TCP/IP Some consider 4BSD responsible for the popularity of the TCP/IP protocols CS3 - AWT/Swing 33 CS3 - AWT/Swing 34 Application Layer: Sockets Berkeley sockets are one of the most widely used communication APIs A socket is an object from which messages are sent and received The Network Socket A socket represents a connection (line of communication) between 2 processes: Usually on different machines, but can be on the same machine Communication is usually bi-directional Based on some protocol Different Sockets will implement different protocols Analogous to ChatSession object in project. CS3 - AWT/Swing 35 CS3 - AWT/Swing 36

Sockets But more on this next week when we talk about networking in Java. Questions? Summary TCP/IP IP Internet Layer TCP / UDP Transport Layer Sockets Application Layer Thursday: Exam 2 Review CS3 - AWT/Swing 37 CS3 - AWT/Swing 38