Review of TCP/IP Internetworking Path Frame
Total Page:16
File Type:pdf, Size:1020Kb
Single Network: applications, client and server hosts, switches, access links, trunk links, frames, path Review of TCP/IP Internetworking Path Frame Server Chapter 3 Client Host Host Trunk Link Panko, Corporate Computer Access and Network Security Link Copyright 2004 Prentice-Hall Server Mobile Client Host Host 1 2 Frame Organization Switching Decision Switch receives A frame, sends Frame Switch 123456 It back out Based on Frame with Station C TrailerData Field Header Destination In the destination Address field Address Other Destination Header Field Address Message Structure Field Station Station Station Station A B C D 3 4 Figure 3-1: Internet An Internet Multiple Networks An internet is two or more individual switched networks connected by routers Connected by Routers Path of a Packet is its Route Single Network Switched Routers Network 1 Packet Switched Network 3 Router Switched Route Network 2 Single Network 5 6 1 The global The Internet Internet has Figure 3-6: Frames and Packets thousands of networks Frame 1 Packet Webserver Carrying Packet Browser in Network 1 Network Software Router A Packet Packet Switch Frame 2 Router Carrying Packet Client PC Frame 3 in Network 2 Carrying Packet Route Router Packet in Network 3 Router Packet Switch Server Router B 7 8 Frames and Packets Figure 3-2: TCP/IP Standards (Study Figure) Like passing a shipment (the packet) from a truck (frame) to an airplane (frame) at an airport. Origins { Defense Advanced Research Projects Agency Receiver Shipper Same (DARPA) created the ARPANET Shipment { An internet connects multiple individual networks { Global Internet is capitalized { Internet Engineering Task Force (IETF) Airport Airport Truck Truck { Most IETF documents are requests for comments (RFCs) Airplane { Internet Official Protocol Standards: List of RFCs that are official standards 9 10 Figure 3-2: TCP/IP Standards (Study Figure 3-2: TCP/IP Standards (Study Figure) Figure) Hybrid TCP/IP-OSI Architecture (Figure 3-3) OSI Layers { Combines TCP/IP standards at layers 3-5 with { OSI standards at layers 1-2 { Physical (Layer 1): defines electrical signaling and media between adjacent devices TCP/IP OSI Hybrid TCP/IP-OSI { Data link (Layer 2): control of a frame through a Application Application Application single network, across multiple switches Presentation Session Physical Link Frame Transport Transport Transport Switched Internet Network Internet Network 1 Subnet Access: Use Data Link Data Link OSI Standards Here Physical Physical Data Link 11 12 2 Figure 3-2: TCP/IP Standards (Study Figure 3-2: TCP/IP Standards Figure) Internet Layer Frames and Packets { Governs the transmission of a packet across an entire internet. Path of the packet is its route { Frames are messages at the data link layer Packet { Packets are messages at the internet layer Switched { Packets are carried (encapsulated) in frames Network 1 { There is only a single packet that is delivered from source to destination host Switched Network 3 Router Route { This packet is carried in a separate frame in each network Switched Network 2 13 14 Figure 3-2: TCP/IP Standards (Study Figure 3-7: Internet and Transport Layers Figure) Transport Layer Internet and Transport Layers End-to-End (Host-to-Host) TCP is Connection-Oriented, Reliable { Purposes UDP is Connectionless Unreliable Internet layer governs hop-by-hop Client PC Server transmission between routers to achieve end- Internet Layer to-end delivery (Usually IP) Hop-by-Hop (Host-Router or Router-Router) Transport layer is end-to-end (host-to-host) Connectionless, Unreliable protocol involving only the two hosts Router 1 Router 2 Router 3 15 16 Figure 3-2: TCP/IP Standards (Study Figure 3-2: TCP/IP Standards (Study Figure) Figure) Internet and Transport Layers Transport Layer Standards { Internet Protocol (IP) { Transmission Control Protocol (TCP) IP at the internet layer is unreliable—does not Reliable and connection-oriented service at correct errors in each hop between routers the transport layer Corrects errors This is good: reduces the work each router along the route must do { User Datagram Protocol (UDP) Unreliable and connectionless service at the transport layer Lightweight protocol good when catching errors is not important 17 18 3 Figure 3-8: HTML and HTTP at the Figure 3-2: TCP/IP Standards (Study Application Layer Figure) Application Layer Hypertext Transfer Protocol (HTTP) Requests and Responses { To govern communication between application programs, which may be written by different vendors Webserver Client PC with { Document transfer versus document format Browser 60.168.47.47 standards 123.34.150.37 HTTP / HTML for WWW service SMTP / RFC 822 (or RFC 2822) in e-mail { Many application standards exist because there Hypertext Markup Language (HTML) are many applications Document or Other File (jpeg, etc.) 19 20 Figure 3-3: TCP/IP and OSI Architectures: Recap Figure 3-5: IP Packet 0100 IP Version 4 Packet Bit 0 Bit 31 TCP/IP OSI Hybrid TCP/IP-OSI Header Version Diff-Serv Total Length Application Application Application Length (4 bits) (8 bits) (16 bits) Presentation (4 bits) Session Identification (16 bits) Flags Fragment Offset (13 bits) Protocol (8 bits) Time to Live Transport Transport Transport 1=ICMP, 6=TCP, Header Checksum (16 bits) (8 bits) Internet Network Internet 17=TCP Source IP Address (32 bits) Subnet Access: Use Data Link Data Link OSI Standards Here Destination IP Address (32 bits) Physical Physical Options (if any) Padding Note: The Hybrid TCP/IP-OSI Architecture is used on the Internet and Data Field dominates internal corporate networks. 21 22 Figure 3-5: IP Packet Figure 3-5: IP Packet Protocol Field Version { Identifies contents of data field { Has value of four (0100) { 1 = ICMP Time to Live (TTL) { 6 = TCP IP Data Field IP Header { Prevents the endless circulation of mis-addressed { 17 =UDP ICMP Message Protocol=1 packets { Value is set by sender IP Data Field IP Header { Decremented by one by each router along the TCP Segment Protocol=6 way { If reaches zero, router throws packet away IP Data Field IP Header UDP Datagram Protocol=17 23 24 4 Figure 3-9: Layer Cooperation Through Figure 3-5: IP Packet Encapsulation on the Source Host Header checksum to check for errors in the header only Application HTTP Encapsulation of HTTP Process Message message in data field of { Faster than checking the whole packet a TCP segment { Stops bad headers from causing problems { IP Version 6 drops eve this checking Transport HTTP TCP Encapsulation of TCP Address Fields Process Message Hdr segment in data field of an IP packet { 32 bits long, of course Options field(s) give optional parameters Internet HTTP TCP IP Process Message Hdr Hdr Data field contains the payload of the packet. 25 26 Figure 3-9: Layer Cooperation Through Figure 3-9: Layer Cooperation Through Encapsulation on the Source Host Encapsulation on the Source Host Internet HTTP TCP IP Encapsulation Note: The following is the final frame for supervisory TCP segments: Process Message Hdr Hdr of IP packet in data field of a frame DL TCP IP DL Data Link DL HTTP TCP IP DL Trlr Hdr Hdr Hdr Process Trlr Message Hdr Hdr Hdr Physical Converts Bits of Frame into Signals Process 27 28 Figure 3-10: Layer Cooperation Through Figure 3-10: Layer Cooperation Through Decapsulation on the Destination Host Decapsulation on the Destination Host Application HTTP Decapsulation of HTTP Internet HTTP TCP IP Decapsulation of IP Process Message message from data field of Process Message Hdr Hdr packet from data a TCP segment field of a frame Transport HTTP TCP Decapsulation of TCP Data Link DL HTTP TCP IP DL Process Message Hdr segment from data field Process Hdr Message Hdr Hdr Hdr of an IP packet Internet HTTP TCP IP Physical Converts Signals into the Bits of the Frame Process Message Hdr Hdr Process 29 30 5 Figure 3-11: Vertical Communication Figure 3-11: Vertical Communication on Router R1 on Router R1 B A Router R1 Router R1 Internet Layer Process Packet Packet Internet Layer Process Port 1 Port 2 Port 3 Port 4 Encapsulation Decapsulation Port 1 Port 2 Port 3 Port 4 DL DL DL DL DL DL DL DL Frame Frame PHY PHY PHY PHY PHY PHY PHY PHY B. Internet process sends packet out on Notes: Port 4. A. Router R1 receives frame from Switch X2 DL Process on Port 4 encapsulates Router 2 Switch X2 in Port 1. packet in a PPP frame. Port 1 DL process decapsulates packet. DL process passes frame to Port 4 Port 1 DL process passes packet to PHY. internet process. 31 32 Figure 3-12: Site Connection to an ISP Figure 3-13: Internet Protocol (IP) Basic Characteristics 1. Internet Site Network Backbone Frame for This { There were already single networks, and many Data Link Border ISP more would come in the future Firewall Packet { Developers needed to make a few assumptions Packet Packet about underlying networks 3. 4. 2. { So they kept IP simple Packet Carried Data Link Packet Carried in Site Frame Between ISP in ISP Site and ISP Router Carrier Frame (Difficult to Attack) 5. Normally, Only the Arriving Packet is Dangerous—Not the Frame Fields 33 34 Figure 3-13: Internet Protocol (IP) IP Packet Connection-Oriented Service and PC First Router Internet Process Internet Process Connectionless Service IP Packet { Connection-oriented services have distinct starts and closes (telephone calls) Connectionless Packets Sent in Isolation { Connectionless services merely send messages Like Postal Letters (postal letters) Unreliable { IP is connectionless No Error Correction Discarded by Receiver if Error is Detected