Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual...

40
Network Layer
  • date post

    15-Jan-2016
  • Category

    Documents

  • view

    261
  • 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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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) :