CPEG512 Advanced Computer Networks

Slides:



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

20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
NETWORK LAYER (1) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
IP Suite© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
1 Kyung Hee University Part 4 : Network Layer. 2 Kyung Hee University Role and Position of Network Layer o Network layer in the Internet model is responsible.
1 Internetworking : Internet architecture and TCP/IP Protocol TK3133 Computer Networking Technology.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
NetworkProtocols. Objectives Identify characteristics of TCP/IP, IPX/SPX, NetBIOS, and AppleTalk Understand position of network protocols in OSI Model.
Network Protocols.
Chapter Three Network Protocols By JD McGuire ARP Address Resolution Protocol Address Resolution Protocol The core protocol in the TCP/IP suite that.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
10/13/20151 TCP/IP Transmission Control Protocol Internet Protocol.
The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung.
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.
Network Protocols Chapter 5 (TCP/IP Suite Book): IPv4 Addresses
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.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
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.
Cisco Confidential © 2013 Cisco and/or its affiliates. All rights reserved. 1 Cisco Networking Training (CCENT/CCT/CCNA R&S) Rick Rowe Ron Giannetti.
TCP/IP & INTERNET Unit 2 Department Of Computer Science & Engineeing.
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
TCP/IP Protocol Suite and IP Addressing Presented By : Dupien AMS.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
TCP/IP Protocol Suite 1 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes Identify.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Packet Switch Network Server client IP Ether IPTCPData.
1 Kyung Hee University Chapter 19 Network Layer: Logical Addressing.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Lecture 13 IP V4 & IP V6. Figure Protocols at network layer.
Network Layer/IP Protocols 1. Outline IP Datagram (IPv4) NAT Connection less and connection oriented service 2.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 8 TCP/IP Suite Error and Control Messages.
IP Addresses: Classful Addressing
Computer Communication & Networks
LESSON Networking Fundamentals Understand IPv4.
NET 221D:Computer Networks Fundamentals
© 2003, Cisco Systems, Inc. All rights reserved.
Chapter 9 Introduction To Data-Link Layer 9.# 1
Computer Communication Networks
IP: Addressing, ARP, Routing
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
PART IV Network Layer.
Byungchul Park ICMP & ICMPv DPNM Lab. Byungchul Park
Net 323: NETWORK Protocols
IP Addresses: Classful Addressing
CS 457 – Lecture 10 Internetworking and IP
Network Layer: Logical Addressing
Internetworking Outline Best Effort Service Model
Chapter 20 Network Layer: Internet Protocol
Dr. John P. Abraham Professor UTPA
Data Communications and Networking
Net 323 D: Networks Protocols
Chapter 15. Internet Protocol
Internet Control Message Protocol
Introduction to Networks
IPv4 Addressing By, Ishivinder Singh( ) Sharan Patil ( )
IP datagram fields cont.
Data Communication and Computer Networks
Presentation transcript:

CPEG512 Advanced Computer Networks University of Nizwa Electrical and computer Engineering CPEG512 Advanced Computer Networks Week8 Fall 2014/2015 Atef Abu Salim

Data link layer The Data Link layer of a model typically has the following responsibilities: 1. Creates a frame 2. Creates an error-free logical connection Error control Flow control 3. Makes sure the receiver stays synchronized with the incoming data stream. CPEG512 11/11/2014

Flow Control Ensuring the sending entity does not overwhelm the receiving entity: Preventing buffer overflow. Propagation time. Transmission time. CPEG512 11/11/2014

Error Control Detection errors Lost frames Damaged frames Automatic repeat request CPEG512 11/11/2014

The network layer is responsible: The delivery of individual packets from the original source to the final destination . Logical addressing: if the packet passes the network boundary we need another addressing system to help (source to destination) connection. Routing : route or switch the packet to final destination. Source-to-destination delivery (End-to-End). CPEG512 11/11/2014

Internet Protocol Provides information about how and where data should be delivered Subprotocol that enables TCP/IP to internetwork To internetwork is to traverse more than one LAN segment and more than one type of network through a router In an internetwork, the individual networks that are joined together are called subnetworks CPEG512 11/11/2014

