Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-1 TCP/IP Internetworking Chapter 8 Updated January 2009 Raymond Panko’s Business Data Networks.

Similar presentations


Presentation on theme: "© 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-1 TCP/IP Internetworking Chapter 8 Updated January 2009 Raymond Panko’s Business Data Networks."— Presentation transcript:

1 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-1 TCP/IP Internetworking Chapter 8 Updated January 2009 Raymond Panko’s Business Data Networks and Telecommunications, 7th edition May only be used by adopters of the book

2 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-2 8-1: Major TCP/IP Standards 5 Application User ApplicationsSupervisory Applications HTTPSMTP Many Others DNS Dynamic Routing Protocols Many Others 4 TransportTCPUDP 3 InternetIPARP 2 Data LinkNone: Use OSI Standards 1 PhysicalNone: Use OSI Standards Note: Shaded protocols are discussed in this chapter ICMP TCP/IP has core internet and transport standards: IP, TCP, and UDP. TCP/IP has core internet and transport standards: IP, TCP, and UDP.

3 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-3 8-1: Major TCP/IP Standards 5 Application User ApplicationsSupervisory Applications HTTPSMTP Many Others DNS Dynamic Routing Protocols Many Others 4 TransportTCPUDP 3 InternetIPARP 2 Data LinkNone: Use OSI Standards 1 PhysicalNone: Use OSI Standards Note: Shaded protocols are discussed in this chapter ICMP TCP/IP also has many application standards.

4 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-4 8-1: Major TCP/IP Standards 5 Application User ApplicationsSupervisory Applications HTTPSMTP Many Others DNS Dynamic Routing Protocols Many Others 4 TransportTCPUDP 3 InternetIPARP 2 Data LinkNone: Use OSI Standards 1 PhysicalNone: Use OSI Standards Note: Shaded protocols are discussed in this chapter ICMP TCP/IP also has many supervisory standards at the internet, transport, and application layers.

5 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-5 IP Addresses 32-Bit Strings Dotted Decimal Notation for Human Reading (e.g., 128.171.17.13)

6 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-6 8-3: Hierarchical IP Address IP addresses are not simple 32-bit numbers. They usually have 3 parts. Consider the example 128.171.17.13

7 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-7 8-4: Border Router, Internal Router, Networks, and Subnets Border routers connect different networks on the Internet (In this case, 192.168.x.x and 60.x.x.x). An “x” indicates anything, so 192.168.x.x means 192.168.0.0 through 192.168.255.255.

8 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-8 8-4: Border Router, Internal Router, Networks, and Subnets Internal routers connect different subnets in a network. In this case, the three subnets are boxed in red: 192.168.1.x, 192.168.2.x, and 192.168.3.x.

9 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-9 Router Operation

10 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-10 8-5: IP Network and Subnet Masks The Problem –There is no way to tell by looking at an IP address what sizes the network, subnet, and host parts are—only their total of 32 bits –The solution: masks

11 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Masks –In spray painting, you often use a mask. –The mask allows part of the paint through but stops the rest from going through. –Network and subnet masks do something similar. 9.5: IP Network and Subnet Masks 11

12 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-12 8-5: IP Network and Subnet Masks Masking –A mask is a series of initial ones followed by series of final zeros for a total of 32 bits Example: 255.255.0.0 is 16 ones followed by 16 zeros In prefix notation, /16 (Decimal 0 is 8 zeros and Decimal 255 is 8 ones)

13 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Masks are applied to 32-bit IP addresses. 13 8-5: IP Network and Subnet Masks IP Address bit1010 Mask bit1100 Result bit1000 If the mask bit = 0, the result is always 0. If the mask bit = 1, the result is always the IP address bit in that position.

14 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-14 8-5: IP Network and Subnet Masks Masking –Eight 0s is 0 –Eight 1s is 255 IP Address Octet Mask Octet Result 1281711713 255 00 12817100

