Introduction The network layer sits between the application layer and the data link layer. It accepts messages from the application layer and formats.

Slides:



Advertisements
Similar presentations
CCNA – Network Fundamentals
Advertisements

Network Layer and Transport Layer.
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
Chapter 5 – TCP/IP: Part 4 Dr. V.T. Raja Oregon State University.
Introduction To Networking
Chapter 5 TCP/IP: Routing – Part 1 Dr. V.T. Raja Oregon State University.
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
1 Organizing the Internet Chapter 9. 2 Knowledge Checkpoints  Internet protocols  Routing and protocols  Internet addressing  Organization of the.
Gursharan Singh Tatla Transport Layer 16-May
Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Copyright 2005 John Wiley & Sons, Inc5 - 1 Network and Transport layers.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
NetworkProtocols. Objectives Identify characteristics of TCP/IP, IPX/SPX, NetBIOS, and AppleTalk Understand position of network protocols in OSI Model.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
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.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
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.
1 TCP/IP Internetting ä Subnet layer ä Links stations on same subnet ä Often IEEE LAN standards ä PPP for telephone connections ä TCP/IP specifies.
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.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing.
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
Network layer Accepts messages from the application layer Prepares messages for the data link layer Packetising Addressing Routing.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Dynamic Host Configuration Protocol (DHCP)
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
6-1 Business Data Communications and Networking, 6 th ed. FitzGerald and Dennis.
Linux Operations and Administration Chapter Eight Network Communications.
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.
NT1210 Introduction to Networking
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
IP - Internet Protocol No. 1  Seattle Pacific University IP: The Internet Protocol Kevin Bolding Electrical Engineering Seattle Pacific University.
1 28-Sep-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI network layer CCNA Exploration Semester 1 Chapter 5.
Chapter 9 Introduction To Data-Link Layer 9.# 1
Computer Communication Networks
Chapter 5 Network and Transport Layers
Chapter 5 Network and Transport Layers
Chapter 11 User Datagram Protocol
IP: Addressing, ARP, Routing
Chapter 21 Address Mapping
Chapter 5 Network and Transport Layers
Distributed Systems.
Objective: ARP.
ARP and RARP Objectives Chapter 7 Upon completion you will be able to:
Lec 2: Protocols.
TCP/IP Transmission Control Protocol / Internet Protocol
Lecture 6: TCP/IP Networking By: Adal Alashban
TCP Transport layer Er. Vikram Dhiman LPU.
Chapter 5 Network and Transport Layers
Chapter Three Network Protocols.
Net 323: NETWORK Protocols
Net 431 D: ADVANCED COMPUTER NETWORKS
Chapter 5 Network and Transport Layers
CS 457 – Lecture 10 Internetworking and IP
Chapter 20 Network Layer: Internet Protocol
Process-to-Process Delivery:
Wide Area Networks and Internet CT1403
Lecture 6: TCP/IP Networking 1nd semester By: Adal ALashban.
TCP/IP Protocol Suite: Review
Net 323 D: Networks Protocols
Transport Layer 9/22/2019.
Presentation transcript:

Introduction The network layer sits between the application layer and the data link layer. It accepts messages from the application layer and formats and addresses them for transmission by the data link layer. Both the sender and receiver have to agree on the rules or protocols that govern how their network layers will communicate with each other.

Introduction A network protocol provides three functions: Breaks large messages into packets for transmission and reassembles them at the receiver’s end (packetizing). Determines the correct network layer and data link layer addresses. (addressing). Determines where the message should be send next on its way to its final destination (routing).

Introduction Some network layers are compatible with a variety of different data link layer protocols and can be used interchangeably in the same network.

Network Protocols There are many different network layer protocols.Each protocol performs essentially the same functions, but each is incompatible with others unless there is a special device to translate between them. The four most commonly used network protocols are: TCP/IP IPX/SPX X.25 SNA

