Anjuman College of Engineering and Technology Department of Computer Science and Engineering VII Sem. TCP and IP (Elective I) Prof. Nazish Khan.

Slides:



Advertisements
Similar presentations
Ch 20. Internet Protocol (IP) Internetworking PHY and data link layers operate locally.
Advertisements

Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
CE363 Data Communications & Networking Chapter 7 Network Layer: Internet Protocol.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IPv4 - The Internet Protocol Version 4
Network Layer – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.
NETWORK LAYER (1) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Chapter 20 Network Layer: Internet Protocol Stephen Kim 20.1.
IP Suite© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
Oct 19, 2004CS573: Network Protocols and Standards1 IP: Datagram and Addressing Network Protocols and Standards Autumn
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 7 Internet Protocol Version4.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
10/13/20151 TCP/IP Transmission Control Protocol Internet Protocol.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
Dr. John P. Abraham Professor UTPA
Chapter 81 Internet Protocol (IP) Our greatest glory is not in never failing, but in rising up every time we fail. - Ralph Waldo Emerson.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ECE 4110 – Internetwork Programming IP Protocol. 2 * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall Position of IP in TCP/IP Protocol Suite.
Network Layer: Internet Protocol.
CS4550 Computer Networks II IP : internet protocol, part 2 : packet formats, routing, routing tables, ICMP read feit chapter 6.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
TCP/IP Protocol Suite 1 Chapter 8 Upon completion you will be able to: Internet Protocol Understand the format and fields of a datagram Understand the.
Communications Services Connection Oriented Service  A connection is established  Data is sent or received over this connection  Connection may be terminated.
CS 4396 Computer Networks Lab
TCP/IP Protocol Suite 1 Chapter 8 Upon completion you will be able to: Internet Protocol Understand the format and fields of a datagram Understand the.
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.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
Internet Protocol Version 4 VersionHeader Length Type of Service Total Length IdentificationFragment Offset Time to LiveProtocolHeader Checksum Source.
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
Network Layer Protocols COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IPv4 IPv4 The Internet Protocol version 4 (IPv4) is the delivery mechanism used by the TCP/IP protocols. Datagram Fragmentation Checksum Options Topics.
Lecture 13 IP V4 & IP V6. Figure Protocols at network layer.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 19 Network Layer Protocols
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP - The Internet Protocol
Network Layer Protocols
Seminar report on IPv4 & IPv6
Net 431: ADVANCED COMPUTER NETWORKS
IP - The Internet Protocol
Internet Protocol Version4
Chapter 20 Network Layer: Internet Protocol
Internet Protocol Version4
IP - The Internet Protocol
Guide to TCP/IP Fourth Edition
Dr. John P. Abraham Professor UTPA
IP : Internet Protocol Surasak Sanguanpong
Chapter 20 Network Layer: Internet Protocol
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Network Layer 2019/1/13.
Net 323 D: Networks Protocols
Chapter 15. Internet Protocol
IP - The Internet Protocol
Introduction to Networks
Network Fundamentals – Chapter 5
IPv4 Addressing By, Ishivinder Singh( ) Sharan Patil ( )
Internet Protocol (IP)
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
NET 323D: Networks Protocols
Presentation transcript:

Anjuman College of Engineering and Technology Department of Computer Science and Engineering VII Sem. TCP and IP (Elective I) Prof. Nazish Khan

Syllabus: TCP and IP Unit I: Network architecture-Standards, TCP/IP Model Overview, Networking Technologies: LANS, WANS, Connecting Devices. Internetworking concept, Internet Backbones, NAP, ISPs, RFCs and Internet Standards. Unit II: Classful Internet address, CIDR-Subnetting and Supernetting, ARP, RARP, OOTP, DHCP. Unit III: IP Datagram-IP Package-IP forwarding and routing algorithms, computing paths, RIPOSPF, ICMP, IGMP. Unit IV: TCP header, services, Connection establishment and termination, Interactive data flow, Bulk data flow, Flow control and Retransmission, TCP timers, Urgent Data processing, Congestion control, Extension headers. Unit V: Switching technology, MPLS fundamentals, signaling protocols, LDP, IP traffic engineering, ECMP, SBR, Routing extensions for traffic engineering, Traffic engineering limitations and future developments. Unit VI: IP security protocol-IPv6 addresses, Packet format, Multicast, Anycast, ICMPv6, Interoperation between IPv4 and IPv6-QoS, Auto configuration.