15 © 2009 Pearson Education, Inc. Publishing as Prentice Hall © 2011 Pearson Education, Inc. Publishing as Prentice Hall 15 9.5: IP Network and Subnet Masks Network MaskDotted Decimal Notation Destination IP Address1281711713 Network Mask255 00 Bits in network part, followed by zeros 12817100

16 © 2009 Pearson Education, Inc. Publishing as Prentice Hall © 2011 Pearson Education, Inc. Publishing as Prentice Hall 16 9.5: IP Network and Subnet Masks Subnet MaskDotted Decimal Notation Destination IP Address1281711713 Subnet Mask255 0 Bits in network part, followed by zeros 128171170

17 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-17 8-6: Ethernet Switching Versus IP Routing Destination address is E5-BB-47-21-D3-56. Ethernet switches are arranged in a hierarchy. So there is only one possible path between hosts. So only one row can match an Ethernet address. Finding this row is very simple and fast. So Ethernet switching is inexpensive per frame handled. One correct row Frame to E5-…

18 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-18 8-6: Ethernet Switching Versus IP Routing Because of multiple alternative routes in router meshes, routers may have several rows that match an IP address. Routers must find All matches and then select the BEST ONE. This is slow and therefore expensive compared to switching. Route 3: CE (Selected)

19 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Routing –Processing an individual packet and passing it on its way is called routing. © 2011 Pearson Education, Inc. Publishing as Prentice Hall 19 8-7: The Routing Process

20 © 2009 Pearson Education, Inc. Publishing as Prentice Hall The Routing Table –Each router has a routing table that it uses to make routing decisions. –Routing Table Rows Each row represents a route for a range of IP addresses— often packets going to the same network or subnet. © 2011 Pearson Education, Inc. Publishing as Prentice Hall 20 8-7: The Routing Process

21 © 2009 Pearson Education, Inc. Publishing as Prentice Hall ColumnMeaning RowDefine the row in the routing table Destination Range of IP addresses governed by the row MaskMask for the row MetricQuality of the route listed in this row InterfaceThe interface (port) to use to send the packet out Next-Hop Router Device (router or destination host) on the interface subnet to receive the packet 21 Routing Table Columns

22 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-22 8-8: Routing Table Each row represents a route For a range of IP addresses For Row 1, the address range Is 128.171.0.0 to 128.171.255.255 Each row represents a route For a range of IP addresses For Row 1, the address range Is 128.171.0.0 to 128.171.255.255

23 © 2009 Pearson Education, Inc. Publishing as Prentice Hall A Routing Decision –Whenever a packet arrives, the router looks at its IP address, then… –Step 1: Finds All Row Matches –Step 2: Finds the Best-Match Row –Step 3: Sends the Packet Back out According to Directions in the Best-Match Row © 2011 Pearson Education, Inc. Publishing as Prentice Hall 23 8-7: The Routing Process

24 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-24 8-7: The Routing Process Step 1: Finding All Row Matches –The router looks at the destination IP address in an arriving packet –For each row: Apply the row’s mask to the destination IP address Compare the result with the row’s destination value If the two match, the row is a match

25 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-25 8-7: The Routing Process A Routing Decision –Step 1: Finding All Row Matches Example 1: A Destination IP Address that is in NOT the Range –Destination IP Address of Arriving Packet 60.43.7.8 –Apply the row’s (Network) Mask 255.255.0.0 –Result of Masking 60.43.0.0 –Row’s destination Column Value 128.171.0.0 –Destination Matches the Masking Result? No –Conclusion Not a match

26 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-26 8-7: The Routing Process A Routing Decision –Step 1: Finding All Row Matches Example 2: A Destination IP Address that is in the Range –Destination IP Address of Arriving Packet 128.171.17.13 –Apply the row’s Mask 255.255.0.0 –Result of Masking 128.171.0.0 –Row’s destination Column Value 128.171.0.0 –Destination Matches the Masking Result? Yes –Conclusion Row is a match