Internet Protocol cont. IP is an unreliable, connectionless protocol, which means it does not guarantee delivery of data Connectionless Allows protocol to service a request without requesting verified session and without guaranteeing delivery of data CPEG512 11/11/2014

Position of IP in TCP/IP protocol suite CPEG512 11/11/2014

Datagram A packet in the IP layer is called a datagram, a variable- length packet consisting of two parts: header and data. The header is 20 to 60 bytes in length and contains information essential to routing and delivery. CPEG512 11/11/2014

IP datagram CPEG512 11/11/2014

IP datagram fields VER - version numbers, 4 and 6 HLEN - header length in 4-byte words. Value of 5 means 20 byte header DS (differentiated services or Service type ) - CPEG512 11/11/2014

IP datagram fields cont. Precedence bits - never used. Similar to PRI bits in IPv6. TOS (Type of Service) bits - If you want to send a packet with a special type of service, use one of the 5 bit sets. CPEG512 11/11/2014

IP datagram fields cont. If we call these 8 bits Differentiated Services (and not the older Service Type), then the first six bits are called code- points CPEG512 11/11/2014

IP datagram fields cont. The total length field defines the total length of the datagram Including the header. Total length field is 16 bits, or 65,535 bytes. Of which 20 to 60 bytes are the header. CPEG512 11/11/2014

IP datagram fields cont. Identification, Flags, and Fragmentation offset are all used to perform fragmentation. Time to Live - 8-bit field, so Time to Live can be set to 255. As it passes thru a router, the router decrements the counter. When counter hits 0, the datagram is deleted (and ICMP sends an error message back to the source). CPEG512 11/11/2014

IP datagram fields cont. The Protocol field (8 bits) identifies the upper layer protocol that is using IP for transmission of its data. CPEG512 11/11/2014

IP datagram fields cont. These are some common values that are used in the Protocol field CPEG512 11/11/2014

IP datagram fields cont. Header Checksum: Over the IP header only. Each 16-bit separated, then all added using one’s complement. Then taking the one’s complement of the result. Answer should be 1s. Upon checksum error, datagram is dropped and no indication is sent back. Options: Security and handling restrictions CPEG512 11/11/2014

IP Addressing IP Address Total: 232 = 4,294,967,296 Logical address used in TCP/IP networking Unique 32-bit number Divided into four groups of octets (8-bit bytes) that are separated by periods. E.g., 217.29.240.5 (www.asu.edu.jo) Total: 232 = 4,294,967,296 CPEG512 11/11/2014

IP Addressing cont. Loopback address IP address reserved for communicating from a node to itself (localhost) Value of the loopback address is always 127.0.0.1 Internet Corporation for Assigned Names and Numbers (ICANN) Non-profit organization to maintain and assign IP addresses CPEG512 11/11/2014

Why IP Addresses? 172.18.0.1 172.16.0.1 10.13.0.1 172.18.0.2 172.16.0.2 192.168.1.1 10.13.0.0 172.17.0.2 172.17.0.1 192.168.1.0 CPEG512 11/11/2014

Why IP Addresses? Cont. Unique addressing allows communication between end stations Unicast (one-to-one) Broadcast (one-to-all) Multicast (one-to-many) Path choice is based on location Location is represented by an address CPEG512 11/11/2014

IP Addresses Classful Addressing 8 bits 8 bits 8 bits 8 bits Class A: Class B: Class C: Class D: Multicast Class E: Research Network Host Network Host Network Host CPEG512 11/11/2014

IP CPEG512 11/11/2014

4.2 CLASSFUL ADDRESSING CLASSFUL ADDRESSING IP addresses, when started a few decades ago, used the concept of classes. This architecture is called classful addressing. In the mid-1990s, a new architecture, called classless addressing, was introduced and will eventually supersede the original architecture. However, part of the Internet is still using classful addressing, but the migration is very fast. CPEG512 11/11/2014