Transmission Control Protocol/ Internet Protocol (TCP/IP) The Transmission Control Protocol/ Internet Protocol (TCP/IP) was developed for the U.S. Dept of Defense’s Advanced Research Project Agency Network (ARPANET) in 1974. TCP/IP allows reasonable efficient and error-free transmission.

Transmission Control Protocol/ Internet Protocol (TCP/IP) TCP/IP has two parts: TCP - performs packetizing: breaking the data into smaller packets, numbering them, ensuring each packet is reliably delivered, and putting them into the proper order at the destination. TCP is only active at the sender and receiver. IP - performs routing and addressing. A typical TCP packet has 192-bit header of control information.

Transmission Control Protocol/ Internet Protocol (TCP/IP) Two forms of IP are currently in use: IPv4 also has a 192-bit header. IPv6 has a 320-bit header. The primary reason for the increase in packet size is an increase in the address size from 32 bits to 128 bits, due to the dramatic growth in the usage of the Internet. The size of the message field depends on the data link layer protocol used. TCP/IP is commonly combined with Ethernet.

IPX/SPX Internet Packet Exchange /Sequenced Packet Exchange (IPX/SPX) is based on a routing protocol developed by Xerox in the 1970s, and is the primary network protocol used by Novell Netware, although Novell plans to replace IPX/SPX with TCP/IP.

IPX/SPX IPX/SPX has two parts: SPX performs the same packetizing functions of TCP: breaking the data into smaller packets, numbering them, ensuring each packet is reliably delivered, and putting them into the proper order at the destination. IPX performs the same routing and addressing functions as IP. IPX/SPX is similar to TCP/IP in concept, but different in structure.

IPX/SPX A typical SPX packet has a 12-byte header of control information. IPX has a 30-byte header. The size of the message field depends on the data link layer protocol used. IPX/SPX is often used with Ethernet.

X.25 X.25 is a standard developed by ITU-ISS for use in wide area networks. X.25 also has two parts: Packet layer protocol (PLP) the routing protocol that performs routing and addressing functions similar to IP X.3 performs the packetizing functions of TCP.

X.25 There are several types of PLP packets. A typical packet used to transmit data has a 3-byte header. PLP typically combined with LAP-B at the data link layer.

System Network Architecture (SNA) System Network Architecture (SNA) is an approach to networking developed by IBM in 1974. SNA is used only on IBM and compatible mainframes. As with the other network layer protocols, SNA has two parts. The transmission control layer performs functions similar to TCP, and the path control layer performs functions similar to IP. SNA typically uses SDLC as its data link layer protocol.

Addressing Before you can send a message, you must know the destination address. When the users work with application software, they typically use the application layer address. The network layer translates this application layer address into a network layer address.

Types of addresses Address Example Software Example Address Application Layer Web browser www.cba.uga.edu Network Layer TCP/IP 128.192.98.5 Data Link Layer Ethernet 00-0C-00-F5-03-5A

Addressing The network layer then determines the best route through the network to the final destination. Based on this routing, the network layer identifies the data link layer address of the next computer to which the message should be sent.

Assigning Addresses In general, the data link layer address is permanently encoded in each network card, and as part of the hardware cannot be changed. Network layer addresses are generally assigned by software. Every network layer software package usually has a configuration file that specifies the network layer address for that computer.