27 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-27 8-7: The Routing Process Step 1: Finding All Row Matches –The router do this to ALL rows because there may be multiple matches –This step ends with a set of matching rows

28 © 2009 Pearson Education, Inc. Publishing as Prentice Hall A Routing Decision –Whenever a packet arrives, the router looks at its IP address, then… –Step 1: Finds All Row Matches –Step 2: Finds the Best-Match Row –Step 3: Sends the Packet Back out According to Directions in the Best-Match Row © 2011 Pearson Education, Inc. Publishing as Prentice Hall 28 8-7: The Routing Process

29 © 2009 Pearson Education, Inc. Publishing as Prentice Hall To find the best-match row, the router uses the mask column and perhaps the metric column. © 2011 Pearson Education, Inc. Publishing as Prentice Hall 29 8-7: The Routing Process RowMaskMetric (Cost) 1/1647 2/240 3 12

30 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Step 2: Find the Best-Match Row –The router examines the matching rows it found in Step 1 to find the best-match row. –Basic Rule: it selects the row with the longest match (Initial 1s in the row mask). Row 99 matches, mask is /16 (255.255.0.0) Row 78 matches, mask is /24 (255.255.255.0) Select Row 78 as the best-match row. © 2011 Pearson Education, Inc. Publishing as Prentice Hall 30 8-7: The Routing Process

31 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Step 2: Find the Best-Match Row –Basic Rule: it selects the row with the longest match (Initial 1s in the row mask). –Tie Breaker: if there is a tie for longest match, select among the tie rows based on metric. There is a tie for longest length of match. Row 668 has match length /16, cost metric = 20. Row 790 has match length /16, cost metric = 16. Router selects 790, which has the best cost. © 2011 Pearson Education, Inc. Publishing as Prentice Hall 31 8-7: The Routing Process

32 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Step 2: Find the Best-Match Row –The following rows are matches. Row / Mask / Metric 220 /24 / speed metric = 40 345 /18 / speed metric = 50 682 /8 /speed metric = 40 –Question: What is the best-match row? Why? © 2011 Pearson Education, Inc. Publishing as Prentice Hall 32 8-7: The Routing Process

33 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Step 2: Find the Best-Match Row –The following rows match. 107 / 12 / speed metric = 30 220 / 14 / speed metric = 100 345 / 18 / speed metric = 50 682 / 18 / speed metric = 40 –Question: What is the best-match row? Why? © 2011 Pearson Education, Inc. Publishing as Prentice Hall 33 8-7: The Routing Process

34 © 2009 Pearson Education, Inc. Publishing as Prentice Hall A Routing Decision –Whenever a packet arrives, the router looks at its IP address, then… –Step 1: Finds All Row Matches –Step 2: Finds the Best-Match Row –Step 3: Sends the Packet Back out According to Directions in the Best-Match Row © 2011 Pearson Education, Inc. Publishing as Prentice Hall 34 8-7: The Routing Process

35 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Step 3: Send the Packet Back out –Send the packet out the router interface (port) designated in the best-match row. –Send the packet to the router in the next-hop router column. © 2011 Pearson Education, Inc. Publishing as Prentice Hall 35 9.7: The Routing Process RowInterfaceNext-Hop Router 12G 21Local 32H Router Port = Interface

36 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Step 3: Send the Packet Back out –If the address says Local, the destination host is out that interface. Sends the packet to the destination IP address in a frame. © 2011 Pearson Education, Inc. Publishing as Prentice Hall 36 9.7: The Routing Process RowInterfaceNext-Hop Router 12G 21Local 32H

37 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-7: The Routing Process A Routing Decision –Step 3: Send the Packet Back Out –Example 1: Row 18,924 is the best match –Interface = 4, Next-hop-router is 128.171.17.47 –The router will send the packet out Interface 4, to 128.171.17.13 8-37

38 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-38 The Internet Protocol (IP) Versions 4 and 6

