NgNOG 20071 IP Basics Wale Adedokun and Dewole Ajao.

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.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 7 Internet Protocol Version4.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
2010 Pago Pago, American Samoa IP Basics Unix/IP Preparation Course June 29, 2010 Pago Pago, American Samoa.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
Internet Protocol (IP)
TELE202 Lecture 9 Internet Protocols (1) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Congestion control »Source: chapter 12 ¥This Lecture »Internet.
PacNOG 6: Nadi, Fiji IP Basics Steven VanDevender Hervey Allen Network Startup Resource Center.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Protocol Layering Chapter 10. Looked at: Architectural foundations of internetworking Architectural foundations of internetworking Forwarding of datagrams.
1 Chapter Overview TCP/IP DoD model. 2 Network Layer Protocols Responsible for end-to-end communications on an internetwork Contrast with data-link layer.
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.
Suez Canal University – Faculty of Computers & Informatics - Cisco Local Academy Network Fundamentals.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
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.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
How the computer transport system works IP Basics AFNOG IX Rabat, Morocco May 2008.
How the computer transport system works IP Basics AFNOG IX Rabat, Morocco May 2008.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
TCP/IP Network Essentials
2011 Dar es Salaam, Tanzania IP Basics Unix/IP Preparation Course May 29, 2011 Dar es Salaam, Tanzania.
Linux Operations and Administration Chapter Eight Network Communications.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
workshop eugene, oregon IP Basics Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
Sem1 - Module 10 Routing Fundamentals and Subnets
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.
1 Layer 3: Routing & Addressing Honolulu Community College Cisco Academy Training Center Semester 1 Version
Lecture 13 IP V4 & IP V6. Figure Protocols at network layer.
● How the computer transport system works IP Basics AFNOG IX Rabat, Morocco May 2008.
How the computer passport system works
OSI Model OSI MODEL. Communication Architecture Strategy for connecting host computers and other communicating equipment. Defines necessary elements for.
OSI Model OSI MODEL.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
How the computer transport system works
IP - The Internet Protocol
Unix System Administration
Network Layer Protocols
Lecturer, Department of Computer Application
IP - The Internet Protocol
Net 323: NETWORK Protocols
Internet Protocol Version4
Internet Protocol (IP)
Chapter 20 Network Layer: Internet Protocol
Internet Protocol Version4
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Chapter 20 Network Layer: Internet Protocol
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
Dr. John P. Abraham Professor UTPA
Network Layer 2019/1/13.
Net 323 D: Networks Protocols
Chapter 15. Internet Protocol
OSI Model OSI MODEL.
IP - The Internet Protocol
OSI Reference Model Unit II
IPv4 Addressing By, Ishivinder Singh( ) Sharan Patil ( )
IP - The Internet Protocol
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
NET 323D: Networks Protocols
Presentation transcript:

NgNOG IP Basics Wale Adedokun and Dewole Ajao

NgNOG Layers Complex problems can be solved using the common divide and conquer principle. In this case the internals of the Internet are divided into separate layers –Makes it easier to understand –Developments in one layer need not require changes in another layer –Easy formation (and quick testing of conformation to) standards Two main models of layers are used: –OSI (Open Systems Interconnection) –TCP/IP

NgNOG OSI Conceptual model composed of seven layers, developed by the International Organization for Standardization (ISO) in –Layer 7. Application (servers and clients etc web browsers, httpd) –Layer 6. Presentation (file formats e.g pdf, ASCII, jpeg etc) –Layer 5. Session (conversation initialisation, termination, ) –Layer 4. Transport (inter host comm. error correction, QOS) –Layer 3. Network (routing. path determination, IP[x] addresses etc) –Layer 2. Data link (switching. media acces, MAC addresses etc) –Layer 1. Physical (signalling. representation of binary digits) Acronym: All People Seem To Need Data Processing

NgNOG TCP/IP Generally, TCP/IP (Transmission Control Protocol/Internet Protocol) is described using three to five functional layers. We have chosen the common DoD reference model, which is also known as the Internet reference model. –Process/Application Layer consists of applications and processes that use the network. –Host-to-host transport layer provides end-to-end data delivery services. –Internetwork layer defines the datagram and handles the routing of data. –Network access layer consists of routines for accessing physical networks.

NgNOG TCP/IP Diagram

NgNOG OSI and TCP/IP

NgNOG IP Datagram Structure VersionIHLTOSTotal Length IdentificationFlagsFragment offset TTLProtocolHeader Checksum Source IP Address Destination IP Address OptionsPadding Payload (TCP/UDP/ICMP etc)

