Download presentation
Presentation is loading. Please wait.
1
NT1210 Introduction to Networking
Unit 8: Chapter 8, The Internet Protocol (IP) 1
2
Objectives Identify the major needs and stakeholders for computer networks and network applications. Identify the classifications of networks and how they are applied to various types of enterprises. Compare and contrast the OSI and TCP/IP models and their applications to actual networks. Explain the functionality and use of typical network protocols. 2
3
Objectives Differentiate among major types of LAN and WAN technologies and specifications and determine how each is used in a data network. Explain basic security requirements for networks. Use network tools to monitor protocols and traffic characteristics. Plan and design an IP network by applying subnetting skills. Explain the functionality of typical network protocols. 3
4
Objectives Plan and design an IP network by applying subnetting skills. Categorize TCP/IP protocols according to network model layers. Describe how TCP/IP addressing moves data packets through networks. 4
5
Introducing the Internet Protocol (IP)
TCP/IP Model review: Layers 1 and 2 Protocols Example LAN/WAN Standards and Types in the TCP/IP Model 5 Figure 8-1
6
Introducing the Internet Protocol (IP)
TCP/IP Model review: Upper layers define non-physical (logical) networking functions Various Perspectives on the TCP/IP Model and Roles 6 Figure 8-2
7
Introducing the Internet Protocol (IP)
Network Layer protocols IP: Most important protocol defined by Network layer Almost every computing device on planet communicates, and most use IP to do so Network layer also defines other protocols 7
8
Introducing the Internet Protocol (IP)
Network Layer protocols: Part 1 Name Full Name Comments ICMP Internetwork Control Message Protocol Messages that hosts and routers use to manage and control packet forwarding process; used by ping command ARP Address Resolution Protocol Used by LAN hosts to dynamically learn another LAN host’s MAC address DHCP Dynamic Host Configuration Protocol Used by host to dynamically learn IP address (and other information) it can use DNS Domain Name System/Service Allows hosts to use names instead of IP address; needs DNS server to translate name into corresponding IP address (required by IP routing process) Other TCP/IP Network Layer Protocols 8 Table 8-1
9
Introducing the Internet Protocol (IP)
Network Layer protocols: Part 2 Name Full Name Comments RIP Routing Information Protocol Application that runs on routers so that routers dynamically learn IP routing tables (used to route IP packets correctly); open standard protocol defined in RFC 2453 EIGRP Enhanced Interior Gateway Routing Protocol Proprietary routing protocol owned by Cisco Systems OSPF Open Shortest Path First Open source routing protocol defined in RFC 2328 Other TCP/IP Network Layer Protocols 9 Table 8-1
10
Introducing the Internet Protocol (IP)
IPv6: Next generation of IP addressing. Needed because IPv4 addresses exhausted. 128-bit long addresses: 2128 or 3.4x1038 or over 340 undecillion IPs, that’s 340 with 36 zero’s after it. Customer usually gets /64 subnet, which yields 4 billion times IPs available in all of IPv4. Comparison: Number of IPv4 addresses equal to weight of cat; number of IPv6 addresses equal to weight of Earth and provides enough IP addresses for every grain of sand on every beach on earth. 10
11
Introducing the Internet Protocol (IP)
Migration to IPv6 has taken over decade and still in process. IPv6 originally defined back in mid-1990s. June 6, 2012 – Was the scheduled IPv6 Day, official worldwide “switch over” day, moved up to February IPv4 Vs. IPv6 Timeline 11 Figure 8-3
12
Introducing the Internet Protocol (IP)
IP defines many functions that work together with one ultimate goal: To send data from one host to another host through any TCP/IP network. Most important functions include: Creating end-to-end physical paths through TCP/IP network by interconnecting physical networks (LANs and WANs) using routers Identifying individual hosts and groups of hosts using IP addressing Routing (forwarding) IP packets to correct destination host Example of a Post Office Sorting a Letter Sent to Hollywood, California 12 Figure 8-4
13
Introducing the Internet Protocol (IP)
IP is like Post Office Example of a Post Office Sorting a Letter Sent to Hollywood, California 13 Figure 8-4
14
Introducing the Internet Protocol (IP)
Routers in IP network: Interconnect LANs and WANs via physical connectors called interfaces Example: Cisco 1841 router with two built-in Gigabit Ethernet LAN interfaces that use RJ-45 connectors Enterprise Class Router, LAN Interfaces, and WAN Interfaces 14 Figure 8-5
15
Introducing the Internet Protocol (IP)
IP interconnects LANs and WANs Interconnected LANs and WANs: Redundancy, but No LAN/WAN Detail 15 Figure 8-7
16
Introducing the Internet Protocol (IP): Routing
Routing IP Packets from Source to Destination IP addressing groups addresses into networks All addresses with same value in first parts of addresses considered to be in one network Example: All addresses that begin with 11, 12, 13, 14, or 15 in that particular network Example IP Address Groupings: All with the Same First Octet in the Same Group 19 Figure 8-11
17
Introducing the Internet Protocol (IP): Routing
IP routing example with routing tables: PC11 in left LAN sends IP packet to address (LAN on upper right) Following the steps in the Figure: Host PC11, noticing that the destination is not on the same local LAN, sends the packet to the router on the same LAN as itself: R1. R1 compares the IP packet’s destination IP address ( ) to R1’s IP routing table, matching the entry for 12.x.x.x (which means “all addresses that begin with 12). That routing table entry tells R1 to send the IP packet to R2 next. R1 forwards the IP across the WAN from R1 to R2. R2 compares the IP packet’s destination IP address ( ) to R2’s IP routing table, matching its entry for 12.x.x.x. That routing table entry tells R2 to send the packet directly to PC21 over R2’s LAN interface on the right. R2 forwards the IP packet across the LAN from R2 to PC21. Example IP Address Groupings: All with the Same First Octet in the Same Group 20 Figure 8-12
18
Introducing the Internet Protocol (IP): Routing
Routers build routing tables in two ways Static configuration: Routes entered manually and do not change Dynamic routing protocol: Application router uses to automatically learn new routes from other routers Following the steps in the Figure: R2 sends a routing protocol message listing an address grouping “12.x.x.x” (all addresses that begin with 12). R1 adds a route to its routing table, listing that group of addresses, and listing R2 as the next-hop router. For any packets R1 wants to send to addresses in this group, R1 will send the packets to R2 next. R1 using the routing protocol messages to advertise a route for 12.x.x.x to router R3. R3 adds a route to its routing table, listing that group of addresses, and listing R1 as the next-hop router. Routing Protocols Advertising All Addresses that Begin with 12 as One Route 21 Figure 8-13
19
Introducing the Internet Protocol (IP): Other Protocols
Domain Name System/Service (DNS): Mapping names to IP addresses Users use names; IP routing uses numbers DNS translates name into corresponding IP address DNS client sends DNS Request message DNS server returns DNS Reply Following the steps in the Figure: The user at PC11 wants to connect to “Server1”, but PC11 does not know Server1’s IP address. So, PC11 sends a DNS Request to the DNS Server. The DNS Server finds that “Server1” is “ ” per its list, so it sends a DNS Reply back to PC11 with that information. PC11 can now send a packet with destination IP address to Server1. The figure shows how DNS works in one company, but it also works worldwide, as discussed in Chapter 9, “The Internet DNS Name Resolution Request, Reply, and Packet to Server1 IP Address 22 Figure 8-14
20
Introducing the Internet Protocol (IP): Other Protocols
Layer 3 - Network IP with its Support Protocols 23 Figure 8-15
21
IP Addressing on User LANs: Network Settings
Locations Need IP addresses Each LAN and WAN interface on hosts and routers need IP address to communicate IP Addresses Used on Every LAN/WAN Interface 24 Figure 8-17
22
IP Addressing on User LANs: Network Settings
Original IPv4 RFC defined way to group IPv4 addresses using IP address classes (classful IP addressing) Every possible IPv4 address falls into class First Octet Class Purpose A Reserved Unicast addresses, in class A networks 127 Reserved for loopback testing B Unicast addresses, in class B networks C Unicast addresses, in class C networks D Multicast addresses; not used as unicast IP addresses E Experimental; not used as unicast IP addresses Summary of IPv4 Address Classes Based on First Octet Values 26 Table 8-2
23
IP Addressing on User LANs: Network Settings
LAN IP address classes summary Summary of How Class Rules Break Down the IPv4 Address Space 30 Figure 8-20
24
IP Addressing on User LANs: Network Settings
Private addresses: Classful IP networks reserved for enterprises to use in their network designs Can only be used on local LAN; can’t be routed through WAN (non-routable) Not regulated by agencies such as ARIN or ICANN Network ID Concept Size (Number of Addresses) 10.x.x.x Class A Private IP addressing space Over 16,000,000 networks of over 16,000,000 IPs each x.x – x.x Class B Private IP addressing space Over 65,000 networks of over >65,000 IPs each x.x Class C Private IP addressing space Over 65,000 networks of 256 IPs each 31
25
IP Addressing on User LANs: Network Settings
Static IP address assignment: Manually configured Static IP Address Assignment on Mac OS X 32 Figure 8-21
26
IP Addressing on User LANs: Network Settings
Dynamic Host Configuration Protocol (DHCP) defines way hosts can lease IP address from DHCP network server so does not have to be configured statically Operates on client-server concept DHCP protocol defined by set of RFCs Sample Network for DHCP Discussions 34 Figure 8-23
27
IP Addressing on User LANs: Network Settings
Once DHCP server exists in network and has been configured with set of IP addresses to lease, DHCP clients can request IP addresses DHCP Lease Process between a DHCP Client and Server 36 Figure 8-24
28
Short Break Take 10 39
29
IP Routing with Focus on Layer 3
IP defines how to route packets across TCP/IP network Some routing tasks must use logic from lower two layers because Network layer (3) cannot physically send bits Network layer relies on Layers 1 and 2 logic for this IP Routing Perspective, While Ignoring LAN/WAN Details 40 Figure 8-27
30
IP Routing with Focus on Layer 3
Router must have IP routing table with useful entries to route IP packets. Routing table may list multiple routes. Each IP route identifies network, as well as other information about how to send packets to that network. Routers look at incoming packet’s destination IP address and compare it to list of network IDs in its routing table to determine where to send packet to destination. 41
31
IP Routing with Focus on Layer 3
Finding a classful network ID based on IP address Five Classful Networks in a Small Corporate Network 42 Figure 8-28
32
IP Routing with Focus on Layer 3
Each route in routing table lists: Information about how to match IP packets Forwarding instructions that tell router where to forward packets to (e.g., next router) Example: R1’s IP routing table shows five network IDs so it knows routes to all five networks R1 Routing Table with Routes for Five Classful Networks 43 Figure 8-29
33
IP Routing with Focus on Layer 3
Router compares incoming IP packet’s destination address to information in its routing tables to find best route to destination How Router R1 Uses its IP Routing Table: Match and Forward 44 Figure 8-30
34
IP Routing with Focus on Layer 3: Subnetting
Subnet mask: Shows how much of IP address for each device is in common to all IPs in subnet Example (/24): First three octets (first 24 bits) must be equal for all subnets in network PC11 sends packet to PC21 (destination IP address ) R1 will have route for PC21’s subnet (network ID ) Routing Logic with Subnets and Masks 49 Figure 8-35
35
IP Routing with Layer 1, 2, and 3 Interactions
Encapsulation: Action taken by lower layer when it takes data from higher layer and adds header (and sometimes trailer) to higher layer’s data Example: PC11 opened web browser and tried to connect to URL at web server: PC11 creating bits it uses to send to server S1 (web server) Following the steps in the Figure; top to bottom: The web browser creates the HTTP message, an HTTP GET request, with which the web client asks the web server to get a web page and return the web page to the client. The TCP function on PC11 encapsulates the HTTP message into a TCP segment by adding the TCP header to the HTTP message. The IP function on PC11 encapsulates the TCP segment into an IP packet by adding the IP header. Encapsulation Review: Application, Transport, and Network Layers 56 Figure 8-38
36
IP Routing with Layer 1, 2, and 3 Interactions
PC encapsulating IP packet into Ethernet frame (step 4) Sending bits over LAN cable into network (step 5) Encapsulation Review: Data Link Layer 57 Figure 8-39
37
IP Routing with Layer 1, 2, and 3 Interactions
De-encapsulation: On the destination side Following the de-encapsulation steps in the Figure: Server S1 physically receives the bits in this frame (layer 1). Server S1 processes the Ethernet header and trailer, and eventually discards them (layer 2). Server S1 processes the IP header, and eventually discards it (layer 3). Server S1 processes the TCP header, and eventually discards it (layer 4). Server S1 processes the HTTP message (layer 7). De-encapsulation on a Receiving Host (S1) 58 Figure 8-40
38
IP Routing with Layer 1, 2, and 3 Interactions
Addressing frames and packets when crossing SAME subnet: Both MAC and IP addresses in Ethernet frame and encapsulated IP packet IP and Ethernet Addresses, PC11 to server S1, Same Subnet 59 Figure 8-42
39
IP Routing with Layer 1, 2, and 3 Interactions
To learn destination MAC address, sending device uses Address Resolution Protocol (ARP) and info in ARP table Address Short Answer Long Answer Source MAC On NIC Given to Ethernet NIC by manufacturer; sending host can find MAC on NIC hardware. Source IP Configuration Either through static configuration or DHCP Destination MAC ARP From its ARP table, or if not found, by using ARP protocol and sending ARP Request and waiting for ARP Reply from destination Destination IP User Either typed or clicked by user How a Sending IP Host Knows What Addresses to Use 60 Table 8-9
40
Summary, This Chapter… Described the main functions of the TCP/IP network layer in regards to its focus on either physical or logical functions, and the focus on the network or endpoint hosts. Listed three major functions defined by IP. Listed common TCP/IP network layer functions in addition to IP. Examined a figure of an Enterprise TCP/IP network and determine where IP address groups (IP networks or subnets) would be needed. 69
41
Summary, This Chapter… Looked at any IP version 4 address and determined its class, and if a unicast IP address, determined the class A, B, or C network ID of the network in which it resides. Listed the four IP settings typically set on IP hosts during static configuration. Described the layer 3 logic used by routers when routing IP packets. Described an IP host’s layer 3 logic when routing IP packets. 70
42
Summary, This Chapter… Explained the basic ideas of how the IP subnetting process subdivides a classful network into smaller groups. Predicted the MAC and IP addresses used by two hosts on the same LAN subnet when they send IP packets to each other. Predicted the MAC and IP addresses used throughout an IP packet’s journey from a host in one subnet to a host in another subnet. 71
43
Questions? Comments? 72
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.