TCP/IP TCP/IP Basics Alvin Kwan. TCP/IP What is TCP/IP?  It is a protocol suite governing how data can be communicated in a network environment, both.

Slides:



Advertisements
Similar presentations
Introduction to TCP/IP
Advertisements

IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
Network Certification Preparation. Module - 1 Communication methods OSI reference model and layered communication TCP/IP model TCP and UDP IP addressing.
TCP/IP Basics Alvin Kwan.
Lesson 7 – THE BUSINESS OF NETWORKING. TCP/IP and UDP Other Internet protocols Important Internet protocols OVERVIEW.
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
Introduction to TCP/IP
Introduction To Networking
Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.
1 Version 3.0 Module 9 TCP/IP Protocol and IP Addressing.
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name.
Chapter Overview TCP/IP Protocols IP Addressing.
1.  A protocol is a set of rules that governs the communications between computers on a network.  Functions of protocols:  Addressing  Data Packet.
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
Guide to MCSE , Second Edition, Enhanced1 Windows XP Network Overview Most versatile Windows operating system Supports local area network (LAN) connections.
Hands-On Microsoft Windows Server 2003 Networking Chapter Three TCP/IP Architecture.
TCP/IP Reference Model For more notes and topics visit: eITnotes.com.
Network Protocols. Why Protocols?  Rules and procedures to govern communication Some for transferring data Some for transferring data Some for route.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 3: TCP/IP Architecture.
NetworkProtocols. Objectives Identify characteristics of TCP/IP, IPX/SPX, NetBIOS, and AppleTalk Understand position of network protocols in OSI Model.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
Chapter 9.
CIM 2465 Intro to TCP/IP1 Introduction to TCP/IP (Topic 5) Textbook: Networking Basics, CCNA 1 Companion Guide, Cisco Press Cisco Networking Academy Program,
Jaringan Komputer Dasar OSI Transport Layer Aurelio Rahmadian.
TCP/IP Yang Wang Professor: M.ANVARI.
Huda AL_Omairl - Network 71 Protocols and Network Software.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 2: TCP/IP Architecture.
Chapter Three Network Protocols By JD McGuire ARP Address Resolution Protocol Address Resolution Protocol The core protocol in the TCP/IP suite that.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Chapter 6-2 the TCP/IP Layers. The four layers of the TCP/IP model are listed in Table 6-2. The layers are The four layers of the TCP/IP model are listed.
ITEC 370 George Vaughan Franklin University
1 TCP/IP Internetting ä Subnet layer ä Links stations on same subnet ä Often IEEE LAN standards ä PPP for telephone connections ä TCP/IP specifies.
Addressing Through the Layers  Data Link Layer Address  Network Layer Address.
1 TCP/IP, Addressing and Services S. Hussain Ali M.S. (Computer Engineering) Department of Computer Engineering King Fahd University of Petroleum and Minerals.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
CHAPTER 5 TCP/IP PROTOCOLS. P ROTOCOL STANDARDS Protocols are formal rules of behavior When computers communicate, it is necessary to define a set of.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing.
Basic IP Protocol Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 3: TCP/IP Architecture.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
Chapter 2 - Page 1 Infogem Institute of Technology CCNA Course TCP/IP Protocol Suite TCP/IP PROTOCOL SUITE Chapter 3 Sybex, Chapter 9 Exam Cram.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
OV Copyright © 2013 Logical Operations, Inc. All rights reserved. TCP/IP Addressing and Data Delivery  The TCP/IP Protocol Suite  IP Addressing.
Linux Operations and Administration Chapter Eight Network Communications.
Network Layer (OSI and TCP/IP) Lecture 9, May 2, 2003 Data Communications and Networks Mr. Greg Vogl Uganda Martyrs University.
Telecommunications Essentials John R. Durrett July 5, 2005.
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 5 – VoIP and the OSI Model.
NETWORKING (2) Dr. Andy Wu BCIS 4630 Fundamentals of IT Security.
1 Objectives Identify the basic components of a network Describe the features of Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6)
Advanced Higher Computing Computer Networking Topic 1: Network Protocols and Standards.
TCP/IP Protocol Suite and IP Addressing Presented By : Dupien AMS.
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
CIS 173 Networking Week #9 OBJECTIVES Chapter #6 Network Communications Protocols.
1 OSI Reference Model Benefits Standardizes interfaces Facilitates modular engineering Ensures interoperable technology Accelerates evolution Simplifies.
11/18/2016Basic TCP/IP Networking 1 TCP/IP Overview Basic Networking Concepts.
Network Layer, and Logical Addresses
Chapter 5 Network and Transport Layers
Part I. Overview of Data Communications and Networking
Lec 2: Protocols.
The Open System Interconnection (OSI) Model & Network Protocols.
Module 9: TCP/IP Protocol Suite and IP Addressing
TCP/IP Protocol Suite: Review
TCP/IP Protocol Suite and IP Addressing
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 2: TCP/IP Architecture.
Presentation transcript:

TCP/IP TCP/IP Basics Alvin Kwan

TCP/IP What is TCP/IP?  It is a protocol suite governing how data can be communicated in a network environment, both local and globally.  To remind you what a protocol is, please read orkMobility/split/node10.html to learn a particular protocol known as ARQ (automatic repeat request) protocol orkMobility/split/node10.html orkMobility/split/node10.html

TCP/IP OSI vs. TCP/IP

TCP/IP History of TCP/IP (1/2)  Stands for Transmission Control Protocol/Internet Protocol (TCP/IP)  Developed by Defense Advanced Research Projects Agency (DARPA) under the sponsorship of U.S. Department of Defense (DoD) in since late 1960s  1972 – Telnet  1973 – File Transfer Protocol (FTP)  1974 – Transmission Control Protocol (TCP)

TCP/IP History of TCP/IP (2/2)  1980 – User Datagram Protocol (TCP)  1981 – Internet Protocol (TCP)  1982 – TCP/IP as a protocol suite  1984 – Domain Name System (DNS)  1991 – Transfer of funding responsibility from DAPRA to National Science Foundation (NSF), which started to turn the military originated protocols into civic use, notably in education sector

TCP/IP Some TCP/IP features  It is an open standard, which is also adopted by the Internet.  It offers a routable protocol such that the path of every piece of data that moves through the network is traceable.  It adopts a single and simple addressing scheme which is easy to understand  IP is a connectionless protocol (with data transferred in individual packets); whereas TCP is connection-oriented.

TCP/IP Connectionless vs. Connection-oriented Protocols (1/2)  Connectionless protocols The data communication method occurs between hosts with no previous setup The data communication method occurs between hosts with no previous setup Send data across the network to its destination without guaranteeing receipt Send data across the network to its destination without guaranteeing receipt Higher layers handle packet sequencing and certain data integrity control issues Higher layers handle packet sequencing and certain data integrity control issues Fast; require little overhead Fast; require little overhead Most LAN protocols at the data link layer are connectionless Most LAN protocols at the data link layer are connectionless Data packets in a connectionless communication are referred to as datagrams Data packets in a connectionless communication are referred to as datagrams More to follow …

TCP/IP Connectionless vs. Connection-oriented Protocols (2/2)  Connection-oriented protocols Establish a formal connection between two computers, guaranteeing the data will reach its destination Establish a formal connection between two computers, guaranteeing the data will reach its destination Higher layers can rely on low layers to handle matters of packet sequencing, data integrity, and delivery timeouts Higher layers can rely on low layers to handle matters of packet sequencing, data integrity, and delivery timeouts Slower but more reliable Slower but more reliable ATM networks are connection oriented at the data link layer ATM networks are connection oriented at the data link layer

TCP/IP Network Interface Layer (1/3)  Lowest layer in the TCP/IP stack  To define how a computer connects to a network  It does not regulate the type of network that the host is on and thus TCP/IP can be run on an Ethernet, Token Ring or Fiber Distributed Data Interface (FDDI) or any other network topology

TCP/IP Network Interface Layer (2/3)  Physical (or MAC) address, which is burnt into every network interface card (NIC)  MAC address is usually represented in 12 hexadecimal digits (or 48 bits) First six hexadecimal digits uniquely represent the manufacturer First six hexadecimal digits uniquely represent the manufacturer Last six hexadecimal digits is a unique serial number that the card’s manufacturer has assigned to the NIC Last six hexadecimal digits is a unique serial number that the card’s manufacturer has assigned to the NIC

TCP/IP Network Interface Layer (3/3)  For a TCP/IP packet to be delivered, it must contain the destination node’s MAC address so that a host can check whether the packet is directed to it.  A broadcast packet is designed to be attended by all hosts and it has a target MAC address of FFFFFFFF, i.e., all bits set.

TCP/IP The Internet Layer  The internal layer contains protocols for addressing and routing of packets. Internet Protocol (IP) Internet Protocol (IP) Address Resolution Protocol (ARP) Address Resolution Protocol (ARP) Internet Control Message Protocol (ICMP) Internet Control Message Protocol (ICMP) Internet Group Message Protocol (IGMP) Internet Group Message Protocol (IGMP) Routing protocols (e.g., RIP) Routing protocols (e.g., RIP)

TCP/IP Internet Protocol (1/2)  To determine the source and destination IP addresses of every packet  Every host on a network is assigned a unique IP address (logical address)  IP address is divided into two parts: network number and host address on that network  Based on the subnet mask and IP address, it can be decided whether the target is a “remote” host or a “local” host (and details will be given later)

TCP/IP Internet Protocol (2/2)  For a remote host, IP needs to send the packet through a gateway or a router (which is also identified by an IP address).  Connectionless and thus unreliable transmissiion

