chapter 8 communication networks and services
play

Chapter 8 Communication Networks and Services The TCP/IP - PowerPoint PPT Presentation

Chapter 8 Communication Networks and Services The TCP/IP Architecture The Internet Protocol Internet Addressing Address Resolution protocol Internet Control Message Prototocol Chapter 8 Communication Networks and Services The TCP/IP


  1. Chapter 8 Communication Networks and Services The TCP/IP Architecture The Internet Protocol Internet Addressing Address Resolution protocol Internet Control Message Prototocol

  2. Chapter 8 Communication Networks and Services The TCP/IP Architecture

  3. Why Internetworking? To build a “ network of networks ” or Internet   operating over multiple, coexisting, different network technologies  providing ubiquitous connectivity through IP packet transfer  achieving huge economies of scale To provide universal communication services, support distributed and  diverse applications  independent of underlying network technologies  providing common interface to user applications H Reliable Stream Service H Net 3 Net 5 Net 1 G Net 5 G G User G Net 5 Net 5 Datagram G G Service H Net 2 Net 4 Net 5 Net 5 H Fall 2012 Prof. Chung-Horng Lung 3

  4. Internet Protocol Approach  IP packets transfer information across Internet Host A IP → router → router…→ router→ Host B IP  IP layer in each router determines next hop (router)  Network interfaces transfer IP packets across networks Router Host B Host A Router Transport Internet Transport Layer Internet Layer Layer Layer Internet Network Internet Net 1 Net 5 Interface Network Layer Layer Interface Router Network Network Interface Interface Internet Layer Net 4 Net 5 Network Net 3 Net 5 Net 2 Fall 2012 Prof. Chung-Horng Lung Net 5 Interface 4

  5. TCP/IP Protocol Suite HTTP SMTP DNS RTP Distributed applications User Reliable TCP UDP datagram stream service service ICMP Internet control message protocol , Best-effort IP connectionless ARP Address resolution protocol packet transfer Network Network Network Interface 2 Interface 1 Interface 3 Fall 2012 Prof. Chung-Horng Lung Diverse network technologies 5

  6. Internet Names & Addresses Internet Names Internet Addresses Each host has a unique name  Each host interface has globally   Independent of physical unique logical 32 bit IP address location Separate address for each   Facilitate memorization by physical interface to a network humans Routing decision is done based   Depends on Domain Name on destination IP address  Domain: Network under single IP address has two parts:  administrative unit (check netid and hostid earlier lecture modules)  Host IP Name  netid unique (depends on Domain   Name given to host computer name) User Name  netid facilitates routing   Name assigned to user Dotted Decimal Notation:  byte1.byte2.byte3.byte4, e.g., 128.100.10.13 DNS resolves domain name to IP address Fall 2012 Prof. Chung-Horng Lung 6

  7. Physical Addresses  LANs (and other networks) assign physical, i.e., NIC addresses to the physical interfaces to the network  The network uses its own address to transfer packets or frames to the appropriate destination  IP address needs to be resolved to physical address at each IP network interface to talk to data link layer Q: In Ethernet LAN, how can A talk to B if A only knows B’s IP address,  e.g., using socket programming? What layer is IP? Ethernet?  Translation from IP address to physical (MAC) address is done by the address resolution protocol (ARP)  Example: Ethernet uses 48-bit addresses Each Ethernet network interface card (NIC) has globally unique  Medium Access Control (MAC) or physical address First 24 bits identify NIC manufacturer; second 24 bits are serial  number 00:90:27:96:68:07 12 hex numbers  Fall 2012 Prof. Chung-Horng Lung Intel 7

  8. Chapter 8 Communication Networks and Services The Internet Protocol

  9. Internet Protocol  Provides best effort, connectionless packet delivery  motivated by need to keep routers simple and by adaptability to failure of network elements  packets may be lost, out of order, or even duplicated  higher layer protocols must deal with these, if necessary  RFCs 791, 950, 919, 922, and 2474.  IP is part of Internet STD number 5, which also includes:  Internet Control Message Protocol (ICMP), RFC 792  Internet Group Management Protocol (IGMP), RFC 1112 Fall 2012 Prof. Chung-Horng Lung 9

  10. IP Packet Header Bit # 0 4 8 16 19 24 31 Version IHL Type of Service Total Length Identification Flags Fragment Offset Time to Live Protocol Header Checksum Source IP Address Destination IP Address Options Padding  Minimum 20 bytes (first 5 rows, 4 bytes/row in the figure)  Packet security options, specification of a particular route for the packet, timestamps etc. (read RFC 2113). Not often used. Reserved for future extensions (for example RSVP etc.) Fall 2012 Prof. Chung-Horng Lung 10

  11. IP Packet Header 0 4 8 16 19 24 31 Version IHL Type of Service Total Length Identification Flags Fragment Offset Time to Live Protocol Header Checksum Source IP Address Destination IP Address Options Padding Version: current IP version is 4. Internet header length (IHL): length of the header in 32-bit words or 4-byte length, e.g., 5 -> 20 bytes. Type of service (TOS): priority of packet at each router. Differentiated Services (DiffServ) extends TOS field to include other services besides best effort. Fall 2012 Prof. Chung-Horng Lung 11

  12. IP Packet Header 0 4 8 16 19 24 31 Version IHL Type of Service Total Length Identification Flags Fragment Offset Time to Live Protocol Header Checksum Source IP Address Destination IP Address Options Padding Total length: number of bytes of the IP packet including header & data (payload) , maximum length is 65535 bytes. Identification, Flags, and Fragment Offset: used for fragmentation and reassembly (More on this shortly). Fall 2012 Prof. Chung-Horng Lung 12

  13. IP Packet Header 0 4 8 16 19 24 31 Version IHL Type of Service Total Length Identification Flags Fragment Offset Time to Live Protocol Header Checksum Source IP Address Destination IP Address Options Padding Time to live (TTL): number of hops a packet is allowed to traverse in the network. • Each router along the path to the destination decrements this value by one. • If the value reaches zero before the packet reaches the destination, the router discards the packet and sends an error message back to the source. • Q: Why TTL? Fall 2012 Prof. Chung-Horng Lung 13

  14. IP Packet Header 0 4 8 16 19 24 31 Version IHL Type of Service Total Length Identification Flags Fragment Offset Time to Live Protocol Header Checksum Source IP Address Destination IP Address Options Padding Protocol: specifies upper-layer protocol that is to receive IP data at the destination. Examples include TCP (prot. = 6), UDP (prot. = 17), and OSPF (prot. = 89). Header checksum (CRC-16): verifies the integrity of the IP header . Source IP address and destination IP address: contain the addresses of the source Fall 2012 Prof. Chung-Horng Lung and destination hosts. 14

  15. IP Packet Header 0 4 8 16 19 24 31 Version IHL Type of Service Total Length Identification Flags Fragment Offset Time to Live Protocol Header Checksum Source IP Address Destination IP Address Options Padding Options: Variable length field, allows packet to request special features such as security level, route to be taken by the packet, and timestamp at each router. Detailed descriptions of these options can be found in [RFC 791]. Padding: This field is used to make the header a multiple of 32-bit words. Fall 2012 Prof. Chung-Horng Lung 15

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend