NETWORK LAYER (1) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.

Slides:



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

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.
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.
Chapter 20 Network Layer: Internet Protocol Stephen Kim 20.1.
Internet Protocol (IP)
ECOM 4314 Data Communications Fall September, 2010.
Oct 19, 2004CS573: Network Protocols and Standards1 IP: Datagram and Addressing Network Protocols and Standards Autumn
Ch 23 1 Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007 Ameera Almasoud.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Chapter 8 Switching Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 8.# 1.
MODULE IV SWITCHED WAN.
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
Switched network.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
8.1 Chapter 8 Switching Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Dr. John P. Abraham Professor UTPA
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.
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.
Packet switching network Data is divided into packets. Transfer of information as payload in data packets Packets undergo random delays & possible loss.
Chapter 8 Switching Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Kyung Hee University Chapter 4 Introduction to Network Layer.
Chapter 20 Network Layer: Internet Protocol
1 Kyung Hee University Chapter 8 Internet Protocol (IP)
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.
Unit III Bandwidth Utilization: Multiplexing and Spectrum Spreading In practical life the bandwidth available of links is limited. The proper utilization.
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CH. 8: SWITCHING & DATAGRAM NETWORKS 7.1.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
1 Kyung Hee University Chapter 8 Switching. 2 Kyung Hee University Switching  Switching  Switches are devices capable of creating temporary connections.
Data Communication Networks Lec 13 and 14. Network Core- Packet Switching.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 7 Internet Protocol Version4.
Prepaid by: Guided by: ashwin goswami.
Switching By, B. R. Chandavarkar, CSE Dept., NITK, Surathkal Ref: B. A. Forouzan, 5 th Edition.
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 11 User Datagram Protocol
Chapter 19 Network Layer Protocols
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Chapter 4 Introduction to Network Layer
Scaling the Network: The Internet Protocol
Topics discussed in this section:
Internet Protocol: Connectionless Datagram Delivery
Chapter 3 Switching.
SWITCHING Switched Network Circuit-Switched Network Datagram Networks
Chapter 20 Network Layer: Internet Protocol
Internet Protocol Version4
Chapter 4 Introduction to Network Layer
Dr. John P. Abraham Professor UTPA
Internetworking Outline Best Effort Service Model
Chapter 20 Network Layer: Internet Protocol
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
CPEG512 Advanced Computer Networks
Data Communication Networks
Dr. John P. Abraham Professor UTPA
Net 323 D: Networks Protocols
Data Communication and Computer Networks
ITIS 6167/8167: Network and Information Security
NET 323D: Networks Protocols
Presentation transcript:

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

Introduction  The physical and data link layers of a network operate locally.  These two layers are jointly responsible for data delivery on the network from one node to the next. 2

Links between two hosts 3

Network layer in an internetwork 4

Need for Network Layer  To solve the problem of delivery through several links, the network layer was designed.  The network layer is responsible for host-to-host delivery and for routing the packets through the routers. 5

Need for Network Layer  The network layer at the router is responsible for routing the packet.  When a packet arrives, the router consults its routing table and finds the link from which the packet must be sent.  The packet, after some changes in the header, with the routing information is passed to the data link layer again.  The network layer at the destination is responsible for address verification; it makes sure that the destination address on the packet is the same as the address of the host. 6

Network layer at the source, router, and destination 7

8

Internet as a Datagram Network  The Internet, at the network layer, is a packet switched network.  In the packet-switched network, the message needs to be divided into packets of fixed or variable size.  The size of the packet is determined by the network and the governing protocol.  When a switch receives a packet, no matter what is the source or destination, the packet must wait if there are other packets being processed. 9

Packet Switching Networks  Packet switching uses either the virtual circuit approach or the datagram approach. 10

Datagram Networks  In a datagram network, each packet is treated independently of all others. Even if a packet is part of a multi packet transmission, the network treats it as though it existed alone.  Packets in this approach are referred to as datagrams. 11

A datagram network with four switches (routers) 12

Routing Table  In this type of network, each switch has a routing table which is based on the destination address.  The routing tables are dynamic and are updated periodically.  The destination addresses and the corresponding forwarding output ports are recorded in the tables. 13