39 © 2009 Pearson Education, Inc. Publishing as Prentice Hall IP Class Scheme

40 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Address Space

41 © 2009 Pearson Education, Inc. Publishing as Prentice Hall IP Class Scheme From the previous figure, we see that the 32-bit address is split into 4 octets. If the first 4 bits of the first octet are –0xxx: Class A address (0 – 127) –10xx: Class B address(128 – 191) –110x: Class C address (192 – 223) –1110: Class D address (Multicast) –1111: Class E address

42 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Subnet Mask 42

43 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-43 The Transmission Control Protocol (TCP)

44 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-44 8-12: TCP Session Openings and Closings SYN SYN/ACK ACK Normal Three-Way Opening A SYN segment is a segment in which the SYN bit is set. One side sends a SYN segment requesting an opening. The other side sends a SYN/acknowledgment segment for the SYN segment. Originating side acknowledges the SYN/ACK.

45 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-45 8-12: TCP Session Openings and Closings FIN ACK FIN ACK Normal Four-Way Close A FIN segment is a segment in which the FIN bit is set. Like both sides saying “good bye” to end a conversation. Data ACK

46 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-46 8-12: TCP Session Openings and Closings FIN ACK FIN ACK Normal Four-Way Close The side that initiated the close will send no more data segments, but it will still transmit acknowledgements Data ACK

47 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-47 8-12: TCP Session Openings and Closings RST Abrupt Reset An RST segment is a segment in which the RST bit is set. A single RST segment breaks a connection. Like hanging up during a phone call. There is no acknowledgment because the RST sender is no longer listening.

48 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-48 Port Numbers and Sockets in TCP and UDP

49 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-49 TCP and UDP Port Numbers Computers are multitasking devices –They run multiple applications at the same time –On a server, a port number designates a specific application Server HTTP Webserver Application SMTP E-Mail Applications Port 80 Port 25

50 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-50 TCP and UDP Port Numbers Major Applications Have Well-Known Port Numbers –Well-known port number range is 0 to 1023 for both TCP and UDP –HTTP’s well-known port number is TCP Port 80 –SMTP’s well-known port number is TCP Port 25 Server HTTP Webserver Application SMTP E-Mail Application Port 80 Port 25

51 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-51 TCP and UDP Port Numbers Clients Use Ephemeral Port Numbers –1024 to 4999 for Windows Client PCs –A client has a separate port number for each connection to a program on a server Client Port 4400Port 3270 Webserver Application on Webserver E-Mail Application on Mail Server

52 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-52 TCP and UDP Port Numbers Client 60.171.18.22 Webserver 1.33.17.13 Port 80 SMTP Server 123.30.17.120 Port 25 A socket is an IP address, a colon, and a port number. 1.33.17.3:80 123.30.17.120:25 128.171.17.13:2849 It represents a specific application (Port number) on a specific server (IP address) Or a specific connection on a specific client. Client PC 128.171.17.13 Port 2849

53 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-53 8-13: Use of TCP (and UDP) Port Numbers Client 60.171.18.22 Webserver 1.33.17.13 Port 80 Source: 60.171.18.22:2707 Destination: 1.33.17.13:80 SMTP Server 123.30.17.120 Port 25 This shows sockets for a client packet sent to a webserver application on a webserver

54 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-54 8-13: Use of TCP (and UDP) Port Numbers Client 60.171.18.22 Webserver 1.33.17.13 Port 80 Source: 60.171.18.22:2707 Destination: 1.33.17.13:80 Source: 1.33.17.13:80 Destination: 60.171.18.22:2707 SMTP Server 123.30.17.120 Port 25 Sockets in two-way transmission

55 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-55 8-13: Use of TCP (and UDP) Port Numbers Client 60.171.18.22 Webserver 1.33.17.13 Port 80 Source: 60.171.18.22:2707 Destination: 1.33.17.13:80 Source: 1.33.17.13:80 Destination: 60.171.18.22:2707 Source: 60.171.18.22:4400 Destination: 123.30.17.120:25 SMTP Server 123.30.17.120 Port 25 Clients use a different ephemeral port number for different connections