NgNOG IP Datagram Structure (contd) VERSION (4 bits) –The version field is set to the value '4' in decimal or '0100' in binary. The value indicates the version of IP (4 or 6, there is no version 5). IHL (4 bits) –The Internet Header Length (IHL) describes how big the header is in 32-bit words. For instance, the minimum value is 5, as that is the minimum size of an IP header that contains all the correct fields is 160 bits, or 20 bytes. This allows the receiver to know exactly where the payload data begins. TOS (8 bits) –Type of service allows the intermediate receiving stations (the routers) to have some notion of the quality of service desired. This allows the network to make adaptations for delay, throughput, or reliabilty.network TOTAL LENGTH (16 bits) –This informs the receiver of the datagram where the end of the data in this datagram is. This is the length of the entire datagram in octets, including the header. This is why an IP datagram can be up to 65,535 bytes long, as that is the maximum value of this 16-bit field. IDENTIFICATION (16 bits) –Sometimes, a device in the the middle of the network path cannot handle the datagram at the size it was originally transmitted, and must break it into fragments. If an intermediate system needs to break up the datagram, it uses this field to aid in identifying the fragments.network FLAGS (3 bits) –The flags field contains single-bit flags that indicate whether the datagram is a fragment, whether it is permitted to be fragmented, and whether the datagram is the last fragment, or there are more fragments. The first bit in this field is always zero. FRAGMENT OFFSET (13 bits) –When a datagram is fragmented, it is necessary to reassemble the fragments in the correct order. The fragment offset numbers the fragments in such a way that they can be reassembled correctly.

NgNOG IP Datagram Structure (contd) TIME TO LIVE (8 bits) –This field determines how long a datagram will exist. At each hop along a network path, the datagram is opened and it's time to live field is decremented by one (or more than one in some cases). When the time to live field reaches zero, the datagram is said to have 'expired' and is discarded. This prevents congestion on the network that is created when a datagram cannot be forwarded to it's destination. Most applications set the time to live field to 30 or 32 by default.network PROTOCOL (8 bits) –This indicates what type of protocol is encapsulated within the IP datagram. Some of the common values seen in this field include HEADER CHECKSUM (16 bits) –According to RFC 791, the header checksum formula is:"the 16-bit ones compliment of the ones compliment sum of all 16-bit words in the header." –The checksum allows IP to detect datagrams with corrupted headers and discard them. Since the time to live field changes at each hop, the checksum must be re-calculated at each hop. In some cases, this is replaced with a cyclic redundancy check algorithm. SOURCE ADDRESS (32 bits) –This is the IP address of the sender of the IP datagram. DESTINATION ADDRESS (32 bits) –This is the IP address of the intended receiver(s) of the datagram. If the host portion of this address is set to all 1's, the datagram is an 'all hosts' broadcast. OPTIONS & PADDING (variable) –Various options can be included in the header by a particular vendor's implementation of IP. If options are included, the header must be padded with zeroes to fill in any unused octets so that the header is a multiple of 32 bits, and matches the count of bytes in the Internet Header Length (IHL) field.

NgNOG Numbering Rules Private IP address ranges: –10/8 ( ) – /16 ( ) –172.16/12 ( ) Public Address space available from AfriNIC Choose a small block from whatever range you have, and subnet your networks (to avoid problems with broadcasts)

NgNOG Forwarding If a computer isn't on your subnet, packet's sent via a ‘gateway’ connected to networks. Default router option in /etc/rc.conf sets the default gateway for this system. Ip forwarding on a FreeBSD box turned on with the gateway_enable option in /etc/rc.conf otherwise the box will not forward packets from one interface to another.

NgNOG Client- Server Arch Client makes requests, Server serves requests. e.g HTTP for transferring ‘websites’. This is the easiest way to provide services on demand and provides a means of sharing resources more effectively. Example: Mimicking the browser with telnet (client) talking to a web server (server) –telnet 80 –GET / HTTP/1.0 –Host: –

NgNOG IP Names /etc/hosts used to contain a list of all domain names and their corresponding IP addresses. This isn't scalable, a new system was developed. DNS is the system by which domain names are converted to IP addresses and vice versa. Resolvers transverse the DNS hierarchy which is much like a filesystem, starting at the root named servers and working downwards. Name servers are the programs that keep databases of mappings between domain names (or zones) and addresses

NgNOG Debugging ping traceroute tcpdump