Chapter 3 Review of Protocols And Packet Formats

Slides:



Advertisements
Similar presentations
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
Advertisements

CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
ISO/OSI Model Layers Application: applications that use the network. This is were mail, browsers, ftp, etc reside Presentation: data formats, character.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
1 TCP/IP Transmission Control Protocol / Internet Protocol.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
1 Application TCPUDP IPICMPARPRARP Physical network Application TCP/IP Protocol Suite.
Chapter 19 Binding Protocol Addresses (ARP) Chapter 20 IP Datagrams and Datagram Forwarding.
ECE 526 – Network Processing Systems Design Packet Processing II: algorithms and data structures Chapter 5: D. E. Comer.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Gursharan Singh Tatla Transport Layer 16-May
CS 356 Systems Security Spring Dr. Indrajit Ray
Transmission Control Protocol Internet Protocol TCP/IP.
IP Routing, Format, Fragmentation Chapters 20-21, 23.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
Packet Analysis with Wireshark
A Closer Look at HTTP, TCP, IP, and PPP Chapter 3 Copyright 2001 Prentice Hall Revision 2: July 2001.
1 Chapter Internetworking Part 1 (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
FALL, 2005CSI Part 2.3 Internetworking & Addressing (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution Robert L. Probert, SITE,
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
10/13/20151 TCP/IP Transmission Control Protocol Internet Protocol.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
Suez Canal University – Faculty of Computers & Informatics - Cisco Local Academy Network Fundamentals.
ECE 526 – Network Processing Systems Design Networking: protocols and packet format Chapter 3: D. E. Comer Fall 2008.
Protocols 1 Objective: Build a protocol foundation for Client / Server programming in an Internet Environment Note: RFCs available from
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Introduction to internetworking Part Two.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
Internet Protocol ECS 152B Ref: slides by J. Kurose and K. Ross.
COP 4930 Computer Network Projects Summer C 2004 Prof. Roy B. Levow Lecture 3.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
EECB 473 DATA NETWORK ARCHITECTURE AND ELECTRONICS PREPARED BY JEHANA ERMY JAMALUDDIN Basic Packet Processing: Algorithms and Data Structures.
Networked Graphics Building Networked Virtual Environments and Networked Games Chapter 3: Overview of the Internet.
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
Data Networks ISOTDAQ 2012
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
CSC 600 Internetworking with TCP/IP Unit 5: IP, IP Routing, and ICMP (ch. 7, ch. 8, ch. 9, ch. 10) Dr. Cheer-Sun Yang Spring 2001.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Linux Operations and Administration Chapter Eight Network Communications.
1 CSE 5346 Spring Network Simulator Project.
1 Figure 3-5: IP Packet Total Length (16 bits) Identification (16 bits) Header Checksum (16 bits) Time to Live (8 bits) Flags Protocol (8 bits) 1=ICMP,
COP 4930 Computer Network Projects Summer C 2004 Prof. Roy B. Levow Lecture 9.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
Sem1 - Module 10 Routing Fundamentals and Subnets
1 OSI Reference Model Benefits Standardizes interfaces Facilitates modular engineering Ensures interoperable technology Accelerates evolution Simplifies.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Chapter 5 Network and Transport Layers
Introduction to TCP/IP networking
Introduction to TCP/IP
© 2003, Cisco Systems, Inc. All rights reserved.
TCP/IP Transmission Control Protocol / Internet Protocol
Internetworking & Address Resolution
Process-to-Process Delivery:
Protocol layering and data
Protocol layering and data
COMPUTER NETWORKS CS610 Lecture-29 Hammad Khalid Khan.
Network Architecture Models: Layered Communications
Transport Layer 9/22/2019.
Chapter 4: outline 4.1 Overview of Network layer data plane
Presentation transcript:

Chapter 3 Review of Protocols And Packet Formats

Outline Protocol Layering Ethernet IP TCP / IP ARP

Protocol Layering (1 / 2) OSI 7-layers Internet 5-layer Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer Application Transport Internet Network Interface Physical

Protocol Layering (2 / 2) Multiple protocols can occur at each layer The resulting software is known as a stack Outgoing data must pass down through all layers of the stack between the application and the physical network Incoming data must pass up through all layers of the stack We will learn that optimizing communication among layers is an important aspect of building high-speed networks system

Layer 1 And 2 (Physical And Network Interface) Two protocols are important Ethernet ATM We will concentrate on Ethernet

Ethernet Layer 1 standards specify details such as the voltage used on copper wires Carrier Sense Multiple Access with Collision Detection (CSMA / CD) Layer 2 standards specify details such as the format of frames and addresses Variable-size frames

Ethernet Frame Processing Dest. Address Source Address Frame Type Dedicated physical layer hardware Checks and removes preamble and CRC on input Computes and appends CRC and preamble on output Layer 2 systems use source, destination and (possibly) type fields Data In Frame 6 2 46 - 1500 Header Payload

Ethernet Addressing (1 / 2) 48-bit addressing Unique address assigned to each station (NIC) Destination address in each packet can specify delivery to A single computer (unicast) All computers in broadcast domain (broadcast) Some computers in broadcast domain (multicast)

Ethernet Addressing (2 / 2) Broadcast address is all 1s Single bit determines whether remaining addresses are unicast or multicast multicast bit x x x x x x x m x x x x x x x x

Internet Protocols Of Interest Layer 2 Address Resolution Protocol (ARP) Layer 3 Internet Protocol (IP) Layer 4 User Datagram Protocol (UDP) Transmission Control Protocol (TCP)

IP OPTION (MAY BE OMITTED) IP Datagram Format Format of each packet sent across Internet Fixed-size fields make parsing efficient 4 8 16 19 24 31 VERS HLEN SERVICE TOTAL LENGTH ID FLAGS F.OFFSET TTL TYPE HDR CHECKSUM SOURCE DESTINATION IP OPTION (MAY BE OMITTED) PADDING BEGINNING OF PAYLOAD

IP Datagram Fields Field Meaning VERS Version number of IP being used (4) HLEN Header length measured in 32-bit units SERVICE Level of service desired TOTAL LENGTH Datagram length in octets including header ID Unique value for this datagram FLAGS Bits to control fragmentation F. OFFSET Position of fragment in original datagram TTL Time to live (hop countdown) TYPE Contents of payload area HDR CHECKSUM One’s-complement checksum over header SOURCE IP address of original sender DESTINATION IP address of ultimate destination IP OPTIONS Special handling parameters PADDING To make options a 32-bit multiple

IP addressing 32-bit Internet address assigned to each computer Virtual, hardware independent value Prefix identifies network; suffix identifies host Network systems use address mask to specify boundary between prefix and suffix The address remain unchanged as the datagram passes across the Internet

Next-Hop Forwarding Routing table Route lookup Found in both hosts and routers Stores ( destination, mask, next_hop ) tuples Route lookup Takes destination address as argument Finds next hop Uses longest-prefix match

UDP Datagram Format 16 31 SOURCE PORT DESTINATION PORT MESSAGE LENGTH 16 31 SOURCE PORT DESTINATION PORT MESSAGE LENGTH CHECKSUM BEGINNING OF PAYLOAD Field Meaning SOURCE PORT ID of sending application DESTINATION PORT ID of receiving application MESSAGE LENGTH Length of datagram including the header CHECKSUM One’s-complement checksum over entire datagram

OPTIONS (MAY BE OMITTED) TCP Segment Format Sent end-to-end Fixed-size fields make parsing efficient 4 10 16 24 31 SOURCE PORT DESTINATION PORT SEQUENCE ACKNOWLEDGEMENT HLEN NOT USED CODE BITS WINDOW CHECKSUM URGENT PRT OPTIONS (MAY BE OMITTED) PADDING BEGINNING OF PAYLOAD

TCP Segment Fields Field Meaning SOURCE PORT ID of sending application DESTINATION PORT ID of receiving application SEQUENCE Sequence number for data in payload ACKNOWLEDGEMENT Acknowledgement of data received HLEN Header length measured in 32-bit units NOT USED Currently unassigned CODE BITS URGENT, ACK, PUSH, RESET, SYN, FIN WINDOW Receiver’s buffer size for additional data CHECKSUM One’s-complement checksum over entire segment URGENT PTR Pointer to urgent data in segment OPTIONS Special handling PADDING To make options a 32-bit multiple

Destination IP Address Destination IP Address Protocol Port Numbers 16-bits values knows as protocol port numbers Each UDP user datagram and each TCP segment carries the port numbers : SOURCE PORT DESTINATION PORT The port spaces of the two protocols are completely independent UDP demultiplex packets (each application) TCP demultiplex packets (each application) Destination IP Address Destination Port NO. Destination IP Address Destination Port NO. Source IP Address Source Port NO.

Encapsulation And Transmission Field in each header specifies type of encapsulated packet UDP HEADER UDP PAYLOAD IP HEADER IP PAYLOAD ETHERNET HEADER ETHERNET PAYLOAD

Address Resolution Protocol (ARP) 8 16 24 31 ETHERNET ADDRESS TYPE (1) IP ADDRESS TYPE (0800) ETH ADDRLEN(6) IP ADDRLEN(4) OPERATION SENDER’S ETH ADDR (first 4 octets) SENDER’S ETH ADDR (last 2 octets) SENDER’S IP ADDR (first 2 octets) SENDER’S IP ADDR (last 2 octets) TARGET’S ETH ADDR (first 2 octets) TARGET’S ETH ADDR (last 4 octets) TARGET’S IP ADDR (all 4 octets) Format when ARP used with Ethernet and IP Each Ethernet address is six octets Each IP address is four octets

QUESTION?