Decoding an IP Header (1)

Slides:



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

IPv6. Major goals 1.support billions of hosts, even with inefficient address space allocation. 2.reduce the size of the routing tables. 3.simplify the.
REVEALING MIDDLEBOXES INTERFERENCE WITH TRACEBOX Gregory Detal*, Benjamin Hesmans*, Olivier Bonaventure*, Yves Vanaubel° and Benoit Donnet°. *Université.
CS470, A.SelcukIPsec – AH & ESP1 CS 470 Introduction to Applied Cryptography Instructor: Ali Aydin Selcuk.
IP Fragmentation. MTU Maximum Transmission Unit (MTU) –Largest IP packet a network will accept –Arriving IP packet may be larger IP Packet MTU.
TCP/IP Christopher Zacky. lolwut Decimal Numbers.
Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Chapter 2 TCP/IP Fundamentals.
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
CS 471/571 Transport Layer 5 Slides from Kurose and Ross.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
Configuring a Router with RIP Basic Configuration and Show Commands.
Instructor: Sam Nanavaty TCP/IP protocol. Instructor: Sam Nanavaty Version – Allows for the evolution of the protocol IHL (Internet header length) – Length.
TCP segment structure source port # dest port # 32 bits application data (variable length) sequence number acknowledgement number rcvr window size ptr.
1 Lecture 15: IPsec AH and ESP IPsec introduction: uses and modes IPsec concepts –security association –security policy database IPsec headers –authentication.
CS470, A.SelcukIPsec Attacks1 IPsec ESP Attacks CS 470 Introduction to Applied Cryptography Instructor: Ali Aydin Selcuk.
Network Layer Packet Forwarding IS250 Spring 2010
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
IP Protocol. The Internet Protocol (IP) is a network-layer (Layer 3) protocol that contains addressing information and some control information that enables.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
1 Application TCPUDP IPICMPARPRARP Physical network Application TCP/IP Protocol Suite.
Source Port # (16)Destination Port # (16) Sequence Number (32 bits) Acknowledgement Number (32 bits) Hdr Len (4) Flags (6)Window Size (16) Options (if.
CIS 193A – Lesson12 Monitoring Tools. CIS 193A – Lesson12 Focus Question What are the common ways of specifying network packets used in tcpdump, wireshark,
Module A Panko and Panko Business Data Networks and Security, 9 th Edition © 2013 Pearson.
4: Network Layer4a-1 IP datagram format ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier Internet checksum time.
Packet Analysis with Wireshark
Internet Protocol (IP)
Midterm Review These slides contain 90% recycled content.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 5 Internet Protocol (IP) Basics.
Transmission Control Protocol
More on TCP Acknowledgements Sequence Number Field Initial Sequence Number Acknowledgement Number Field.
Transport Layer/TCP Thanks to Kai Shen ’ s Networking Course at the University of Rochester.
CS 646 manual intrusion detection c 27 a f 56 c0 a c0 a ab a2 cf a9 10 d5 6d b7 2d d0 ae ee 00.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
Networked Graphics Building Networked Virtual Environments and Networked Games Chapter 3: Overview of the Internet.
Washington WASHINGTON UNIVERSITY IN ST LOUIS Fred Kuhns Applied Research Laboratory NSP packet Formats.
Internet Protocol Formats. IP (V4) Packet byte 0 byte1 byte 2 byte 3 data... – up to 65 K including heading info Version IHL Serv. Type Total Length Identifcation.
Samples of Descriptive Problems CSC/ECE 573, Sections 001 Fall, 2012.
TCP/IP Networking (2:1) Joy Kuri, Haresh Dagale, T.V.Prabhakar.
Network Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
1 Figure 3-13: Internet Protocol (IP) IP Addresses and Security  IP address spoofing: Sending a message with a false IP address (Figure 3-17)  Gives.
Internet Protocol Version 4 VersionHeader Length Type of Service Total Length IdentificationFragment Offset Time to LiveProtocolHeader Checksum Source.
THE CLASSIC INTERNET PROTOCOL (RFC 791) Dr. Rocky K. C. Chang 20 September
VersionIHLTotal Length FlagsIdentificationFragment Offset Time To Live Destination Address OptionsPadding Protocol = 6 Type of Service IP Header TCP Destination.
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,
Network Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
IP Fragmentation. MTU Maximum Transmission Unit (MTU) –Largest IP packet a network will accept –Arriving IP packet may be larger IP Packet MTU.
Introduction To TCP/IP Networking Mr. Zeeshan Ali, Asst. Professor
Introduction to TCP/IP networking
Multiplexing.
or call for office visit, or call Kathy Cheek,
Internet Protocol Formats
Process-to-Process Delivery
Standards Basics.
Internet Protocol (IP)
Help! Tell me about Computer Data!
IP Programming.
What does this packet do?
Chapter 20. Network Layer: IP
Internet Protocol Formats
Advanced Computer Networks
46 to 1500 bytes TYPE CODE CHECKSUM IDENTIFIER SEQUENCE NUMBER OPTIONAL DATA ICMP Echo message.
IPv4 Addressing By, Ishivinder Singh( ) Sharan Patil ( )
Electrical Communications Systems ECE Spring 2019
Network Architecture Models: Layered Communications
Electrical Communications Systems ECE Spring 2019
Electrical Communications Systems ECE Spring 2019
32 bit destination IP address
Electrical Communications Systems ECE
Presentation transcript:

Decoding an IP Header (1) 0x45 = Version 4, IHL 5 0x00 = ToS 0 (not set) 4500 0034 c9e7 4000 3d06 178c d823 d9ba ac10 00b7 0017 12f5 729a 2105 145c db4f 6018 16d0 a7cb 0000 0204 05b4 6c73 202d 6c61 0000 IP Version Length: 4 bits Offset: 0 bits IP Header Length (IHL) Length: 4 bits Offset: 4 bits Type of Service (ToS) Length: 1 byte Offset: 1 byte

Decoding an IP Header (2) 0x0034 = Length 52 bytes 0xc9e7 = IPID 51687 0x3d = TTL 61 4500 0034 c9e7 4000 3d06 178c d823 d9ba ac10 00b7 0017 12f5 729a 2105 145c db4f 6018 16d0 a7cb 0000 0204 05b4 6c73 202d 6c61 0000 Total Packet Length Length: 2 bytes Offset: 2 bytes IP Identification (IPID) Length: 2 bytes Offset: 4 bytes Time to Live (TTL) Length: 1 byte Offset: 8 bytes

Decoding an IP Header (3) 0x4000 = 0100 0000 0000 0000 Flags 010 (Don’t Fragment set) Fragment Offset = 0’s (not set) 0x06 = Embedded Protocol 6 (TCP) 4500 0034 c9e7 4000 3d06 178c d823 d9ba ac10 00b7 0017 12f5 729a 2105 145c db4f 6018 16d0 a7cb 0000 0204 05b4 6c73 202d 6c61 0000 IP Header Flags Length: 3 bits Offset: 6 bytes Fragment Offset Length: 13 bits Offset: 6 bytes + 3 bits Embedded Protocol Length: 1 byte Offset: 9 bytes

Decoding an IP Header (4) 0xd8 0x23 0xd9 0xba = 216 35 217 186 Source Address 0x178c = Checksum 62216 0xac 0x10 0x00 0xb7 = 172 16 0 183 Destination Address 4500 0034 c9e7 4000 3d06 178c d823 d9ba ac10 00b7 0017 12f5 729a 2105 145c db4f 6018 16d0 a7cb 0000 0204 05b4 6c73 202d 6c61 0000 Checksum Length: 2 bytes Offset: 10 bytes Source Address Length: 4 bytes Offset: 12 bytes Destination Address Length: 4 bytes Offset: 16 bytes

Decoding a TCP Header (1) 0x0017 = Source Port 23 0x12f5 = Dest. Port 4853 0x729a2105 = Sequence number 1922703621 4500 0034 c9e7 4000 3d06 178c d823 d9ba ac10 00b7 0017 12f5 729a 2105 145c db4f 6018 16d0 a7cb 0000 0204 05b4 6c73 202d 6c61 0000 Source Port Length: 2 bytes Offset: 0 bytes Destination Port Length: 2 bytes Offset: 2 bytes Sequence Number Length: 4 bytes Offset: 4 bytes

Decoding a TCP Header (2) 0x60 = 0110 0000 Header Len 0110 = 6 0xa7cb = Checksum 42955 0x145cdb4f = ACK number 341629775 0x18 = 0001 1000 Flags = PSH, ACK 4500 0034 c9e7 4000 3d06 178c d823 d9ba ac10 00b7 0017 12f5 729a 2105 145c db4f 6018 16d0 a7cb 0000 0204 05b4 6c73 202d 6c61 0000 ACK Number Length: 4 bytes Offset: 8 bytes Header Length Length: 4 bits Offset: 12 bytes TCP Flags Length: 1 byte Offset: 13 bytes Checksum Length: 2 bytes Offset: 16

Decoding a TCP Header (3) 0x16d0 = Window size 5840 0x0000 = Urgent Ptr 0 (not set) 0x020405b4 = 0x02 MSS set, 0x04 4 bytes 0x05b4 MSS is 1460 bytes 4500 0034 c9e7 4000 3d06 178c d823 d9ba ac10 00b7 0017 12f5 729a 2105 145c db4f 6018 16d0 a7cb 0000 0204 05b4 6c73 202d 6c61 0000 TCP Window Size Length: 2 bytes Offset: 14 bytes Urgent Ptr Length: 2 bytes Offset: 18 bytes TCP Options Length: variable Offset: 20 bytes Data Length: variable Offset: variable

Decoding a TCP Header (4) (TCP Header Length - Min. TCP Header Length) = TCP Options Length (6 * 4) - 20 = 4 IP Total Length - (IHL + TCP Header Length) = Payload Length 52 - ((5 * 4) + (6 * 4)) = 8 4500 0034 c9e7 4000 3d06 178c d823 d9ba ac10 00b7 0017 12f5 729a 2105 145c db4f 6018 16d0 a7cb 0000 0204 05b4 6c73 202d 6c61 0000 TCP Options Length: 4 bytes Offset: 20 bytes 0x020405b4 = 0x02 MSS set, 0x04 4 bytes 0x05b4 MSS is 1460 bytes Payload Length: 8 Offset: 24 bytes