56 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-56 Dynamic Routing Protocols Routing Table Information Dynamic Routing Protocol Router

57 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Dynamic Routing Protocols How do routers get the information for their routing tables? –The answer is that they constantly talk to each other, sharing routing information –This communication must be standardized –These standards are called dynamic routing protocols –There are several dynamic routing protocols; partners must select one to use –Dynamic routing protocols exchange IP address ranges, masks, metric values, and sometimes other information 8-57

58 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-58 Dynamic Routing Protocols Here is a simple example of how a dynamic routing protocol works. Here, the metric is the number of hops to the destination IP addresses, 128.171.x.x 1

59 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-59 8-15: Dynamic Routing Protocols: Interior and Exterior When they talk to other Autonomous systems, they Must negotiate which Exterior DRP they will use. When they talk to other Autonomous systems, they Must negotiate which Exterior DRP they will use. Large organizations and ISPs are autonomous systems. Autonomous systems can Select their interior Dynamic routing protocols. Large organizations and ISPs are autonomous systems. Autonomous systems can Select their interior Dynamic routing protocols. 1

60 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-60 8-14: Dynamic Routing Protocols Dynamic Routing Protocol Interior or Exterior Routing Protocol? Remarks RIP (Routing Information Protocol) InteriorOnly for small autonomous TCP/IP systems with low needs for security OSPF (Open Shortest Path First) InteriorFor large autonomous systems that only use TCP/IP EIGRP (Enhanced Interior Gateway Routing Protocol) InteriorProprietary Cisco Systems protocol. Not limited to TCP/IP routing. Also handles IPX/SPX, SNA, and so forth BGP (Border Gateway Protocol) ExteriorOrganization cannot choose what exterior routing protocol it will use. TCP/IP protocol

61 © 2009 Pearson Education, Inc. Publishing as Prentice Hall Routing Note that routing has two meanings –Routing means the process by which a router receives a packet, selects the best route for a packet, and sends the packet back out –Routing also means the process by which routers exchange routing table information 8-61

62 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-62 Dynamic Host Configuration Protocol (DHCP)

63 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-63 Dynamic Host Configuration Protocol Every Host Must Have a Unique IP address –Server hosts are given static IP addresses (unchanging) –Clients get dynamic (temporary) IP addresses that may be different each time they use an internet Dynamic Host Configuration Protocol (DHCP) –Clients get these dynamic IP addresses from Dynamic Host Configuration Protocol (DHCP) servers

64 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-64 8-17: Dynamic Host Configuration Protocol (DHCP) Client PC A3-4E-CD-59-28-7F DHCP Server DHCP Request Message: “My 48-bit Ethernet address is A3-4E-CD-59-28-7F”. Please give me a 32-bit IP address.” Pool of IP Addresses

65 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-65 8-17: Dynamic Host Configuration Protocol (DHCP) Client PC A3-4E-CD-59-28-7F DHCP Server DHCP Response Message: “Computer at A3-4E-CD-59-28-7F, your 32-bit IP address is 11010000101111101010101100000010”. (Usually other configuration parameters as well, including The subnet mask, the IP address of the default router, and the IP addresses of the organization’s DNS servers) Pool of IP Addresses

66 © 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-66 Why DHCP? If You Give PCs Static Information, –The cost of manual entry of configuration information (subnet mask, default router, DNS servers, etc.) is high –If something changes, such as the IP address of your DNS server, the cost of manually reconfiguring each PC is high –If something changes, your PCs may be inoperable until you make the manual changes With DHCP, users get hot fresh configuration data automatically


Download ppt "© 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-1 TCP/IP Internetworking Chapter 8 Updated January 2009 Raymond Panko’s Business Data Networks."

Similar presentations


Ads by Google