Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual...
-
date post
15-Jan-2016 -
Category
Documents
-
view
225 -
download
0
Transcript of Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual...
![Page 1: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/1.jpg)
Network Layer
![Page 2: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/2.jpg)
The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end devices.
To accomplish this end-to-end transport, Layer 3 uses four basic processes: Addressing Encapsulation Routing Decapsulation
![Page 3: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/3.jpg)
Routing
The source and destination hosts are not always connected to the same network. In fact, the packet might have to travel through many different networks. Along the way, each packet must be guided through the network to reach its final destination.
Intermediary devices that connect the networks are called routers. The role of the router is to select paths for and direct packets toward their destination. This process is known as routing.
Each route that a packet takes to reach the next device is called a hop.
![Page 4: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/4.jpg)
Protocols in Network Layer
The Internet Protocol (IPv4 and IPv6) is the most widely-used Layer 3 data carrying protocol
![Page 5: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/5.jpg)
Why separate hosts into network ?
Performance
![Page 6: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/6.jpg)
Packet tracer broadcast domain
![Page 7: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/7.jpg)
Security
![Page 8: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/8.jpg)
Address Management
![Page 9: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/9.jpg)
Network layer in an internetwork
![Page 10: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/10.jpg)
Network layer at the source
![Page 11: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/11.jpg)
Network layer at a router
![Page 12: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/12.jpg)
Network layer at the destination
![Page 13: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/13.jpg)
IP Addressing (IPv4)IP Addressing (IPv4)
Internet Address
Class full Addressing
![Page 14: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/14.jpg)
An IP address is a 32-bit address.
NoteNote::
The Internet Protocol was designed as a protocol with low overhead. It provides only the functions that are necessary to deliver a packet from a source to a destination over an interconnected system of networks. The protocol was not designed to track and manage the flow of packets. These functions are performed by other protocols in other layers.
IPv4 basic characteristics:•Connectionless - No connection is established before sending data packets.•Best Effort (unreliable) - No overhead is used to guarantee packet deliveryHere, Unreliable means simply that IP does not have the capability to manage, and recover from, undelivered or corrupt packets.
•Media Independent - Operates independently of the medium carrying the data.
![Page 15: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/15.jpg)
The IP addresses are unique and universal.
NoteNote::
![Page 16: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/16.jpg)
Dotted-decimal notation
![Page 17: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/17.jpg)
Example 1Example 1
Change the following IP addresses from binary notation to dotted-decimal notation.
a. 10000001 00001011 00001011 11101111
b. 11111001 10011011 11111011 00001111
![Page 18: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/18.jpg)
Example 2Example 2
Change the following IP addresses from dotted-decimal notation to binary notation.
a. 111.56.45.78
b. 75.45.34.78
![Page 19: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/19.jpg)
In classful addressing, the address space is divided into five classes: A, B,
C, D, and E.
NoteNote::
![Page 20: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/20.jpg)
Finding the class in binary notation
![Page 21: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/21.jpg)
Finding the address class
![Page 22: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/22.jpg)
Example 3Example 3
Find the class of each address:
a. 000000001 00001011 00001011 11101111
b. 111111110011 10011011 11111011 00001111
![Page 23: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/23.jpg)
Finding the class in decimal notation
![Page 24: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/24.jpg)
Example 4Example 4
Find the class of each address:
a. 227.12.14.87
b. 252.5.15.111
c. 134.11.78.56
![Page 25: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/25.jpg)
Netid and hostid
![Page 26: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/26.jpg)
Blocks in class A
![Page 27: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/27.jpg)
Millions of class A addresses are wasted.
NoteNote::
![Page 28: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/28.jpg)
Blocks in class B
![Page 29: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/29.jpg)
Many class B addresses are wasted.
NoteNote::
![Page 30: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/30.jpg)
The number of addresses in class C is smaller than the needs of most
organizations.
NoteNote::
![Page 31: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/31.jpg)
Blocks in class C
![Page 32: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/32.jpg)
Network address
![Page 33: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/33.jpg)
In class full addressing, the network address is the one that is assigned to
the organization.
NoteNote::
![Page 34: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/34.jpg)
Example 5Example 5
Given the address 23.56.7.91, find the network address.
Ans. 23.0.0.0 (kelas A)
![Page 35: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/35.jpg)
Example 6Example 6
Given the address 132.6.17.85, find the network address.
Ans. 132.6.0.0 (kelas B)
![Page 36: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/36.jpg)
Example 7Example 7
Given the network address 17.0.0.0, find the class.
![Page 37: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/37.jpg)
A network address is different from a netid. A network address has both
netid and hostid, with 0s for the hostid.
NoteNote::
![Page 38: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/38.jpg)
Sample internet (classful)
![Page 39: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/39.jpg)
Gateway
![Page 40: Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.](https://reader036.fdocuments.in/reader036/viewer/2022062423/56649d615503460f94a4296f/html5/thumbnails/40.jpg)
IP Private
Range Total
10.0.0.0 to 10.255.255.255 224
172.16.0.0 to 172.31.255.255 220
192.168.0.0 to 192.168.255.255 216
Private addresses (others are called Public IP or Global address) :