Professional Documents
Culture Documents
CH2
➢ Basically, a protocol is an agreement between the communicating parties on
how communication is to proceed, use the same language. Used for
communications between entities in a system.
➢ عبارة عن مجموعة من قواعد االتصاالت واليت تتحمك يف معلية اتصال احلواسيب مع بعضها البعض ويتخاطبو
التسلسل, كشف الاطخأ, والالية اليت يمت اتصال الاهجزة مع بعضها البعض مثل الزتامن.بنفس اللغة
.وعناوين الاهجزة املتصةل
A protocol defines: What is communicated, How it is communicated, and
When it is communicated.
. كيف ومىت تواصلوا، مهنم املتصلني وماهية اتصاهلم:➢ الربوتوكول يعرف
2
من وظائف البروتوكوالت Protocolsفي عملية االتصال :
3
✓ Syntax: القواعد
املعأيات ➢Data formats
هتمت بهتيئة كتل ➢Signal levels
التوقيت ✓ Timing:
يتضمن تالؤم الرسعة ➢Speed matching
والتسلسل ➢Sequencing
4
➢ Task of communication broken up into modules
➢ For example file transfer could use three modules:
➢File transfer application
➢Communication service module
➢Network access module
Protocol Architecture:
يه الرتكيب الأبقي للمكوانت العتادية hardwareوالربجمة اليت تدمع تبادل املعأيات بني النظم وتدمع
التأبيقات املوزعة ،وهممة االتصال مقسمة اىل وحدات عىل سبيل املثال ،ميكن أن يس تخدم نقل امللفات ثالث
وحدات:
-تأبيق نقل امللفات
-وحدة خدمة االتصاالت
-وحدة الوصول اىل الش بكة
5
6
➢ At each layer, protocols are used to communicate
يمت اس تخدام الربوتوكوالت للتواصل، ➢ يف لك طبقة
➢ Control information is added to user data at each layer
➢ تمت اضافة معلومات التحمك اىل بياانت املس تخدم يف لك طبقة
➢ Transport layer may fragment user data
➢ قد تؤدي طبقة النقل اىل جتزئة بياانت املس تخدم
➢ Each fragment has a transport header added: :متت اضافة رأس نقل للك جزء
➢Destination SAP وحدة ولوج خدمة الوهجة
➢Sequence number الرمق التسلسل او التتابع
➢Error detection code ترمزي كشف اخلأ
➢Destination computer address عنوان احلاسوب الوهجة
➢Facilities requests طلبات التسهيالت
➢ This gives a transport protocol data unit 7
Addition of Control Information to data
عنونة املعلومات ◦ Address information
ترمزي كشف اخلأ ◦ Error-detecting code
◦ Protocol control التحمك ابلربوتوكول
❖الأبقة الثالثة والرابعة تعمل عىل اضافة headerوالثانية header & trailerوتسمى الاضافة هبذة الأبقات بعملية
التغليف:Encapsulation
9
10
❖ A network: is a collocation of hardware and software that sends
data form one location to another .
عبارة عن مجموعة من املكوانت املادية والربجمية اليت تقوم ابرسال البياانت من موقع اىل اطخر: Network ❖ الش بكة
➢The hardware: consist of the physical equipment that carries signals from
one point of the network to another.
عبارة عن مجموعة من املعدات الفزيايئية اليت حتمل الاشارات من موقع اىل اطخر: Hardware ❖ املكوانت املادية
➢The software: consist of instruction sets that make possible the service
that we except from a network.
. عبارة عن مجموعة من التعلاميت اليت جتعل اخلدمات ممكنة للش باكت: Software ❖ املكوانت الربجمية
11
12
13
OSI (Open System Interconnection )نظام التشبيك املفتوح
ISO (International Standards Organization) بواسأة منظمة املقاييس ادلولية
هو ليس برتوكول وانما نموذج تم:)Open System Interconnection( نموذج التشبيك المفتوح
.عملة لفهم وتصميم هيكلية الشبكات لتكون مرنة وقوية
16
17
❖ The physical layer is responsible for movements of individual bits from one hop
(node) to the next and work as interface between data transmission device (e.g.
computer) and transmission medium or network, Its responsible for the following:
➢Characteristics of transmission medium (simplex, half-duplex, or full-duplex),
➢Physical topology (Mesh, Star, Ring, Bus),
➢ Line configuration (point-to-point, Multipoints),
➢Data rates, Synchronization of bits.
) مسؤولة عن حركات البتات الفردية من نقطة واحدة (عقدة) إلى التالية وتعمل كواجهةPhysical Layer ( ❖الطبقة الفيزيائية
: وهي مسؤولة عن ما يلي، بين جهاز نقل البيانات (مثل الكمبيوتر) ووسيلة أو شبكة اإلرسال
،) أو االزدواج الكامل، أحادي االتجاه، (البسيط Transmission Medium❖خصائص وسيط اإلرسال
” ثم تقم1s ” ” و0s ” تستقبل البيانات على شكل ، ) حافلة، حلقة، نجمة، (شبكة Physical topology❖الطوبولوجيا الفيزيائية
:بتحويلها طبقا لوسط النقل كالتالي
، ) نقاط متعددة، (من نقطة إلى نقطةLine configuration ❖ اعدادات الخط
. إشارات كهربائية كابالت نحاسية
.إشارات ضوئية to ألياف ضوئية
البتات Synchronization تزامن، Data rates❖معدالت البيانات 18
.إشارات كهرومغناطيسية السلكي
19
❖ The data link layer is responsible for transmitting frames from one node to the next, and its
responsible for the following:
➢Framing : (Divides the stream of bits into manageable data units called frames. )
➢Physical addressing: (For frames distribution to different systems on the network)
➢Flow control: (Balance data rate between sender and receiver to avoid receiver overwhelming.
➢Error control: (Detect and retransmit damaged or lost frames, recognize duplicate frames,
which achieved through a trailer added to the end of the frame.
➢Access control. When two or more devices are connected to the same link, data link layer
protocols are necessary to determine which device has control over the link at any given time.
، ) من نقطة إلى أخرىFrame( ) مسؤولة عن نقل البيانات على شكل اطاراتData Link layer (طبقة ربط البيانات
:ومسؤولة عن ما يلي
.) Frame ➢ تقسيم البيانات إلى وحدات قابلة لإلدارة تسمى اإلطارات
.)على أنظمة مختلفة على الشبكةFrame (يضيف عنوان عند ارسال: Physical addressing➢ العنوان الفيزيائي
)(يوازن معدل ارسال البيانات بين المرسل والمستقبل لتجنب اغراق المستقبل بكمية كبيرة من البيانات:Flow control ➢ التحكم في التدفق
، ( يكتشف وجود االخطاء ويعمل على إعادة إرسال اإلطارات التالفة أو المفقودة: Error control➢ التحكم في األخطاء
.) إلى نهاية اإلطارTrailer بواسطة اضافة الذيل، والتعرف على اإلطارات المكررة
تكون بروتوكوالت طبقة ربط البيانات،عند اتصال جهازين أو أكثر بنفس الرابط: Access control ➢ صالحية التحكم بالدخول
. ضرورية لتحديد الجهاز الذي يتحكم بالرابط في أي وقت معين20
21
22
❖ The Network Layer is responsible for the delivery of individual packets from the
source host to the destination host, Its responsible for the following:
➢Logical addressing (If a packet passes the network bounder).
) ➢Routing (To connect independent networks or links to create intenetworks
طبقة الش بكة ( )Network Layerتعمل عىل نقل املعلومات بني النظم الانهتائية (source-to- ▪
( )destinationاملرسل-ايل-املس تقبل) عرب مجموعة ما من ش باكت االتصال وتعمل عىل حتويل البياانت اىل
رزم Packetواطختيار مسارها.
اضافة مقدمة للمقاطع اليت تصل من الأبقات العىل ويسمى املقأع بعد اضافة املقدمة ابلرزمة .Packet ▪
العنوان املنأقي(: Logical addressingيضيف عنوان عند ارسال Packetعند متريرها بني ش باكت ▪
خمتلفة).
التوجية : Routingتقوم هذه الأبقة مبهمة التوصيل (التوجيه ) Routingعن طريق أهجزة التوجيه أي ▪
ارسال البياانت عىل املسارات الفضل من املرسل اىل املس تقبل .
23
Network Layer: طبقة الش بكه
24
25
❖ The Transport layer is responsible for the delivery of a message from one process to another.
Its responsibilities include the following:
➢ Segmentation and reassembly (A message is divided into segments with sequence number).
➢ Port addressing (the transport layer gets the entire message to the correct process on that computer, named
port addressing).
➢ Connection control (either connectionless by treat each segment as an independent / or connection oriented by making
a connection with the destination first before delivering the packets).
➢ Flow control: ( Performed end to end rather than across a single link as in Data Link layer).
➢ Error control: (Ensure entire message arrives at the receiving transport layer without error (damage, loss, or
duplication) by retransmission.
Transport layer
Segmentation and reassembly ❑
Port addressing ❑
Connection control ❑
Flow control ❑
Error control ❑
26
27
28
❖ Responsible for dialog control and synchronization.
➢ Dialog control: Allow tow systems to enter into a dialog. allows the
communication between two processes duplex or full duplex
➢ Synchronization: by adding checkpoints, or synchronization points to a
stream of data.
. تؤمن ابلية التحمك ابحلوار واالتصال بني التأبيقات املس تخدمةSession layer ❖ طبقة اجللسة
recovery والاس تعادةgrouping تؤمن نظام احلوار ومعلية التجمع:Dialog control ➢ التحمك ابحلوار
full duplex ,half duplex وكذكل اسلوب تبادل البياانت بني الوحدات عرب الش بكة
. ابضافة نقاط تفتيش أو نقاط الزتامن اىل البياانت املتدفقه: Synchronization ➢ الزتامن
29
❖Its responsible for translation ,compression, and encryption.
30
➢ The application layer is responsible for providing services to the user.
➢ Support for different user applications
➢ e.g. e-mail, file transfer, Directory services
31
32
To allow access to network
Application
resources
To translate, encrypt, and
compress data Presentation
37
38
❖ Application Layer:
◦ Communication between processes or applications
. التواصل بني العمليات أو التأبيقاتApplication Layer ◦ طبقة التأبيق
41
❖ Internet Layer (IP) الانرتنت/طبقة الش بكة
➢ It is an unreliable and connectionless protocol-a best-effort delivery service. The term best
effort means that IP provides no error checking or tracking. IP assumes the unreliability of
the underlying layers and does its best to get a transmission through to its destination, but
with no guarantees.
➢ IP transports data in packets called datagrams, each of which is transported separately.
Datagrams can travel along different routes and can arrive out of sequence or be duplicated.
IP does not keep track of the routes and has no facility for reordering datagrams once they
arrive at their destination.
"ب فضل هجد" وتعىن أن بروتوكول االنرتنتconnectionless توفر توصيل غري موثوق وتسمى غري متصلIP ➢ خدمة
عدم موثوقية الأبقات الساس ية وتبذل قصارى هجدها للحصولIP تفرتض. ) اليوفر أي من حتقق أو تتبع الاطخأIP(
. ولكن بدون ضامانت، عىل االرسال اىل وهجهتا
ميكن أن تنتقل. لك مهنا يمت نقهل بشلك منفصل، )Datagram( بنقل البياانت يف حزم تسمى حزم البياانتIP ➢ يقوم
بتتبع املسارات وليس دليه أيIP ال يقوم.عرب طرق خمتلفة وميكن أن تصل خارج التسلسل أو تتكررDatagrams
.تسهيالت العادة ترتيب حزم البياانت مبجرد وصولها اىل وهجهتا
42
)❖ Internet Layer (IP
الربتوكوالت اليت تعمل يف طبقة الانرتنت:
بروتوكول حتليل العناوين )• Address Resolution Protocol (ARP
• معلية اجياد العناوين الفزيايئية لالهجزة عند معرفة عنوان الانرتنت ()IP
بروتوكول حتليل العناوين العكيس )• Reverse Address Resolution Protocol (RARP
• معلية اجياد عناوين الانرتنت ( )IPعند معرفة العنوان الفزياييئ لالهجزة
بروتوكول التحمك برسائل الانرتنت• Internet Control Message Protocol(ICMP) .
• اماكنية تبادل املعلومات حول مش لك او اعأال الش بكة وحفصها
بروتوكول ادارة مجموعة الانرتنت )• Internet Group Message Protocol (IGMP
• يقوم بعملية التبليغ املتعدد بني مجموعة من املس تلمني بني اوساط الش بكة
بروتوكول معلومات التوجية )• Routing information Protocol (RIP
• اماكنية خماطبة الاهجزة عىل الش بكة لغرض توجية رزم البياانت اىل وهجهتا الاخرية
43
املوجه Routerهو معاجل ( processorيوصل ش بكتني مع بعضهام البعض وظيفته الاساس ية يه ترحيل relayاملعأيات من
ش بكة اىل ش بكة اطخرى ويمت التوجية من نظام املصدر source systemاىل نظام الهدف destination system
44
❖ Network Layer:
◦ Logical interface between end system and network
◦ الواهجة املنأقية بني النظام الهنايئ والش بكة ،هتمت بتوجيه املعأيات عرب الش بكة لنظامني انهتائيني موصلني عرب نفس الش بكة.
◦ احلاسوب املرسل يقوم بتحديد عنوان احلاسوب الهدف ويزود الش بكة ليك توجه املعأيات اىل الهدف املناسب.
45
46
Addressing in TCP/IP العنونة في نموذج التحكم باالرسال
Four levels of addresses are used in an internet employing the TCP/IP
protocols:
عنوان مخصص
عنوان المنفذ
عنوان منطقي
عنوان فيزيائي
2.48
Example 2.1
العنوان الفيزيائي
07:01:02:01:2C:4B
2.49
Example 1
العنوان الفيزيائي
2.50
Figure 2.19 Physical addresses
العنوان الفيزيائي
2.51
Example 2
العنوان المنطقي
(IP addresses)
192.168.1.1
2001:0468:0d01:0020:0000:0000:80df:2023
2.52
Example 2
العنوان المنطقي
(IP addresses)
Figure 2.20 shows a part of an internet with two routers
connecting three LANs. Each device (computer or
router) has a pair of addresses (logical and physical) for
each connection. In this case, each computer is
connected to only one link and therefore has only one
pair of addresses. Each router, however, is connected to
three networks (only two are shown in the figure). So
each router has three pairs of addresses, one for each
connection.
2.53
Figure 2.20 Logical addresses (IP addresses)
العنوان المنطقي
(IP addresses)
2.54
Note
2.55
Example 3
عنوان المنفذ
2.56
Example 3
عنوان المنفذ
عنوان المنفذ
2.58
Example 4
العنوان المخصص
▪Specific addresses.
• URL(universal Resource Locator)
www.google.com
info@networking.com
2.59
Application
Application Specific
Presentation addresses
Session
Port
Transport addresses
SCTP TCP UDP
Network logical
(internet) IP addresses
60
FTP: بروتوكول نقل ملف.
HTTP: بروتوكول نقل نص .
ICMP: بروتوكول رساةل حتمك انرتنت .
IGMP: بروتوكول ادارة مجموعة انرتنت .
IP: بروتوكول انرتنت .
MIME: توس يع بريد انرتنت متعدد الغراض.
OSPF: لفتح اقرص مسار أوال .
RSVP: بروتوكول جحز مورد .
SMTP: بروتوكول نقل بريد بس يط .
SNMP: بروتوكول ادارة ش بكة بس يأة .
TCP: بروتوكول حتمك ابلنقل .
UDP: بروتوكول حافظة بياانت املس تخدم.
61
End of Lecture
62