Professional Documents
Culture Documents
Ccna1 m9 TCP Ip and Ip Addressing
Ccna1 m9 TCP Ip and Ip Addressing
Objectives
Introduction to TCP/IP
Application Layer
Handles high-level protocols, issues of representation, encoding, and dialog control. The TCP/IP protocol suite combines all application related issues into one layer and ensures this data is properly packaged before passing it on to the next layer.
Transport Layer
The transport layer provides transport services including flow control and reliability from the source host to the destination host. The transport layer constitutes a logical connection between the endpoints of the network.
Internet Layer
The purpose of the Internet layer is to select the best path through the network for packets to travel. The main protocol that functions at this layer is the Internet Protocol (IP).
IP - Internet Protocol
IP: provides connectionless, best-effort delivery routing of packets. IP is not concerned with the content of the packets but looks for a path to the destination. IP performs the following operations:
Defines a packet and an addressing scheme Transfers data between the Internet layer and network access layers Routes packets to remote hosts
Internet
Two computers, anywhere in the world, following certain hardware, software, and protocol specifications, can communicate reliably.
Internet Addresses
IP Address Classes
IP addresses are divided into classes to define the large, medium, and small networks.
IP Address Classes
IP Address
The 127.0.0.0 network is reserved for loopback testing. The Class D address class was created to enable multicasting in an IP address. A multicast address is a unique network address that directs packets with that destination address to predefined groups of IP addresses. A Class E address is reserved these addresses for research.
Reserved IP Address
Certain host addresses are reserved and cannot be assigned to devices on a network.
Network address Used to identify the network itself Broadcast address Used for broadcasting packets to all the devices on a network
Network address
Network address provide a convenient way to refer to all of the addresses on a particular network or subnetwork. Two hosts with differing network address require a device, typically a router, in order to communicate. An IP address that ends with binary 0s in all host bits is reserved for the network address.
Broadcast address
Broadcast goes to every host with a particular network ID number. An IP address that ends with binary 1s in all host bits is reserved for the directed broadcast address. An IP address with binary 1s in all network bits and host bits is reserved for the local broadcast address.
255.255.255.255
STOP
192.168.20.0 192.168.20.255
Example: 172.16.20.200
172.16.20.200 is Class B address Network portion: 172.16 Host portion: 20.200 Network address: 172.16.0.0 Broadcast address: 172.16.255.255
Public IP Address
In order to connect to the Internet, every machines must have its own public IP address. Public IP addresses are unique. With the rapid growth of the Internet, public IP addresses were beginning to run out. New addressing schemes are used so solve this:
Classless interdomain routing (CIDR) IP version 6 (IPv6) Network Address Translation (NAT)
Private Address
Private networks can use private address to assign their machines in the local network. RFC 1918 sets aside three blocks of IP addresses for private, internal use.
Class A: 10.0.0.0 Class B: 172.16.0.0 172.31.0.0 Class C: 192.168.0.0 192.168.255.0
Connecting a network using private addresses to the Internet requires translation (overloading) of the private addresses to public addresses. This translation is served by NAT
Valid address?
150.100.255.255 175.100.255.18 195.234.253.0 100.0.0.23 188.258.221.176 127.34.25.189 224.156.217.73
Obtaining an IP address
Obtaining an IP Address
Dynamic addressing
There are a some different methods that you can use to assign IP addresses dynamically:
RARP: Reverse Address Resolution Protocol. BOOTP: BOOTstrap Protocol. DHCP: Dynamic Host Configuration Protocol.
IP
BOOTP IP
Network administrator creates a configuration file that specifies the parameters for each device. The administrator must add hosts and maintain the BOOTP database. BOOTP packets can include the IP address, as well as the address of a router, the address of a server, and vendorspecific information.
Successor to BOOTP. Automatically allows a host to obtain an IP address from an IP pool Use 4-steps IP registration and requires IP leased time
Broadcast request and discover DHCP server Offer IP address, DHCP server address and Default Gateway address Request for the offered IP statistics Acknownledge the request, confirm registration
Encapsulation
M A R
ARP operation
ARP Table:
IP IP Data 10.0.2.110.0.2.9
10.0.2.1 A.B.C.1.2.3
10.0.2.5 A.B.C.4.5.6
10.0.2.9 A.B.C.7.8.9
10.0.2.1 A.B.C.1.2.3
10.0.2.5 A.B.C.4.5.6
10.0.2.9 A.B.C.7.8.9
is t P a I h y T m
10.0.2.1 A.B.C.1.2.3 10.0.2.5 A.B.C.4.5.6 10.0.2.9 A.B.C.7.8.9
10.0.2.1 A.B.C.1.2.3
10.0.2.5 A.B.C.4.5.6
10.0.2.9 A.B.C.7.8.9
Data
10.0.2.1 A.B.C.1.2.3
10.0.2.5 A.B.C.4.5.6
10.0.2.9 A.B.C.7.8.9
Internetwork communication
How to communicate with devices that are not on the same physical network segment.
Default gateway
Default-Gateway
In order for a device to communicate with another device on another network, you must supply it with a default gateway. A default gateway is the IP address of the interface on the router that connects to the network segment on which the source host is located. In order for a device to send data to the address of a device that is on another network segment, the source device sends the data to a default gateway.
Remote Destination
Packet forwarding
At layer 2, when encapsulating a frame, the host needs the destination MAC address The host will then compares IP address of source and destination.
If the destination is on another network, then it will encapsulate the frame with the default-gateway MAC address. If the destination is on the same net work, then it will use the destination MAC address
Then it checks if the needed MAC address is in the ARP table, if it is not proceed ARP request to find the needed MAC address
Summary
Four layers of TCP/IP model IP address, IP address classes Network address and broadcast address Public address and private address IPv4 versus IPv6 Static addressing, RARP, BOOTP, DHCP ARP local and remote destination