Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Similar documents
DG Forwarding Algorithm

Internetworking and Internet-1. Global Addresses

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

Savera Tanwir. Internet Protocol

Introduction to LAN/WAN. Network Layer (part II)

Transport and Network Layer

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

8.2 The Internet Protocol

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Future Internet Technologies

IP Addressing Introductory material.

IP Subnetting and Addressing

IP Addressing. IP Addresses. Introductory material.

Computer Networks. Main Functions

IP addressing and forwarding Network layer

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

ICS 351: Today's plan

IP - The Internet Protocol

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

Internet Protocol Address

Introduction to IP v6

The Internet. Internet Technologies and Applications

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

Lecture Computer Networks

RARP: Reverse Address Resolution Protocol

Layer 3 Routing User s Manual

Introduction to TCP/IP

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

Network layer: Overview. Network layer functions IP Routing and forwarding

Cisco Configuring Commonly Used IP ACLs

Datacommunication. Internet Infrastructure IPv4 & IPv6

Chapter 5: Sample Questions, Problems and Solutions Bölüm 5: Örnek Sorular, Problemler ve Çözümleri Örnek Sorular (Sample Questions):

Internetworking and IP Address

Router and Routing Basics

IP Addressing A Simplified Tutorial

Internet Protocol version 4 Part I

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

CE363 Data Communications & Networking. Chapter 6 Network Layer: Logical Addressing

Address Resolution Protocol (ARP), Reverse ARP, Internet Protocol (IP)

Internet Addresses (You should read Chapter 4 in Forouzan)

Internet Protocols. Addressing & Services. Updated:

Dynamic Routing Protocols II OSPF. Distance Vector vs. Link State Routing

Chapter 6. The Network Layer

(Refer Slide Time: 02:17)

Interconnecting Cisco Network Devices 1 Course, Class Outline

Route Discovery Protocols

IP address format: Dotted decimal notation:

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

Dynamic Host Configuration Protocol (DHCP) 02 NAT and DHCP Tópicos Avançados de Redes

CS 348: Computer Networks. - IP addressing; 21 st Aug Instructor: Sridhar Iyer IIT Bombay

Ethernet. Ethernet. Network Devices

Inter-domain Routing. Outline. Border Gateway Protocol

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

- IPv4 Addressing and Subnetting -

Network Layer: Network Layer and IP Protocol

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

IP Addressing. -Internetworking (with TCP/IP) -Classful addressing -Subnetting and Supernetting -Classless addressing

UPPER LAYER SWITCHING

Chapter 9. IP Secure

Internet Protocol Version 6 (IPv6)

04 Internet Protocol (IP)

Chapter 4 Network Layer

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

Internetworking. Problem: There is more than one network (heterogeneity & scale)

IP Networking. Overview. Networks Impact Daily Life. IP Networking - Part 1. How Networks Impact Daily Life. How Networks Impact Daily Life

Internet Protocol (IP) IP - Network Layer. IP Routing. Advantages of Connectionless. CSCE 515: Computer Network Programming IP routing

CSET 4750 Computer Networks and Data Communications (4 semester credit hours) CSET Required IT Required

Technical Support Information Belkin internal use only

2. IP Networks, IP Hosts and IP Ports

Internet Protocol: IP packet headers. vendredi 18 octobre 13

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

CS 43: Computer Networks IP. Kevin Webb Swarthmore College November 5, 2013

Variable length subnetting

Protocol Specification & Design. The Internet and its Protocols. Course Outline (trivia) Introduction to the Subject Teaching Methods

Internet Control Protocols Reading: Chapter 3

Scaling the Network: Subnetting and Other Protocols. Networking CS 3470, Section 1

Network Security TCP/IP Refresher

Routing with OSPF. Introduction

Network Protocol Configuration

WHITE PAPER. Understanding IP Addressing: Everything You Ever Wanted To Know

Network Layer. Introduction Datagrams and Virtual Circuits Routing Traffic Control. Data delivery from source to destination.

VLSM and CIDR Malin Bornhager Halmstad University

Chapter 13 Internet Protocol (IP)

Internet Protocols. Background CHAPTER

INTERCONNECTING CISCO NETWORK DEVICES PART 1 V2.0 (ICND 1)

Network Basics GRAPHISOFT. for connecting to a BIM Server (version 1.0)

Chapter 19 Network Layer: Logical Addressing 19.1

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

IP addressing. Interface: Connection between host, router and physical link. IP address: 32-bit identifier for host, router interface

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

Configuration IP Routing and Multicast Avaya Ethernet Routing Switch 4500 Series

Transcription:

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ 1

Lecture 7: Network Layer in the Internet Reference: Chapter 5 - Computer Networks, Andrew S. Tanenbaum, 4th Edition, Prentice Hall, 2003. 2