Address Space Class A addresses cover ½ the address space!! Millions of class A addresses are wasted! CPEG512 11/11/2014

Addresses per class CPEG512 11/11/2014

Finding the class in binary notation CPEG512 11/11/2014

Netid and hostid CPEG512 11/11/2014

Note In classful addressing, the network address (the first address in the block) is the one that is assigned to the organization. The range of addresses can automatically be inferred from the network address. CPEG512 11/11/2014

Masking concept Given an address from a block of addresses, we can find the network address by ANDing with a mask. CPEG512 11/11/2014

AND operation CPEG512 11/11/2014

Default masks CPEG512 11/11/2014

Note The network address is the beginning address of each block. It can be found by applying the default mask to any of the addresses in the block (including itself). It retains the netid of the block and sets the hostid to zero. CPEG512 11/11/2014

MULTIHOMED A computer that is connected to different networks is called a multihomed computer and will have more than one address, each possibly belonging to a different class. Routers are multihomed too. CPEG512 11/11/2014

Special addresses CPEG512 11/11/2014

Network address CPEG512 11/11/2014

Example of direct broadcast address CPEG512 11/11/2014

Example of limited broadcast address CPEG512 11/11/2014

Examples of “this host on this network Example: starting a dial-up connection with DHCP. CPEG512 11/11/2014

Example of “specific host on this network” CPEG512 11/11/2014

Addresses for private networks CPEG512 11/11/2014

Classless Addressing Classless addressing, announced in 1996, allows an ISP to assign as few or as many IP addresses as requested The entire 2^32 address space is divided into variable-sized blocks, which are multiples of powers of 2 CPEG512 11/11/2014

Mask In classful addressing, the mask for each block is implicit 255.0.0.0/8 255.255.0.0/16 255.255.255.0/24 In classless addressing, we need the address and the mask to find the block the address belongs to CPEG512 11/11/2014

Format of classless addressing address An address in classless addressing usually has this format: The n after the slash defines the number of bits that are the same in every address in the block. So if n is 20, it means the twenty leftmost bits are identical in each address. CPEG512 11/11/2014

Prefix and Prefix Length Two terms often used in classless addressing Prefix – another name for the common part of the address range (netid) Prefix length – the length of the prefix CPEG512 11/11/2014

Prefix lengths The addresses in color are the default masks for classes A, B, and C. Thus, classful addressing is a special case of classless addressing. CPEG512 11/11/2014

Address Resolution Protocol (ARP) CPEG512 11/11/2014

Position of ARP and RARP in TCP/IP protocol suite CPEG512 11/11/2014

ARP ARP table Layer 2 to layer 3 mapping Database that lists the associated MAC and IP addresses Contains two types of entries: Dynamic ARP table entries Static ARP table entries ARP utility provides a way of obtaining information from and manipulating a device’s ARP table CPEG512 11/11/2014

How does ARP work? 192.168.1.20 99:88:77:22:22:22 192.168.1.10 99:88:77:11:11:11 192.168.1.30 99:88:77:33:33:33 1. Who is 192.168.1.30? 2a.. It is not me. 2b. It is me. 4. OK. Let us create an ARP entry 192.168.1.30 99:88:77:33:33:33 3. My MAC address is 99:88:77:33:33:33. CPEG512 11/11/2014

ARP operation CPEG512 11/11/2014

ARP Table 192.168.1.20 99:88:77:22:22:22 192.168.1.10 99:88:77:11:11:11 192.168.1.30 99:88:77:33:33:33 192.168.1.20 99:88:77:22:22:22 192.168.1.30 99:88:77:33:33:33 192.168.1.10 99:88:77:11:11:11 192.168.1.20 99:88:77:22:22:22 192.168.1.10 99:88:77:11:11:11 192.168.1.30 99:88:77:33:33:33 CPEG512 11/11/2014

Internet Control Message Protocol (ICMP) ICMP is a companion protocol for IP. ICMP is an error reporting protocol. ICMP messages are encapsulated in an IP datagram PING uses ICMP message with ECHO CPEG512 11/11/2014