Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Networking
Fundamentals
Chapter 2.0 : The Open Systems Interconnection
(OSI) Model And Network Protocols
AWAL
PULANG
SUPAYA
TEKSI
NAIK
DOLLAH
PAK
CABLE
HOST A
HOST B
menyenggarakan
dan menamatkan
Protocols:
TCP (Transmission Control Protocol)
UDP (User Datagram Protocol)
IP (Internet Protocol)
IPX (Internet Protocol Exchange)
Host B
Datuk
Din
Demam
Sangat
Panas
Farid
Bantu
1. The Application, Presentation and Session layer take user
input and
converts it into data.
2. The Transport layer adds a segment header converting the
data into segments.
3. The Network layer adds a network header and converts the
segments into packets.
4. The Data Link layer adds a frame header and frame trails
converting the packets into frames.
5. The MAC sublayer layer converts the frames into a bits
which the Physical layer can put on the wire.
This whole process of moving data from host A to host B is known as DATA ENCAPSULATION
the data is being wrapped in the appropriate
protocol header so it can be properly received.
DATA ENCAPSULATION
Lets say we compose an email that we wish to send
from host A to host B.
The application we are using is EUDORA. We write the
letter
end then hit send.
Now, the computer translates the numbers into ASCII
and then
into binary (1s and 0s).
If the email is a long one, then it is broken up and
mailed in
pieces. This all happens by the time the data reaches
the
Transport layer - SEGMENT.
JULIANA
JULIANA
APPLICATION
layer 7
PRESENTATION
layer 6
SESSION
layer 5
TRANSPORT
layer 4
NETWORK
layer 3
DATA LINK
layer 2
PHYSICAL
layer 1
Data Packets
JULIANA
AINUL
The
The
Internet
Internet
Frame
A frame is a data packet on the Layer 2 of
the OSI model.
A frame is "the unit of transmission in a
link layer protocol, and consists of a linklayer header followed by a packet.
Examples are Ethernet frames (maximum
1500 byte plus overhead), PPP frames and
V.42 modem frames
SUMMARY
OSI MODEL
LAYER
PROTOCOLS
DEVICE
APPLICATION LAYER
Interaction at the user or
application level:
E-mail, file transfer,
client/server
FTP, SMTP,
HTTP
Gateway
PRESENTATION LAYER
Translation of data:
Encoding, compression,
conversion. ASCII to
EBCID, BCD to binary.
JPEG, GIFF,
MPEG
Gateway
SESSION LAYER
Starts, stops session.
Maintain order.
Apple Talk,
NetBIOS
TRANSPORT LAYER
Ensure delivery of entire
file or message
TCP, UDP
Gateway
Gateway,
Router
SUMMARY
OSI MODEL
LAYER
PROTOCOLS
DEVICE
NETWORK LAYER
Routes data to different
LANs and WANs based on
network address.
IP/ IPX
Router, ATM
Switch
CSMA/CD, Token
Ring, ARP
Switch , Bridge,
NIC
PHYSICAL LAYER
Electrical signal and
cabling.
Cable,
Repeater, Hub,
Amplifier
2.2.1
Objective
- Determine the MAC address of a Windows
XP computer on an Ethernet network using
the ipconfig / all command.
- Access to the Run command.
2.2.2
2.2.2
ETHERNET FRAME
Ethernet frames consist of 4 portions:
preamble, header, payload, and trailer.
PREAMB
LE
(7 bytes)
Start Frame
Delimiter
(1 byte)
Destination
Address
(6 bytes)
Source
Address
(6 bytes)
Length
(2 bytes)
DATA &
PADDING
FCS
(4 bytes)
FRAME HEADER
(15 bytes)
preambl
e
header
payload
trailer
PREAMB
LE
Start Frame
Delimiter
(1 byte)
(7 bytes)
Destination
Address
(6 bytes)
Source
Address
(6 bytes)
Length
(2 bytes)
DATA &
PADDING
FCS
(4 bytes)
FRAME HEADER
(15 bytes)
preambl
e
header
payload
trailer
Header
Start Frame Delimiter8-bit sequence
(10101011).
Destination AddressDestination MAC address.
Source AddressSource MAC address.
LengthIndicates the length of data field
(number of LLC data bytes). (menunjukkan panjang bagi segmen data)
Ethernet FrameCont
Payload
DataPayload contained in a field
between 46 bytes to just over 1500
bytes in length. (ruang mengandungi muatan data antara
46 bait hingga 1500 bait)
Ethernet FrameCont
Trailer
Frame Check Sequence (FCS)the extra
checksum characters added to a frame in a
communication protocol for error detection and
correction. Detects transmission errors and
provides quality of service at receiving
end(receiver). (karakter checksum tambahan yang ditambah ke sebuah frame
dalam komunikasi untuk mengesan kesalahan dan pembetulan. Mengesan kesalahan
penghantaran dan menyediakan kualiti perkhidmatan pada menerima akhir(receiver))
2.2.3
2.2.4
Dotted Decimals
The traditional IP Addresses (IPv4) uses a 32-bit number to
represent an IP address, and it defines both network and host
address.
Due to IPv4 addresses running out, a new version of the IP
protocol (IPv6) has been invented to offer virtually limitless
number of unique addresses.
An IP address is written in "dotted decimal" notation, which is 4
sets of numbers separated by period each set representing 8bit number ranging from (1-255).
An example of IPv4 address is 216.3.128.12, which is the IP
address assigned to topwebhosts.org.
TCP/IP Classes
Class type
Address range
class A
1 to 126
class B
128 to 191
class C
192 to 223
class D
224 to 239.
class E
240 to 255.
Class A
nilai 0 merupakan network number dan tidak boleh digunakan dan 127
merupakan local loop back (digunakan untuk melakukan ujian terhadap diri
sendiri seperti menggunakan arahan ping pada alamat IP sendiri), juga
tidak boleh digunakan. Oleh itu IP kelas A bermula dari 1 sehingga 126)
Class B
mestilah 10 (dari sebelah kanan), merujuk kepada 8 bit pada w. Maka nilai
bit bermula dari 10000000 sehingga 10111111)
Exp: 155.76.76.8
Class C
Exp: 200.56.17.8
Class D
Exp: 230.76.76.8
Class E
mestilah 10 (dari sebelah kanan), merujuk kepada 8 bit pada w. Maka nilai
bit bermula dari 11110000 sehingga 11111111)
Exp: 243.76.76.8
TCP/IP ClassesCont
INTERNET
The Internet is a
system of linked
networks that are
worldwide in scope
and facilitate data
communication
services such as
remote login, file
transfer, electronic
mail, the World Wide
Web and newsgroups.
INTRANET
An intranet is a private network ,
available only within that
organization.
Internet
The Internet is a network of networks that
connects users in every country in the
world that allow the users at any computer
to get information from any other
computer if they have permission. (Internet
adalah rangkaian kepada rangkaian yang menghubungkan pengguna
dalam setiap negara di dunia yang membolehkan pengguna di mana-mana
komputer untuk mendapatkan maklumat dari komputer lain jika mereka
memiliki kebenaran)
59
InternetCont
60
(ISP
adalah perusahaan yang menyediakan Sambungan dan sokongan untuk
mengakses Internet. ia juga dapat memberikan perkhidmatan tambahan
seperti e-mel dan web hosting)
Internet tidak dapat dilakukan tanpa komputer hos, dan juga tanpa melalui
ISP)
61
ISPs
ISP Interconnection allows traffic
originating at a source connected to one
ISPs network to reach a destination
connected to another ISPs network,
around the block or around the world. (ISP
Interconnection membolehkan trafik yang berasal pada sumber yang
disambungkan ke rangkaian pertama ISP menjangkau/disambungkan
kepada rangkaian ISP lain, di blok berhampiran atau di seluruh dunia)
62
ISPs
63
64
65
ISP in Malaysia
Celcom
Maxis
Digi
P1
WiMax
UMobile
66
67
69
70
71
72
73
75
76
77
78
79
80
82
Traceroute
83
Traceroutes allow you to see the path your packets take over
the Internet. Sometimes, they will also allow you to "see" how
your information traveled over the world: Many companies will
name their servers based on where the server is located. From
our example above, our information passed from our computer
to servers in Washington DC then through servers in San Jose
before reaching its destination (yahoo.com).
Traceroutes can show where there is a break in your
connection. This allows you to determine exactly where your
packets are being dropped or lost. Dropped or lost packets on a
traceroute will usually show as asterisks (*).
Note: Just like ping, some servers do not allow you to
traceroute all the way to them - you will get timeouts and
sometimes errors. You should try multiple servers if you are
testing your connection.
84
2.4 Understand
Network Services
Network Service
Network services are the foundation of a
networked computing environment.
Generally network services are installed on
one or more servers to provide
shared resources to client computers.
Network services are configured on
corporate LANs to ensure security and user
friendly operation.
They help the LAN run smoothly and
efficiently.
2.5.1
2.5.2
nslookup
continued.......
nslookup
Sample of nslookup:
continued.......
DNS in LAN
Corporate LANs use network services
such as DNS to give names to IP and
MAC addresses and DHCP to ensure
that everyone on the network has a
valid IP address.
For example, names like nm.lan is
better than numbers like
210.121.67.18,
continued.....
continued.....
Practical Activities
Configure an email client to access
an email server
TCP/IP addressing
a unique number used by machines
(computers) to refer to each other when
sending information via the Internet.
Exp: 207.142.131.236
TCP/IP addressing
Addressing schemes for TCP/IP suite
is:
TCP/IP classes
Binary
Dotted decimal notation
Subnet mask
2.4.1
TCP/IP Classes
Class type
Address range
class A
1 to 126
class B
128 to 191
class C
192 to 223
class D
224 to 239.
class E
240 to 255.
Class A
nilai 0 merupakan network number dan tidak boleh digunakan dan 127
merupakan local loop back (digunakan untuk melakukan ujian terhadap diri
sendiri seperti menggunakan arahan ping pada alamat IP sendiri), juga
tidak boleh digunakan. Oleh itu IP kelas A bermula dari 1 sehingga 126)
Class B
mestilah 10 (dari sebelah kanan), merujuk kepada 8 bit pada w. Maka nilai
bit bermula dari 10000000 sehingga 10111111)
Exp: 155.76.76.8
Class C
Exp: 200.56.17.8
Class D
Exp: 230.76.76.8
Class E
mestilah 10 (dari sebelah kanan), merujuk kepada 8 bit pada w. Maka nilai
bit bermula dari 11110000 sehingga 11111111)
Exp: 243.76.76.8
TCP/IP ClassesCont
TCP/IP addressingCont
Each IP address is divided into two parts,
the Network ID and Host ID. (Setiap alamat IP
terbahagi kepada 2 bahagian, iaitu Network ID dan Host ID)
Binary
A binary code is any system of representing text or
computer processor instructions by the use of the
binary number system's two-binary digits "0" and "1".
This is accomplished by assigning a number to each
particular symbol or instruction.
A binary string of eight digits (bits), for example, can
represent any of 256 possible values and can therefore
correspond to a variety of different symbols, letters or
instructions.
In the 8-bit ASCII code, a lowercase "a" is represented by
the bit string 01100001.
= 1101012 (6 bit)
= 001101012 (8 bit)
Example:
a)
1110012 (6 bit)
(1x25) + (1x24) + (1x23) + (0x22) + (0x21) +
(1x20)
32 + 16 + 8 + 0 + 0 + 1
5710
b)
000110102 (8 bit)
24 + 23 + 21
16 + 8 + 2
2610
EXERCISE
Binary to decimal
00011011.00100001.00101010.000011
11
00000110.00010101.00001110.000010
10
Jawapan:
00001100.00011000.00000001.001110
00 27.33.42.15
6.21.14.10
12.24.1.56
EXERCISE
Decimal to binary
56.78.100.121
127.3.44.8
192.168.67.10
Jawapan:
00111000.01001110.01100100.01111001
01111111.00000011.00101100.00001000
11000000.10101000.01000011.00001010
Subnet Mask
IP class A 255.0.0.0
IP class B 255.255.0.0
IP class C 255.255.255.0
Public
any IP address that is not in any of the private
networking schemes and is routable on the Internet.
Private
There are some specific address in each class of IP
addresses that can not be used because each packet
with this destination address will not be continued on the
Internet.
2.4.3
Form of IP Addressing
Unicast
It normally refers to a single sender or a single receiver,
and can be used for both sending and receiving. (Biasanya merujuk
pada satu penghantar atau penerima tunggal, dan boleh digunakan untuk kedua-dua menghantar dan
menerima)
Form of IP AddressingCont
Broadcast
to send data to all possible destinations ("all-hosts
broadcast"), which permits the sender to send the
data only once, and all receivers receive a copy of it.
(untuk menghantar data ke semua destinasi yang mungkin ("semua-host siaran"), yang membolehkan
penghantar untuk menghantar data hanya sekali, dan semua penerima menerima salinannya)
Form of IP AddressingCont
Multicast
A multicast address is associated with a group of
interested receivers. (Alamat Multicast adalah berkaitan dengan
sekumpulan penerima)
Static
IP address manually assigned to a device.
(Alamat IP
yang kecil)
Dynamic
IP address automatically assigned by server
when host boots. (Alamat IP ditentukan secara automatik oleh server
apabila hos dibootkan)
2.4.4
TCP/IP addressingCont
Static IP address - configuration IP
address does not change when a dial-up
connection to the Internet is done. (konfigurasi
IP address yg tidak bertukar setiap kali sambungan dialup ke internet
dibuat)
Current IP information of a
workstation
Current IP information of a
workstation
DHCP
DHCP (2)
DHCP (3)
Lease time
Determine when client obtains IP
address at log on
User may force lease termination
Lease expiration
Automatic
Command prompt
Using Task manager in window
www.wireshark.org
Capsa Free from Colasoft
Microsoft Network Monitor
Nagios
OpenNMS
Advanced IP Scanner
Fiddler
NetworkMiner
And so on (just google it!)