TCP/IP Address Resolution Protocol (ARP)  Protocol to resolve an IP address to a physical address.  The hardware address will be cached for a short time.  To resolve an IP address to a physical address Try the ARP cache (kept in RAM) Try the ARP cache (kept in RAM) If not found in cache, initiate an ARP request broadcast and keep the result in cache If not found in cache, initiate an ARP request broadcast and keep the result in cache Try the command “ARP –A” in a command window Try the command “ARP –A” in a command window

TCP/IP ARP Command

TCP/IP Internet Control Message Protocol (ICMP)  For sending error messages, performing diagnostics and controlling data flow  Try “ping cite.hku.hk” to test the network connection to another host

TCP/IP Internet Group Message Protocol (IGMP)  IGMP enables one host to send one stream of data to many hosts at the same time with the use of a multicast address  Some routing protocols use IGMP to exchange routing tables

TCP/IP Routing Protocols  Routing Information Protocol (RIP) Simple IP-based routing protocol that collects and exchange information about network route and status Simple IP-based routing protocol that collects and exchange information about network route and status Only suitable for small networks Only suitable for small networks  Open Shortest Path First (OSPF) Typically used by routers to determine the best path through a network Typically used by routers to determine the best path through a network

TCP/IP Transport Layer  Transmission Control Protocol (TCP) Primary IP transport protocol Primary IP transport protocol Connection-oriented and thus guarantee a more reliable delivery Connection-oriented and thus guarantee a more reliable delivery Use port numbers to identify communicating applications Use port numbers to identify communicating applications Responsible for message fragmentation and reassembly (with the use of sequence number) Responsible for message fragmentation and reassembly (with the use of sequence number)  User Datagram Protocol (UDP) A connectionless transport protocol which runs faster A connectionless transport protocol which runs faster continued

TCP/IP TCP/IP Applications  Domain Name System (DNS) For URL to IP-address translation For URL to IP-address translation  File Transfer Protocol (FTP) Application protocol for file transfer and directory/file manipulation services Application protocol for file transfer and directory/file manipulation services  Telnet For remote terminal sign-on For remote terminal sign-on  Simple Mail Transport Protocol (SMTP) Provide messaging services (i.e., sending s) Provide messaging services (i.e., sending s) continued

TCP/IP IP Addressing  IP is responsible for addressing and routing in the TCP/IP environment  IP addresses Logical addresses, which are 32 bits (4 bytes) long Logical addresses, which are 32 bits (4 bytes) long A decimal number from 0 to 255, separated by periods, represents each byte or octet A decimal number from 0 to 255, separated by periods, represents each byte or octet Two sections Two sections  One defines the network a computer is on  One defines the host ID for a computer Example: Example:

TCP/IP IP Addressing  Originally, three classes of IP addresses Class A Class A  Large corporations  ID numbers between 1 and 126 (in its first octet, or 8 bits) Class B Class B  Medium-sized networks  Network IDs between 128 and 191 (in its first octet, or 8 bits) Class C Class C  Small networks  Range from 192 to 223 (in its first octet, or 8 bits)  IP address registries manage the total collection of valid IP addresses

TCP/IP IP Addressing  IP addresses are rapidly becoming scarce  TCP/IP’s technical governing body has reserved a series of addresses for private networks  IETF is working on a new implementation of TCP/IP (IPv6) that uses addresses that are 8 bytes long but retain backward compatibility with IPv4 4-byte addresses

TCP/IP Classless Inter-domain Routing (CIDR) (1/2)  A more efficient way to assign IP addresses than using IP address “classes”  The network and host addresses boundary is not always made on octet boundaries, but may be made any specific number of bits from the beginning of the address  Steal bits from the network address for use in the host address and this is also called supernetting  A slash following IP address is used to indicate the number of bits of the network address, e.g., /22

TCP/IP Classless Inter-domain Routing (CIDR ) (2/2)  Advantages Subnet ID may now be all 0’s or 1’s Subnet ID may now be all 0’s or 1’s Avoid of wasting a number of IP addresses when subnetting a Class C address Avoid of wasting a number of IP addresses when subnetting a Class C address  Disadvantages Router support is needed Router support is needed All possible bit patterns used for supernetting a network are to be reserved to be used by that network only All possible bit patterns used for supernetting a network are to be reserved to be used by that network only

TCP/IP Subnet Masks  The “all ones” bit pattern that masks the network portion of an IP address  Class A address default:  Class B address default:  Class C address default:

TCP/IP Examples on Subnet Mask and Supernets  See pp of the recommended reading

TCP/IP Dynamic Host Configuration Protocol (DHCP)  A TCP/IP protocol that allows automatic IP addresses and subnet mask assignment  Major benefit is ease with which computers can be moved  Not suitable for systems that require a static address, such as web servers  A dedicated host, which can be a router or a computer, to take the role of DHCP server

TCP/IP Readings   