Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

49
Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadia

Transcript of Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Page 1: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Jaringan Komputer DasarNetwork Layer dan IP (1)

Aurelio Rahmadian

Page 2: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

ObjektifFungsi Network LayerNetwork Layer ProtocolInternet ProtocolIP HeaderPembagian JaringanAlamat IPv4

Page 3: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Fungsi Network LayerThe protocols of the OSI model

Network layer specify addressing and processes that enable Transport layer data to be packaged and transported.

The Network layer encapsulation allows its contents to be passed to the destination within a network or on another network with minimum overhead.

Page 4: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Fungsi Network LayerThe 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 5: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Fungsi Network Layer

AddressingNetwork layer must provide a

mechanism for addressing these end devices. If individual pieces of data are to be directed to an end device, that device must have a unique address. In an IPv4 network, when this address is added to a device, the device is then referred to as a host.

Page 6: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Fungsi Network Layer

EncapsulationLayer 3 receives the Layer 4 PDU and

adds a Layer 3 header, or label, to create the Layer 3 PDU.

When a packet is created, the header must contain, among other information, the address of the host to which it is being sent (destination address) and the address of the originating host (source address).

Page 7: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Fungsi Network Layer

RoutingNetwork layer must provide services to

direct these packets to their destination host. The source and destination hosts are not always connected to the same network.

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.

Page 8: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Fungsi Network Layer

DecapsulationFinally, the packet arrives at the

destination host and is processed at Layer 3. The host examines the destination address to verify that the packet was addressed to this device. If the address is correct, the packet is decapsulated by the Network layer and the Layer 4 PDU contained in the packet is passed up to the appropriate service at Transport layer.

Page 9: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Network Layer ProtocolInternet Protocol version 4 (IPv4)Internet Protocol version 6 (IPv6)Novell Internetwork Packet

Exchange (IPX)AppleTalkConnectionless Network Service

(CLNS/DECNet)

Page 10: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Internet Protocol

Page 11: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Internet Protocol

Page 12: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Internet Protocol

Page 13: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Internet Protocol

Page 14: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Internet ProtocolUnreliable in this context does not mean that

IP works properly sometimes and does not function well at other times. Nor does it mean that it is unsuitable as a data communications protocol. Unreliable means simply that IP does not have the capability to manage, and recover from, undelivered or corrupt packets.

The header of an IP packet does not include fields required for reliable data delivery. There are no acknowledgments of packet delivery. There is no error control for data. Nor is there any form of packet tracking; therefore, there is no possibility for packet retransmissions.

Page 15: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Internet Protocol

Page 16: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Internet ProtocolThere is, however, one major

characteristic of the media that the Network layer considers: the maximum size of PDU that each medium can transport. This characteristic is referred to as the Maximum Transmission Unit (MTU).

In some cases, an intermediary device - usually a router - will need to split up a packet when forwarding it from one media to a media with a smaller MTU. This process is called fragmenting the packet or fragmentation.

Page 17: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

IP Header

Page 18: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

IP Header6 key fields of IP header:

◦IP Source Address◦IP Destination Address◦Time-to-Live (TTL)◦Type-of-Service (ToS)◦Protocol◦Fragment Offset

Page 19: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

IP HeaderOther IP header fields:

◦ Version - Contains the IP version number (4).◦ Header Length (IHL) - Specifies the size of the

packet header. ◦ Packet Length - This field gives the entire packet

size, including header and data, in bytes. ◦ Identification - This field is primarily used for

uniquely identifying fragments of an original IP packet.

◦ Header Checksum - The checksum field is used for error checking the packet header.

◦ Options - There is provision for additional fields in the IPv4 header to provide other services but these are rarely used.

Page 20: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

IP Header

Page 21: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian JaringanAs our networks grow, they may

become too large to manage as a single network. At that point, we need to divide our network. When we plan the division of the network, we need to group together those hosts with common factors into the same network.

Page 22: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian Jaringan

Page 23: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian Jaringan

Page 24: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian Jaringan

Page 25: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian JaringanCommon issues with large

networks are:◦Performance degradation◦Security issues◦Address Management

Page 26: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian JaringanPerformance

◦Large numbers of hosts connected to a single network can produce volumes of data traffic that may stretch, if not overwhelm, network resources such as bandwidth and routing capability.

◦Dividing large networks so that hosts who need to communicate are grouped together reduces the traffic across the internetworks.

Page 27: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian Jaringan

Page 28: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian Jaringan

Page 29: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian Jaringan

Page 30: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian JaringanAddress Management

◦Dividing large networks so that hosts who need to communicate are grouped together reduces the unnecessary overhead of all hosts needing to know all addresses.

◦For all other destinations, the hosts only need to know the address of an intermediary device, to which they send packets for all other destinations addresses. This intermediary device is called a gateway.

Page 31: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian Jaringan

Page 32: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Pembagian Jaringan

Page 33: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4

Page 34: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4

Page 35: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4

Page 36: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4

Page 37: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4

Page 38: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4Network Prefix

◦The prefix length is the number of bits in the address that gives us the network portion. For example, in 172.16.4.0 /24, the /24 is the prefix length - it tells us that the first 24 bits are the network address.

Page 39: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4

Network Network Address Host Range Broadcast

Address

172.16.4.0 /24

172.16.4.0

172.16.4.1 – 172.16.4.254

172.16.4.255

172.16.4.0 /25

172.16.4.0

172.16.4.1 – 172.16.4.126

172.16.4.127

172.16.4.0 /26

172.16.4.0

172.16.4.1 – 172.16.4.52

172.16.4.53

172.16.4.0 /27

172.16.4.0

172.16.4.1 – 172.16.4.30

172.16.4.31

Page 40: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4Broadcast transmission is used for the

location of special services/devices for which the address is not known or when a host needs to provide information to all the hosts on the network.

Some examples for using broadcast transmission are:◦ Mapping upper layer addresses to lower layer

addresses◦ Requesting an address◦ Exchanging routing information by routing

protocols

Page 41: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4Directed Broadcast

◦A directed broadcast is sent to all hosts on a specific network.

Limited Broadcast◦The limited broadcast is used for

communication that is limited to the hosts on the local network.

Page 42: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4

Page 43: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4

Page 44: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4Multicast Transmission

◦ Multicast transmission is designed to conserve the bandwidth of the IPv4 network. It reduces traffic by allowing a host to send a single packet to a selected set of hosts.

Some examples of multicast transmission are:◦ Video and audio distribution◦ Routing information exchange by routing

protocols◦ Distribution of software◦ News feeds

Page 45: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4

Page 46: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4

Page 47: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4The private address blocks are:

◦10.0.0.0 to 10.255.255.255 (10.0.0.0 /8)

◦172.16.0.0 to 172.31.255.255 (172.16.0.0 /16)

◦192.168.0.0 to 192.168.255.255 (192.168.0.0 /24)

The other address are public address

Page 48: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4Network and Broadcast Addresses

◦ As explained earlier, within each network the first and last addresses cannot be assigned to hosts. These are the network address and the broadcast address, respectively.

Default Route◦ Also presented earlier, we represent the IPv4 default

route as 0.0.0.0. The default route is used as a "catch all" route when a more specific route is not available.

Loopback◦ One such reserved address is the IPv4 loopback

address 127.0.0.1. The loopback is a special address that hosts use to direct traffic to themselves.

Page 49: Jaringan Komputer Dasar Network Layer dan IP (1) Aurelio Rahmadian.

Alamat IPv4