The Network Layer in the Internet The IP Protocol IP Addresses Internet Control Protocols OSPF The Interior Gateway Routing Protocol BGP The Exterior Gateway Routing Protocol IPv6 3

Design Principles for Internet Make sure it works. Keep it simple. Make clear choices. Exploit modularity. Expect heterogeneity. Avoid static options and parameters. Look for a good design; it need not be perfect. Be strict when sending and tolerant when receiving. Think about scalability. Consider performance and cost. 4

Collection of Subnetworks The Internet is an interconnected collection of many networks. 5

The IP Protocol The IPv4 (Internet Protocol) header. 6

The IP Header Version: version of the protocol used IHL: header length (number of 32-bit words) Type of service: combination of reliability and speed, commonly ignored by routers Total length: length of the datagram Identification: to identify a fragment within a datagram DF: don t fragment, tell the routers not to fragment MF: more fragments Time-to-live: a time counter to limit the message lifetime Header checksum: of the header only Source and destination addresses: address of the source and destination of the datagram 7

IP Options Some of the IP options. 8

IP Addresses IP address formats. 9

IP Address Classes Class A: 128 networks, 16 mil hosts each Class B: 16.384 networks, 64K hosts each Class C: 2 mil networks, 256 hosts each Class D: for multicast Class E: Reserved 10

IP Addresses (2) Special IP addresses. 11

Subnets A campus network consisting of LANs for various departments. 12

Subnet and Subnet Mask Some bits of the host are used to create subnet number Subnet masks are used to indicate the splits between network, subnet number and host number A class B network subnetted into 64 subnets (6 bits). 13

Routing with Subnetting Routing to destination to an outside network is done as usual Routing table adds more entries for routing within the network (this-network, subnet, 0): to route message to another subnet (this-network, this-subnet, host): to route message to a host within this-subnet 14

CDR Classless InterDomain Routing Allocate IP addresses in variable size block without regard to classes If a site needs, it is provided with a block of addresses Routing process is more complicated A set of IP address assignments. 15

NAT Network Address Translation Placement and operation of a NAT box. 16

NAT Network Address Translation (2) Use TCP or UDP header (source port field) of a message to keep track of its outgoing connection A mapping table is used at the NAT box to keep track of the private IP + port the NAT index In coming message address is reversed back to original private IP and source port using the index 17

Internet Control Message Protocol Used when unexpected events occurred in the network, also used to test the network The principal ICMP message types. 18

ARP The Address Resolution Protocol Used to map an IP addresses to data link layer addresses, e.g. Ethernet addresses Three interconnected /24 networks: two Ethernets and an FDDI ring. 19

Dynamic Host Configuration Protocol DHCP A replacement for RARP (Reverse ARP) and BOOTP (Bootstrap protocol) Operation of DHCP. 20

OSPF Open Shortest Path First The Interior Gateway Routing Protocol To replace RIP (distance vector protocol) when the networks getting bigger Similar to Link State Routing Protocol Requirements: Open Support variety of distance metrics Dynamic Support service based routing Do load balancing Support hierarchical systems Security 21

OSPF (1) (a) An autonomous system. (b) (a). A graph representation of 22

OSPF (2) The relation between ASes, backbones, and areas in OSPF. 23

OSPF (3) The five types of OSPF messages. 24

BGP Border Gateway Protocol The Exterior Gateway Routing Protocol For routing messages between Autonomous Systems Often constrained by: Politics Security Economic considerations Routers are configured with policies 25

BGP (1) Fundamentally a distance vector protocol Networks are grouped into 3 categories Stub networks: one connection to BGP graph Multiconnected networks: multiconnection to BGP graph, possibly handle third party traffic Transit networks: e.g. backbone, willing to handle third party messages 26

BGP (2) (a) A set of BGP routers. (b) Information sent to F. 27

IPv6 IPv4 address is going to be exhausted in the very near future IPv6 is introduced to cop with increasing demand for IP address 28

IPv6 Design Goals Support billions of hosts, even with inefficient address space allocation. Reduce the size of the routing tables. Simplify the protocol, to allow routers to process packets faster. Provide better security (authentication and privacy) than current IP. Pay more attention to type of service, particularly for real-time data. Aid multicasting by allowing scopes to be specified. Make it possible for a host to roam without changing its address. Allow the protocol to evolve in the future. Permit the old and new protocols to coexist for years. 29

The Main IPv6 Header 30

IPv6 Address 16 byte length address Consists of eight groups of 4 hex digits with colon between groups 8000:0000:0000:0000:0123:4567:89AB:CDEF Leading zero can be ommited One or more groups of 16 zero bits can be replace by a pair of colons: 8000::123:4567:89AB:CDEF IPv4 addresses can be written as a pair of colons and old dotted decimal number: ::192.31.20.46 31