Assigning Addresses Application layer addresses (or server addresses) are also assigned by a software configuration file. Virtually all servers have an application layer address, but most client computers do not. Network layer addresses and application layer addresses go hand in hand. (www.uga.edu -application means 192.128.98.53 at the network layer.

Internet Addresses On the Internet, InterNIC is responsible for network layer addresses (IP addresses) and application layer addresses or domain names (www.uga.edu). There are five classes of Internet addresses. Classes A, B, and C are presented in Figure 6-7 Class D and E are reserved for special purposes and are not assigned to organizations.

Internet Address Classes Number of Addresses Class Available to User Address Structure Example Class A 16 million First byte fixed 50.x.x.x Organization assigns last three bytes Class B 16,000 First two bytes fixed 128.192.x.x Organization assigns last two bytes Class C 250 First three bytes fixed 192.1.56.x Organization assigns last byte

Internet Addresses One of the problems with the current address class system is that the Internet is quickly running out of addresses. Although there are more than 1 billion possible addresses, the fact that they are assigned in sets (or groups) significantly restricts the number of usable addresses. The IP address shortage was one of the reasons behind the IPv6, providing in theory, 3.2 x 1038 possible addresses.

Subnets Each organization must assign the IP addresses it has received to specific computers on its networks. In general, IP addresses are assigned so that all computers on the same local area network have a similar address.

Dynamic Addressing Every computer knows its network layer address from a configuration file that is installed when the computer is first attached to the network. However, each time the computer is moved, or its network is assigned a new address, the software on each individual computer must be updated.

Dynamic Addressing The easiest way around this problem is dynamic addressing. With this approach, a server is designated to supply a network layer address to a computer each time the computer connects to the network. Two standards for dynamic addressing are commonly used in TCP/IP networks: Bootstrap Protocol (bootp) Dynamic Host Control Protocol (DHCP)

Address Resolution In order to send a message, the sender must be able to translate the application layer address (or server name) of the destination into a network layer address and in turn translate that into a data link layer address. This process is called address resolution. TCP/IP uses two different approaches, one for resolving application layer addresses into IP addresses and one for resolving IP addresses into data link layer addresses.

Server Name Resolution Server name resolution is the translation of application layer addresses into network layer addresses. This is done using the Domain Name Service (DNS). Whenever you receive a set of Internet addresses, you must inform InterNIC of the name and IP addresses of the name server that will provide DNS information for all addresses in that Class.

Server Name Resolution When TCP/IP needs to translate an application layer address into an IP address, it sends a special TCP-level packet to the nearest DNS server. This packet asks the DNS server to send the requesting computer the IP address that matches the Internet address provided. This is why it sometimes takes a long time to access certain sites. IP addresses are then temporarily stored in a server address table.

Data Link Layer Address Resolution In order to actually send a message, the network layer software must know the data link layer address of the destination computer. In the case of a distant computer, the network layer would route the message by selecting a path through the network that would ultimately lead to the destination.

Routing In many networks, there are many possible routes or paths a message can take to get from one computer to another. Routing is the process of determining the route or path through the network that a message will travel from the sender to the receiver. Every computer that performs routing has a routing table developed by the network manager that specifies how message will travel through the network.

Routing

Routing There are two fundamental approaches to routing: Centralized routing - all routing decisions are made by one central computer. Decentralized Routing - allows all computers in the network to make their own routing decisions following a formal routing protocol. Most decentralized routing protocols are self-adjusting, adapting to changes in the network configurations.

Static Routing There are two types of dynamic routing: Static Routing - where the routing table developed by the network manager, and changes made only when computers are added or removed from network.

Dynamic Routing Dynamic Routing (adaptive routing)- is used when there are multiple routes through a network and it is important to select the best (or fastest) route, in order to route messages away from traffic on busy circuits. An initial routing table is developed by the network manager, but is continuously updated by the computers themselves to reflect changing network conditions, such as network traffic.

Dynamic Routing There are three commonly used dynamic routing protocols Routing Information Protocol (RIP)- used by the network manager to develop the routing table. Used by both TCP/IP and IPX/SPX. Internet Control Message Protocol (ICMP)-used on the internet with TCP/IP. Open Shortest Path First (OSPF) uses the number of computers in a route as well as network traffic and error rates to select the best route.

Dynamic Routing OSPF is more efficient than RIP because it normally doesn’t use broadcast messages. Instead it selectively sends status update messages directly to selected computes (used by TCP/IP). Two drawbacks to Dynamic Routing. It requires more processing by each computer in the network than centralized or static routing. The transmission of status information “wastes” network capacity.

Connectionless vs. Connection-Oriented Routing Some messages or blocks of application data are small enough that they can be transmitted in one packet or frame at the data link layer. In other cases the application data in one message is too large and must be broken into several packets.

Connectionless vs. Connection-Oriented Routing There are two ways these sets of packets can be routed through a network. Connectionless routing means each packet is treated separately and makes its own way through the network. Connection-Oriented routing Sets up a virtual circuit between the sender and receiver. Appears to use point-to-point circuit-switching, but actually uses store-and-forward. Has greater overhead than connectionless, due to the routing information.

Connectionless vs. Connection-Oriented Routing TCP/IP can operate as connection-oriented or connectionless. When connection-oriented routing is needed, both TCP and IP are used. TCP establishes the virtual circuit and IP routes the messages. When connectionless routing is desired, only IP is needed, and the TCP packet is replaced with a User Datagram Protocol (UDP) packet.

Connectionless vs. Connection-Oriented Routing IPX/SPX can also operate as either as connection-oriented or connectionless. When connection-oriented routing is needed, both IPX and SPX are used. SPC establishes the virtual circuit and IPX routes the messages. When connectionless routing is desired, only IPX is needed.

Connectionless vs. Connection-Oriented Routing Quality of Service (QoS) routing is a special type of connection-oriented dynamic routing in which different messages or packets are assigned different priorities. With QoS routing, different classes of service are defined each with different priorities. QoS routing is common in certain kinds of networks (e.g. ATM).

Multicasting The most common type of message in a network is the usual transmission between two computers. This is called a unicast message. A broadcast message can also be sent to all computers on a LAN or subnet. A third type of message, called a multicast message is used to send the same message to a group of computers.

Multicasting Computers wishing to participate in a multicast send a message to the sending computer or some other computer performing routing along the way using a special type of TCP-level packet called Internet Group Management Protocol. Each multicast group is temporarily assigned a special Class D IP address to identify the group, thus allowing a restricted broadcast of messages to this specific group.

Data transmission using TCP/IP and Ethernet packet header IP packet TCP packet HTTP packet User Data Ethernet packet trailer

TCP Packet 1 2 3 4 5 6 7 8 9 10 11 User Data 1 Source ID 16 bits 2 Destination ID 16 bits 3 Sequence number 32 bits 4 ACK number 32 bits 5 Header length 4 bits 6 Unused 6 bits 7 Flags 6 bits 8 Flow control 16 bits 9 CRC 16 16 bits 10 Urgent pointer 16 bits 11 Options 16 bits

IP Packet version IP4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 Version number 4 bits 2 Header length 4 bits 3 Type of Service 8 bits 4 Total length 16 bits 5 Identifiers 16 bits 6 Flags 3 bits 7 Packet offset 13 bits 8 Hop limit 8 bits 9 Protocol 8 bits 10 CRC 16 16 bits 11 Source address 32 bits 12 Destination Address 32 bits 13 Options varies 14 User data varies 15 Flow name 24 bits 16 Next header 8 bits IP6 1 15 4 16 8 11 (128 bits) 12 (128 bits) 14

IPX/SPX SPX packet IPX packet 1 2 3 4 5 6 7 User Data 1 Control 1 byte 2 Type 1 byte 3 Source ID 2 bytes 4 Destination ID 2 bytes 5 Sequence number 2 bytes 6 ACK number 2 bytes 7 Allocation number 2 bytes 1 Checksum 2 bytes 2 Lensill 2 byte 3 Control 1 byte 4 Type 1 byte 5 Destination address 6 bytes 6 Destination network address 4 bytes 7 Destination socket 2 bytes 8 Source address 6 bytes 9 Source network address 4 bytes 10 Source socket 2 bytes IPX packet 1 2 3 4 5 6 7 8 9 10 User Data