1 TCP/IP Networking. 2 TCP/IP TCP/IP is the networking protocol suite most commonly used with UNIX, Windows, NT and most other OS’s. TCP/IP defines a.

Slides:



Advertisements
Similar presentations
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 25 Introduction to Computer Networks.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5.
SYSTEM ADMINISTRATION Chapter 19
Copyright 2009 Kenneth M. Chipps Ph.D. Host Addressing Last Update
An Engineering Approach to Computer Networking
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 13: Troubleshoot TCP/IP.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
Chapter 8 Administering TCP/IP.
Subnetting.
Chapter 23: ARP, ICMP, DHCP IS333 Spring 2015.
© N. Ganesan, All rights reserved. Chapter IP Routing.
Network Layer (Part IV). Overview A router is a type of internetworking device that passes data packets between networks based on Layer 3 addresses. A.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Layering and the TCP/IP protocol Suite  The TCP/IP Protocol only contains 5 Layers in its networking Model  The Layers Are 1.Physical -> 1 in OSI 2.Network.
Protocol Headers Pre DA SA 0800h … version H L 6 TCP Header Data FCS
TCP/IP Networking sections 13.2,3,4,5 Road map: TCP, provide connection-oriented service IP, route data packets from one machine to another (RFC 791) ICMP,
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
Business Data Communications, by Allen Dooley, (c) 2005 Pearson Prentice HallChapter Five 1 Business Data Communications Chapter Five Network, Transport,
Managing Network connections. Network Cabling Ethernet Topology Bus topology – Connects each node in a line – Has no central connection point Star topology.
IP (Internet Protocol) –the network level protocol in the Internet. –Philosophy – minimum functionality in IP, smartness at the end system. –What does.
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Addressing Networking for Home and Small Businesses – Chapter 5.
Connecting Networks © 2004 Cisco Systems, Inc. All rights reserved. Exploring How IP Address Protocols Work INTRO v2.0—4-1.
ITS CSS Desktop Support Introduction to networking concepts Last updated: 9/30/2008 by pxahelp.
DNS (Domain Name System) Protocol On the Internet, the DNS associates various sorts of information with domain names. A domain name is a meaningful and.
1 Routing. 2 Routing is the act of deciding how each individual datagram finds its way through the multiple different paths to its destination. Routing.
Examining TCP/IP.
Objectives: Chapter 5: Network/Internet Layer  How Networks are connected Network/Internet Layer Routed Protocols Routing Protocols Autonomous Systems.
Copyright © Lopamudra Roychoudhuri
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 2: TCP/IP Architecture.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 2: Configuring Network Protocols.
Part 3: Internetworking Internet architecture, addressing, encapsulation, reliable transport and the TCP/IP protocol suite.
Chapter 18 IP: Internet Protocol Addresses
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
1 TCP/IP Internetting ä Subnet layer ä Links stations on same subnet ä Often IEEE LAN standards ä PPP for telephone connections ä TCP/IP specifies.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing.
2010 paro, bhutan IP Basics IP/ISP Services Workshop July, 2010 Paro, Bhutan.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
1 TCP/IP Networking Yue Cui 06/13/02. 2 Presentation Outline Introduction Packets and Encapsulation IP Addresses, Routing ARP, DHCP and PPP Security Issue.
How to connect to the Internet 1998/12/09 KEIO University, JAPAN Mikiyo
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Dynamic Host Configuration Protocol (DHCP)
CSIT 220 (Blum)1 ARP Based on Computer Networks and Internets (Comer)
Linux Operations and Administration Chapter Eight Network Communications.
CS470 Computer Networking Protocols
TCP/IP Protocol Suite and IP Addressing Presented By : Dupien AMS.
Chapter 5. An IP address is simply a series of binary bits (ones and zeros). How many binary bits are used? 32.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Scaling the Network: Subnetting and Protocols
Scaling the Network: Subnetting and Other Protocols
Scaling the Network Chapters 3-4 Part 2
IP: Addressing, ARP, Routing
Chapter 6 – Routing.
CS4470 Computer Networking Protocols
Net 323: NETWORK Protocols
By - Ricardo Sanchez, Ken Wolters and William Hibbard
Module 9: TCP/IP Protocol Suite and IP Addressing
Scaling the Network: Subnetting and Other Protocols
Layering and the TCP/IP protocol Suite
Presentation transcript:

1 TCP/IP Networking

2 TCP/IP TCP/IP is the networking protocol suite most commonly used with UNIX, Windows, NT and most other OS’s. TCP/IP defines a uniform programming interface to different types of networking hardware, guaranteeing that systems can exchange data despite their differences The technical success of the internet is due largely to the elegant and flexible design of TCP/IP.

3 TCP/IP Protocol Suite TCP/IP is a protocol suite consisting of several components: –IP - Internet protocol that routes data packets from one machine to another –ICMP - Internet Control Message Protocol, which provides low level support for IP, such as error messages, routing assistance and debugging help. –ARP - Address Resolution Protocol, which translates IP addresses to hardware addresses –TCP and UDP - Transmission Control Protocol and User Datagram Protocol, which deliver data to specific applications on the destination machine.

4 TCP/IP Family

5 Request for Comment (RFC) IP : RFC 791 ICMP: RFC 792 ARP: RFC 832 UDP: RFC 768 TCP: RFC 793 CIDR: RFC 1519 DHCP: RFC 2131 ….

6 Packet Addressing Network packets must be properly addressed to reach their destination. Several addressing schemes are used: –MAC addresses for hardware: MAC addresses distinguishes it from other machines on the physical network –IP addresses for software: IP address identifies it on the global network –Hostnames for people: this is for the benefit of humans

7 MAC Addresses Every Ethernet card has built into it a 48 bit address (Ethernet address or Media Access Control (MAC) address). The high 24 bits of the address are used to assign a unique number to manufactures of Ethernet addresses and the low 24 bits are assigned to the individual Ethernet cards made by the manufacturer. Every packet of information sent on the Ethernet contains a source and destination MAC address.

8 Hostnames Most computers on a TCP/IP network are given a name. A fully qualified name, (fully qualified domain name) uses the format: –hostname.site.domain.country Qualified hostnames give the full path and is unique to the entire Internet.

9 IP Addresses Computers and other equipment involved in TCP/IP networks use numbers to identify hosts on the Internet. These are called IP (Internet Protocol) addresses. IP addresses are currently 32 bit numbers (4 bytes long). An IP address consists of two parts, a network portion and a host portion. The network portion identifies the network the machine belongs to and the host portion uniquely identifies the host on that particular network.

10 Network Classes There are several classes of IP addresses, in that they differ in the way that bytes are allocated between the host and network part.

11 IP Addresses The size of the network and host portions of an IP address is specified by another 32 bit number called the netmask (also known as the subnet mask). To calculate which part of an IP address is the network and which the host the IP address and the subnet mask are treated as binary numbers. Each bit of the subnet mask and the IP address are compared and –if the bit is set in both the IP address and the subnet mask then the bit is set in the network address, –if the bit is set in the IP address but not set in the subnet mask then the bit is set in the host address.

12 IP Addresses

13 IP Addresses Assigning IP Addresses: –Some IP addresses are reserved for specific purposes and these should not be assigned to machines. Network addresses : By convention, the network address is the IP address with the host address that is all 0’s. The network address is used to identify a network. Broadcast address: This is the network address with the host address set to all 1’s, and is used to send information to all the computers on a network, typically for routing. Loopback address: is a special address that refers to the local host. This allows software to address the local machine exactly the same way it would a remote machine.

14 Private IP Address

15 Subnetting Add another level to address/routing hierarchy: subnet Subnet masks define variable partition of host part Subnets visible only within site

16 Subsets The division between network part and host part does not necessarily have to fall on a byte boundary. However, the network part must be contiguous and appear at the high order end of the address.

17 CIDR Classless Inter-Domain Routing

18 CIRD Examples

19 CIDR Host Address Example