Routing table in a datagram network 14

Destination Address  Every packet in a datagram network carries a header that contains, among other information, the destination address of the packet.  When the switch receives the packet, this destination address is examined; the routing table is consulted to find the corresponding port through which the packet should be forwarded.  This address remains the same during the entire journey of the packet. 15

VIRTUAL-CIRCUIT NETWORKS  a source and destination need to go through three phases: setup, data transfer, and teardown.  In the setup phase, the source and destination use their global addresses to help switches make table entries for the connection.  In the teardown phase, the source and destination inform the switches to delete the corresponding entry.  Data transfer occurs between these two phases 16

Switch and tables in a virtual-circuit network 17

Source-to-destination data transfer in a virtual-circuit network 18

VIRTUAL-CIRCUIT NETWORKS  Setup Phase:  In the setup phase, a switch creates an entry for a virtual circuit.  Data Transfer Phase:  All switches need to have a table entry for this virtual circuit. The table, has four columns for each virtual circuit that is already set up.  Teardowil Phase:  In this phase, source A, after sending all frames to B, sends a special frame called a teardown request.  Destination B responds with a teardown confirmation frame.  All switches delete the corresponding entry from their tables. 19

Setup request in a virtual-circuit network 20

Setup acknowledgment in a virtual- circuit network 21

Datagram VS. Virtual circuit networks  Efficiency  In datagram network, resources are allocated only when there are packets to be transferred.  In virtual-circuit network, all packets belonging to the same source and destination travel the same path;  Delay:  In datagram network, each packet may experience a wait at a switch before it is forwarded. In addition, the delay is not uniform for the packets of a message.  In a virtual-circuit network, there is a one-time delay for setup and a one-time delay for teardown. If resources are allocated during the setup phase, there is no wait time for individual packets. 22

Delay in Datagram Network 23

Delay in Virtual Circuit Network 24

Network Layer: Internet Protocol  In the Internet model, the main network protocol is the Internet Protocol (IP)  The Internet Protocol version 4 (IPv4) is the delivery mechanism used by the TCP/IP protocols. 25

Position ofIPv4 in TCPIIP protocol suite 26

IPv4  IPv4 is an unreliable and connectionless datagram protocol-a best-effort delivery service.  The term best-effort means that IPv4 provides no error control or flow control(except for error detection on the header).  IPv4 assumes the unreliability of the underlying layers and does its best to get a transmission through to its destination, but with no guarantees. 27

IPv4  IPv4 is also a connectionless protocol for a packet switching network that uses the datagram approach.  This means that each datagram is handled independently, and each datagram can follow a different route to the destination.  This implies that datagrams sent by the same source to the same destination could arrive out of order. Also, some could be lost or corrupted during transmission.  IPv4 relies on a higher-level protocol to take care of all these problems. 28

IPv4 datagram format 29

IPv4 datagram format  A datagram is 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.  Source address. This 32-bit field defines the IPv4 address of the source.  This field must remain unchanged during the time the IPv4 datagram travels from the source host to the destination host.  Destination address. This 32-bit field defines the IPv4 address of the destination.  This field must remain unchanged during the time the IPv4 datagram travels from the source host to the destination host. 30

IPv4 datagram format  Version (VER). This 4-bit field defines the version of the IPv4 protocol.  Header length (HLEN). This 4-bit field defines the total length of the datagram header in 4-byte words.  Services: an 8-bit field called as service type  The first 3 bits are called precedence bits. The precedence defines the priority of the datagram in issues such as congestion. If a router is congested and needs to discard some datagrams, those datagrams with lowest precedence are discarded first.  The next 4 bits are called type of service (TOS) bits, 31

IPv4 datagram format  TOS bits is a 4-bit subfield with each bit having a special meaning.  A bit can be either 0 or 1, and only one of the bits can have the value of 1 in each datagram  Identification. This field is used in fragmentation 32

Service Type Default types of service 33

IPv4 datagram format  Total length: This is a n-bit field that defines the total length (header plus data) of the IPv4 datagram in bytes.  To find the length of the data coming from the upper layer, subtract the header length from the total length.  The header length can be found by multiplying the value in the HLEN field by 4 34