Course Outcomes: Upon completion of this course students will be able to: differentiate functioning of OSI and TCP/IP Model; explain the basics of networking and Internet. classify and solve problems on IP Addressing. analyze the roles, services and features of various Network Layer and Routing protocols. analyze the roles, services and features of Transport layer Protocols. explain the concepts of Switching Technologies and Traffic Engineering. explain security at IP, compare IPv4 and IPv6.

CO 3:analyze the roles, services and features of various Network Layer and Routing protocols. Internet Protocols

Introduction: The Internet Protocol (IP) is the transmission mechanism used by the TCP/IP protocols. IP is an unreliable and connectionless datagram protocol. It is also called as best effort delivery protocol. The term best effort means that it does not provide error checking and tracking. IP tries its best to get a transmission done through to its destination. IP does not guarantees the data transmission. It must be paired with a reliable protocol to provide reliability, such as TCP. IP is a connectionless protocol. This means that whatever data transmission takes place between the source and destination, it could arrive out of order, lost or corrupted.

Datagram: Packets are called as Datagram. A datagram is a packet of variable length consisting of two parts: Header and Data. The minimum size of an IP datagram is 20 bytes and maximum size is 65536 bytes. The size of the header is 20 to 60 bytes, it contains information which is related to routing and delivery. Figure in next slide shows the IP Datagram format. A brief description of each field is also given.

Datagram:

Datagram: Version: Which version of the protocol the datagram belongs to. The current version number is 4. Next version: 6 IHL: The number of 32-bit words in the header Because this is 4 bits, the max header length is 15 words (i.e. 60 bytes) The header is at least 20 bytes, but options may make it bigger

Datagram: Type of Service: Contains a 3-bit precedence field (that is ignored today), 4 service bits, and 1 unused bit. The four service bits can be: -- 0000 - Normal (default) 1000 - minimize delay 0100 - maximize throughput 0010 - maximize reliability 0001 - minimize cost This is a "hint" of what characteristics of the physical layer to use The Type of Service is not supported in most implementations. However, some implementations have extra fields in the routing table to indicate delay, throughput, reliability, and cost.

Datagram: Total Length: total length of the datagram in bytes. we know where the data starts by the header length we know the size of the data by computing "total length - header length" Identification: Uniquely identifies the datagram. Usually incremented by 1 each time a datagram is sent. All fragments of a datagram contain the same identification value. This allows the destination host to determine which fragment belongs to which datagram.

Datagram: Flags and Fragmentation Offset: Used for fragmentation DF means do not fragment. It is a request to routers not to fragment the datagram since the destination is incapable of putting the pieces back together. MF means more fragments to follow. All fragments except the last one have this bit set. It is needed to know if all fragments of a datagram have arrived. Fragment offset: number of fragment.

Datagram: Time to Live: Upper limit of routers usually set to 32 or 64. decremented by each router that processes the datagram, router discards the datagram when TTL reaches 0. Protocol: Tells IP where to send the datagram up to. 1 means ICMP 2 means IGMP 6 means TCP 17 means UDP

Datagram: Header checksum: Only covers the header, not the data. Source IP address: The sender Destination IP address: the final destination Options: Optional data. Some examples include having the router put in a IP address of router and a time stamp so the final destination knows how long it took to get to each hop. The source and destination in the IP header is the original source and the final destination! The physical layer addresses pass the datagram from router to router. So, while the physical layer addresses change from router to router, the source and destination IP addresses in the IP datagram remain constant!