20 Routing Routing is the act of deciding how each individual datagram finds its way through the multiple different paths to its destination. Routing is concerned with finding the right network for a datagram. Once the right network has been found the datagram can be delivered to the host. Most hosts (and gateways) on the Internet maintain a routing table. The entries in the routing table contain the information describing where to send datagrams for a particular network.

21 Routing Table The routing table can be constructed in one of two ways: –constructed by the Systems Administrator, sometimes referred to as static routes –dynamically created by a number of different available routing protocols A static route is entered using the route command. –route add -net netmask gw eth1 –route add default gw eth0 Dynamic routing is performed by a daemon process that maintains and modifies the routing table.

22 Routing Tables You can check your routing table with the netstat -r –n command. The destination field is usually a network address, the gateway must be a host address. A default route is used for packets not explicitly addressed to any of the three networks listed or to the machine itself.

23 Data Forwarding Example Forwarding table at router R1 Subnet Number Subnet Mask Next Hop interface interface R2

24 Forwarding Algorithm D = destination IP address for each entry (SubnetNum, SubnetMask, NextHop) D1 = SubnetMask & D if D1 = SubnetNum if NextHop is an interface deliver datagram directly to D else deliver datagram to NextHop Use a default router if nothing matches Not necessary for all 1s in subnet mask to be contiguous Can put multiple subnets on one physical network Subnets not visible from the rest of the Internet

25 NAT – Network Address Translation Placement and operation of a NAT box.

26 Address Resolution Protocol The mapping of Ethernet addresses into Internet addresses is performed by the Address Resolution Protocol (ARP). This is done with the help of a table of MAC addresses against the IP addresses. The ARP only contains Ethernet addresses of machines on the local network. Delivery of information to machines not on the local network requires the intervention of routing software.

27 Address Resolution Protocol If host A wants to send a packet to host B on the same network, it uses ARP to discover B’s hardware address. If B is not on the same network, host A uses ARP to find the hardware address of the next-hop router to which a packet destined for B should be sent. Every machine maintains a table in memory called the ARP cache, which contains the result of recent ARP queries. arp -a displays the contents of the arp cache.

28 Dynamic Host Configuration Protocol This protocol enables a DHCP client to ‘lease’ a variety of network and administrative parameters from a central server that is authorized to distribute them. –IP addresses and netmasks –Gateways (default routes) –DNS name servers

29 Dynamic Host Configuration Protocol Operation of DHCP.

30 Adding a Machine to a Network In order to add a machine to a network, you would have to: –assign an IP address and a hostname –Set up the new host to configure its network interfaces at boot time –Set up a default route –Point to a DNS server, to allow access to the rest of the Internet

31 Assigning Host Names and Addresses This can be done in various ways. The /etc/hosts file is the oldest and simplest way to map names to IP addresses. /etc/hosts is important during the boot process because DNS is not available yet. It must contain at least the the mapping for the host and the loopback address. The hostname command assigns a hostname to a machine. You could also have DNS and NIS and NIS+ or even a combination of all these to assign host names and IP addresses.

32 Configuring Network Interfaces The ifconfig command enables or disables a network interface, sets its IP address and subnet mask, and sets various other options and parameters. It is usually run at boot time, but it can make changes on the fly too. –ifconfig interface address options….. up –ifconfig eth netmask up Then the default route should be set with the route command.

33 DNS The process of taking a hostname and finding the IP address is called name resolution. This can be done in two ways: –/etc/host file –Domain Name Service The Domain Name database coordinates a look up of a computer name and finds the corresponding Internet number. This is done by a set of name servers that keep track of computer names and the corresponding Internet addresses. These servers have the ability to store and report more than just the computer name.

34 Domain Naming System Hierarchy Name chinstrap.cs.princeton.edu educom princeton ■ ■ ■ mit csee ux01ux04 physics cisco ■ ■ ■ yahoonasa ■ ■ ■ nsfarpa ■ ■ ■ navyacm ■ ■ ■ ieee govmilorgnetukfr

35 One Example Name Resolution Princeton name server Cisco name server CS name server EE name server ■ ■ ■ Root name server ■ ■ ■