5 - Tcp-Ip
5 - Tcp-Ip
Networking Model
1. Application:
Protocol:
HTTP.
SMIP: Send email.
FTP: File Transfer Protocol ()هو لنقل معلومات وبيانات بأحجام كبيرة
POP3: Receive email.
2. Transport:
Protocol:
TCP: Sends encryption data by segment, bit after bit, each correct
transportation , the destination sends acknowledgment to ensuring send.
UDP: sends segment data without encryption(security) , no acknowledgment
from destination, and it faster than TCP.
3. Internet:
Protocol:
IP: Internet Protocol.
Addressing.
Route determinations.
Best effort delivery.
4. Network Access:
Framing
Physical Address.
Bit transmission.
By modulation (send signal-bit) and demodulation (receiving signal-bit).
1
TCP/IP Network
Exercises:
Convert Table:
2
TCP/IP Network
Binary 27 26 25 24 23 22 21 20
= = = = = = = =
Decimal 128 64 32 16 8 4 2 1
168 1 0 1 0 1 0 0 0
223 1 1 0 1 1 1 1 1
199 1 1 0 0 0 1 1 1
237 1 1 1 0 1 1 0 1
( 223) 10 ( 1 1 0 1 1 1 1 1)2
( 199) 10 ( 1 1 0 0 0 1 1 1)2
نجمع الرقم في أعلى1 (كل خانة فيها. Decimal إلىBinary كيفية التحويل من
.) العامود باللون األزرق
3
TCP/IP Network
Binary 27 26 25 24 23 22 21 20
= = = = = = = =
Decimal 128 64 32 16 8 4 2 1
128 + 32 + 8 = 168 1 0 1 0 1 0 0 0
128 + 64 + 16 + 8 + 4 + 2 + 1 = 223 1 1 0 1 1 1 1 1
128 + 64 + 4 + 2 + 1 = 199 1 1 0 0 0 1 1 1
128 + 64 + 32 + 8 + 4 + 1 = 237 1 1 1 0 1 1 0 1
: IP Address
: هي على الشكل التالي -1
. Bits 8 عن •عبارة •جزء •وكل
، أجزاء4 موزعة علىBits 32 يتألف من -2
Decimal في255 و0 هي عبارة عن رقم بينBinary فيBits 8 كل -3
..Host وNetwork موّز ع بين -4
Octet 1 2 3 1 28 2 254
Class D addresses are used for multicast groups. There is no need to allocate
octets or bits to separate network and host addresses.
4
TCP/IP Network
2- Reserved IP Address
IP Description
ومن بعدها يبعث إلى، يستعمله الكمبيوتر عند بداية التشغيل
1 0.0.0.0 Obtain IP Address هذا في حال كانت. غيرهIP ليعطيهDHCP
. في الكمبيوترAutomatically(True)
رسائل4 حيث يبعث، يستعمله الكمبيوتر ليفحص نفسه
2 127.N.N.N . ويحصل على إجابات حولها،للفحص
(Class A)N.0.0.0
3 (Class B) N.N.0.0 Network Address محجوزون دائمًا للـ
(Class C) N.N.N.0
(Class A) N.255.255.255 أي عندما يكون لديك عدد كبير من، Broadcast محجوزون للـ
4 (Class B) N.N.255.255 تستطيع أن ترسل لهم ما تريدIP المستخدمين من خالل هذا
(Class C) N.N.N.255 .في نفس الوقت
Private IP Address:
It uses for Internal network, without connect to internet, such as a company has a lot
of computers connected each to other.
Classes From To
A 10.0.0.0 10.255.255.255
5
TCP/IP Network
B 172.16.0.0 172.31.255.255
C 192.168.0.0 192.168.255.255
Subnet Mask:
Determines the parts of IP Address which for Network, and host.
For network gives 255.
For host gives 0.
61.0.1.0 Valid
127.1.2.3 Not valid, is a reserved address.
128.268.1.2 No valid, between 0 and 255.
191.1.1.0 Valid.
192.0.0.2 Valid.
10.1.0.0 Valid.
16.1.255.255 Valid
Sub Network
لدينا هذا، Sub network كمبيوترات نريد وضعهم في3 لنفترض أّن لدينا
IP .192.168.1.0
6
TCP/IP Network
1 62 Number of host
Sub Network 2
192.168.1.01000000
192.168.1.01111111
192.168.1.64 Sub network Address
192.168.1.127 Broadcast Address
Sub Network 3
192.168.1.10000000
192.168.1.10111111
192.168.1.128 Sub network Address
192.168.1.191 Broadcast Address
Sub Network 4
192.168.1.11000000
192.168.1.11111111
192.168.1.192 Sub network Address
192.168.1.255 Broadcast Address
1. What is the mask of the network 192.168.32.0 to provide 254 stations by sub-network?
a. 255.255.0.0
b. 255.255.255.0
c. 255.255.254.0
d. 255.255.248.0
7
TCP/IP Network
2. How much of networks can be use for a class A address by using the default mask.
a. 254
b. 127
c. 126
d. 128
e. 511
f. 512
4. What is the broadcast address of the network having the address 192.168.32.0
using the default subnet mask?
a. 192.168.0.0
b. 192.168.0.255
c. 192.168.32.0
d. 192.168.32.254
e. 192.168.32.255
5. The network 128.128.32.0 has 1022 hosts. What is the mask of this network?
a. 255.255.250.0
b. 255.255.252.0
c. 255.255.254.0
d. 255.255.255.0
6. In the network shown below in the diagram, where it would be suitable to use
the private address?
8
TCP/IP Network
a. Only region A
b. Only Region B
c. Only Region C
d. Regions A and B
e. Regions B and C
f. Regions A and C
g. Regions A and B and C
7. How many sub-networks can you create while applying the mask 255.255.255.0
to a class B address?
a. 256
b. 255
c. 254
d. 510
e. 512
f. 511
8. What is the network address and the broadcast address for the host with IP
198.101.6.55 and mask 255.255.255.240? (choose two)
a. 198.101.6.0
b. 198.101.6.32
c. 198.101.6.48
d. 198.101.6.57
e. 198.101.6.63
f. 198.101.6.255
1. b) 255.255.255.0
2. c) 126
3. d) The first byte between 128 and 191
4. e) 192.168.32.255
5. b) 255.255.252.0
6. f) A and C.
7. a) 256
8. c) 198.101.6.48 e) 198.101.6.63
Giving the following IP Address 193.16.100.3
9
TCP/IP Network
d) The administration wants divides this network to 6 sub network. What is the
corresponding subnet mask?
255.255.255.00000000
255.255.255.11100000
255.255.255.124
193.16.100.128
193.16.100.159
10
TCP/IP Network
b. 255.255.0.0
d. 176.31.0.0
e. 255.255.255.224
255.255.11111111.11100000
211 = 2048
f. 255.255.255.224
255.255.11111111.11100000
25 2 = 32
0 31
32 63
64 95
96 127
128 159
Sub network Address is 176.31.101.128
h. 25 2 = 32
= 30 hosts
Sub network في كلHosts عندما قمنا بتحديد عدد، كما مّر معنا في التمرين أعاله
الذي نعمل عليه وهوIP للـSub network Address وأردنا أن نعرف ما هو، 32 وهو
على الشكلHosts على أساس عددSub network فبدأنا نقّس م، 167.31.101.153
:التالي
0 31
32 63
64 95
96 127
128 159
11
TCP/IP Network
الموجودة في153 اعتبرنا أّن، كنهاية159 كبداية و128 وعندما وصلنا إلى الرقم
.IP لهذاBroadcast هيSub network Address ، 159 هي128 وأّن، تقع بينهماIP
كما فعلناSub Network في كلHosts بعبارة أخرى حّتى ال نقوم باحتساب عدد
: وهي على ضمن الخطوات التالية، يوجد طريقة ثانية، أعاله
. Binary المعطى لنا إلىIP نحّول
ًا
. أيضBinary ونحّوله إلى، المعطى لناSubnet Mask ، بعد تحويلهIP نضع تحت
تكون1 إذا كان اإلثنين يحويان رقم، Subnet Mask منIP نقوم بعملية طرح
: على الشكل التالي، 0 وغير ذلك تكون النتيجة، 1 النتيجة
167.31.101.153 10110000•00011111•01100101•10011001
255.255.255.224 11111111•11111111•11111111•11100000
Sub network Address 10110000•00011111•01100101•10000000 176.31.101.128
Broadcast 10110000•00011111•01100101•10011111 176.31.101.159
Given the following subnet mask 255.255.255.240. Indicate the valid IP Address
12