Datagram: The checksum: How to compute a checksum? Put a 0 in the checksum field. Add each 16-bit value together. Add in any carry Inverse the bits and put that in the checksum field. To check the checksum: Add each 16-bit value together (including the checksum). Add in carry. Inverse the bits. The result must be 0. Remember, only the bits in the header are calculated in the IP checksum.

Example: Consider the following IP header, with source IP address of 146.149.186.20 and destination address of 169.124.21.149. All values are given in hex: 45 00 00 6c 92 cc 00 00 38 06 00 00 92 95 ba 14 a9 7c 15 95

Example: So, first add all 16-bit values together, adding in the carry each time: 4500 + 006c ---- 456c + 92cc d838 + 0000 + 3806 1103e <---But, we have a carry here! So, remove the leftmost bit and add it back in. So, we get: 103e + 1 = 103f.

Example: 103f + 0000 ---- + 9295 a2d4 + ba14 15ce8 <---Again, we have a carry here! So, remove the leftmost bit and add it back in. So, we get: 5ce8 + 1 = 5ce9. 5ce9 + a97c 10665 <---Again, we have a carry here! So, remove the leftmost bit and add it back in. So, we get: 0665 + 1 = 0666. 0666 + 1595 1bfb

Example: Now we have to inverse the bits. 1bfb = 0001 1011 1111 1011 inverse bits: 1110 0100 0000 0100 = e404 So, the checksum is e404. So, the IP header we send looks like: 45 00 00 6c 92 cc 00 00 38 06 e4 04 92 95 ba 14 a9 7c 15 95 As an exercise, please act as the receiver, compute the checksum on that packet, and make sure the result is 0!

IP Fragmentation: Note: the total_length field in the IP header is 16 bits. that means the max size of of an IP datagram is 65535 bytes. BUT, the physical layer may not allow a packet size of that many bytes (for example, a max ethernet packet is 1500 bytes) SO, IP must sometimes fragment packets. When an IP datagram is fragmented, each fragment is treated as a separate datagram. it is reassembles at the final destination, not at a router! it does that because the router may have to fragment it again!

IP Fragmentation: Each fragment has its own header. The identification number is copied into each fragment. One bit in the "flags" field says "more fragments are coming. If that bit is 0, then it signifies this is the last fragment. The "fragment offset" field contains the offset of the data. fragment flag of 0 and offset of 0 means the datagram is not fragmented. fragment offset is measured in units of 8 bytes (64 bits). That is because the fragment offset field is 3 bits shorter than the total length field (and 2^3 is 8).

IP Fragmentation: The entire flags field looks like this: -------------------------- | bit 0 | bit 1 | bit 2 | bit 0: not used bit 1: if 1, it means "don't fragment". If IP must fragment the packet and this bit is set, IP throws away the datagram. bit 2: The fragment flag.

Example: Suppose we have a physical layer that can transmit a maximum of 660 bytes. And, suppose IP wants to send 1460 bytes of data. So, the IP datagram is a total of 1480 bytes, including the 20 byte IP header: --------------------------------------------- | 20-byte ip header | 1460 bytes of data | Here is what IP sends: First packet: bytes: 20 640 | IP header | first 640 bytes of data |

Example: In that packet, "fragment flag" is 1, offset is 0. Second packet: bytes: 20 640 --------------------------------------------- | IP header | second 640 bytes of data | In that packet, "fragment flag" is 1, offset is 80. The offset is 80 because (80 * 8) is 640, so the offset of that data is 640 byes into the packet. Note: all other fields of the IP header are identical to the first packet (except the checksum)! Third packet: | IP header | third 180 bytes of data |

Example: In that packet, "fragment flag" is 0, offset is 160. The offset is 160 because (160 * 8) is 1280, so the offset of that data is 1280 byes into the packet. Note: all other fields of the IP header are identical to the first packet except the checksum. IMPORTANT: The routers see 3 separate packets. The final destination reassembles the packet before passing the packet to the upper layers.