You are on page 1of 62

The Protocols and Network Models

(OSI and TCP/IP)

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‬‬

‫ادلالالت اللفظية ‪✓ Semantics:‬‬


‫متحمك املعلومات‪➢Control information‬‬
‫تتضمن معلومات حتمك من أجل تنس يق ومعاجلة الاطخأاء‪➢Error handling‬‬

‫التوقيت ‪✓ 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( ‫نموذج التشبيك المفتوح‬
.‫عملة لفهم وتصميم هيكلية الشبكات لتكون مرنة وقوية‬

Seven Layers Model


Application ‫طبقة التأبيق‬ 7 Application
Presentation )‫طبقة التقدمي (المتثيل‬ 6 Presentation
Session ‫طبقة اجللسة‬ 5 Session
Transport ‫طبقة النقل‬
4 Transport
Network ‫طبقة الش بكة‬
Data link ‫طبقة ربط البياانت‬ 3 Network

Physical ‫الأبقة الفزيايئية‬ 2 Data link


1 physical
14
‫الأبقات املتناظرة يف هجازين متقابلني واليت تعد لك مهنا نظرية لالطخرى يف منوذج الش بكة‬
‫القواعد والاساليب اليت تنظم العالقة بني طبقتني متجاورتني يف منوذج الش بكة‬
‫‪15‬‬
Drive A Drive B

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.‬‬

‫❖ طبقة التقدمي‪/‬المتثيل‪ Presentation layer‬مسؤوةل عن (الرتمجة‪،‬ضغظ البياانت‪ ،‬التشفري)‪.‬‬


‫➢ تقوم ابلرتمجة ‪ translation‬بتعريف صيغة املعأيات اليت يمت تبادلها بني التأبيقات وتعرض‬
‫مجموعة من خدمات نقل املعأيات لربامج التأبيقات‪ ,‬وتعمل عىل تعريف القواعد‪syntax‬‬
‫املس تخدمة بني كياانت التأبيقات‪.‬‬
‫➢ تقوم بضغط البياانت ‪ data compression‬لتقليل جحمها لغرض الارسال‪.‬‬
‫➢ تقوم ابطختيار صيغة التشفري ‪ encryption‬املناس بة اليت ستس تخدم لتشفري البياانت ‪data‬‬
‫اليت سيمت ارسالها‬

‫‪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

. user‫ للمس تخدم‬services‫ مسؤوةل عن تقدمي اخلدمات‬Application Layer ‫طبقة التأبيق‬


.‫➢ تدمع تأبيقات املس تخدم اخملتلفة‬
‫ خدمات ادلليل‬،file transfer‫ نقل امللفات‬، e-mail‫➢ عىل سبيل املثال الربيد االلكرتوين‬
Directory services

31
32
To allow access to network
Application
resources
To translate, encrypt, and
compress data Presentation

To establish, manage, and


Session
To provide reliable process to
terminate sessions.
process message delivery and error Transport
recovery
To move packets from source
Network to destination, to provide
internet working.
To organize bits into frames, to
provide hop-to-hop delivery Data link
To transmit bits over a
physical medium, to provide
mechanical and electrical
specifications.
33
34
▪ Dominant commercial protocol architecture
▪ Specified and extensively used before OSI
▪ Developed by the US Defense Advanced Research Project Agency
(DARPA) for its packet switched network (ARPANET)
▪ Used by the Internet.
▪ No official model but a working one.
‫▪ هممين عىل معامرية الربوتوكول التجاري‬
OSI ‫▪ حمدد ومس تخدم عىل نأاق واسع قبل‬
)DARPA(‫ من واكةل مشاريع البحث املتأور ادلفاعية‬ARPANET ‫▪ مول‬
Internet Architecture Board (IAB) ‫▪ أعمتد مكعيار انرتنت من قبل هيئة بنية الانرتنت‬
.‫▪ ال يوجد منوذج رمسي ولكن منوذج معيل‬
36
➢Application layer
➢Transport layer
➢Network layer (Internet layer)
➢Data Link layer (network access layer)
➢Physical layer

37
38
❖ Application Layer:
◦ Communication between processes or applications
.‫ التواصل بني العمليات أو التأبيقات‬Application Layer ‫◦ طبقة التأبيق‬

❖ Transport layer or End to end transfer of data, hides detail of


underlying network, by using:
‫ واطخفاء تفاصيل الش بكة‬، ‫ تنقل البياانت من الهناية اىل الهناية‬Transport layer ‫❖ طبقة النقل‬
:‫ ابس تخدام‬، ‫الساس ية‬
1) Transmission Control Protocol (TCP) ‫بروتوكول التحمك يف االرسال‬
2) User Datagram Protocol (UDP) ‫بروتوكول بياانت املس تخدم‬
3) Stream Control Transmission Protocol (SCTP) ‫بروتوكول نقل التحمك ابدلفق‬
39
Transport layer:
1) Transmission Control Protocol (TCP) ‫بروتوكول التحمك يف االرسال‬
The TCP protocol provides full transport-layer services to applications. TCP is a reliable
stream transport protocol. The term stream, in this context, means connection-oriented: A
connection must be established between both ends of a transmission before either can
transmit data. At the sending end of each transmission, TCP divides a stream of data into
smaller units called segments. Each segment includes a sequence number for reordering after
receipt, together with an acknowledgment number for the segments received. Segments are
carried across the internet inside of IP datagrams. At the receiving end, TCP collects each
datagram as it comes in and reorders the transmission based on sequence numbers.
‫ مهيأ‬،‫موثوق يعني‬stream ‫ وهوبروتوكول نقل‬.‫خدمات طبقة النقل الكاملة للتطبيقات‬TCP ‫يوفر بروتوكول‬ ▪
‫) يجب إنشاء اتصال بين طرفي اإلرسال قبل أن يتمكن أي منهما من إرسال‬connection-oriented( ‫لالرتباط‬
..‫البيانات‬
‫ يتضمن كل‬Segment ‫ تدفق البيانات إلى وحدات أصغر تسمى مقطع‬TCP‫في نهاية اإلرسال يقسم بروتوكول‬ ▪
.‫ باإلضافة إلى رقم إقرار استالم القطع المستلمة‬، ‫جزء رقم تسلسل إلعادة الترتيب بعد االستالم‬
.IP‫يتم نقل القطع عبر اإلنترنت داخل بيانات‬ ▪
.‫بتجميع كل البيانات ويعيد تنظيم اإلرسال استنادًا إلى أرقام التسلسل‬TCP ‫في الطرف المستقبل يقوم‬ ▪
40
Transport layer:
2) User Datagram Protocol (UDP) ‫بروتوكول بياانت املس تخدم‬
The UDP protocol is the simpler of the two standard TCPIIP transport protocols. It is a
process-to-process protocol that adds only port addresses, checksum error control, and length
information to the data from the upper layer
‫هو بروتوكول معلية اىل معلية يضيف فقط عناوين‬TCP/IP ‫◦ هو أبسط من بروتوكوالت النقل القياس ية‬
‫املنفذ والتحمك يف الطخأاء ومعلومات الأول اىل البياانت من الأبقة العليا‬

3) Stream Control Transmission Protocol (SCTP) ‫بروتوكول نقل التحمك ابدلفق‬


The SCTP protocol provides support for newer applications such as voice over the Internet. It
is a transport layer protocol that combines the best features of UDP and TCP.
‫ انه بروتوكول طبقة النقل‬.‫) ادلمع للتأبيقات الحدث مثل الصوت عرب االنرتنت‬SCTP( ‫◦ يوفر بروتوكول‬
TCP ‫و‬UDP ‫اذلي جيمع بني أفضل مزيات‬

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‬‬
‫◦ الواهجة املنأقية بني النظام الهنايئ والش بكة‪ ،‬هتمت بتوجيه املعأيات عرب الش بكة لنظامني انهتائيني موصلني عرب نفس الش بكة‪.‬‬
‫◦ احلاسوب املرسل يقوم بتحديد عنوان احلاسوب الهدف ويزود الش بكة ليك توجه املعأيات اىل الهدف املناسب‪.‬‬

‫❖‬ ‫)‪Physical Layer:( Host – to –Network‬‬


‫‪◦ Transmission medium‬‬
‫‪◦ Signal rate and encoding‬‬
‫◦ تغأي الربط الفزياييئ بني هجاز نقل املعأيات ووسط النقل أو الش بكة‪ ,‬حتدد مواصفات وسط النقل ‪Transmission‬‬
‫‪ ,medium‬معدل ‪ rate‬االشارة والرتمزي‪. encoding‬‬

‫‪45‬‬
46
Addressing in TCP/IP ‫العنونة في نموذج التحكم باالرسال‬
Four levels of addresses are used in an internet employing the TCP/IP
protocols:

TCP/IP ‫يوجد اربع مستويات للعنونة المستخدمة في نموذج‬


physical Addresses, ‫ عنوان فيزيائي‬-
logical Addresses ‫ عنوان منطقي‬-
port Addresses ‫ عنوان المنفذ‬-
specific Addresses .‫ عنوان مخصص‬-
2.47
‫‪Relationship of layers and addresses in TCP/IP‬‬

‫عنوان مخصص‬

‫عنوان المنفذ‬

‫عنوان منطقي‬

‫عنوان فيزيائي‬

‫‪2.48‬‬
Example 2.1
‫العنوان الفيزيائي‬

Most local-area networks use a 48-bit (6-byte) physical


address written as 12 hexadecimal digits; every byte (2
hexadecimal digits) is separated by a colon, as shown
below:

07:01:02:01:2C:4B

A 6-byte (12 hexadecimal digits) physical address.

2.49
Example 1
‫العنوان الفيزيائي‬

In Figure 2.19 a node with physical address 10 sends a


frame to a node with physical address 87.

The two nodes are connected by a link (bus topology


LAN). As the figure shows, the computer with physical
address 10 is the sender, and the computer with physical
address 87 is the receiver.

2.50
Figure 2.19 Physical addresses

‫العنوان الفيزيائي‬

2.51
Example 2
‫العنوان المنطقي‬
(IP addresses)

IPv4 address is a 32 bit number written as 4 integers separated by


dots, each of those integers ranging from 0 to 255.

192.168.1.1

IPv6 addresses are written as eight groups of four hexadecimal


digits each group of four digits separated by colons.

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

The physical addresses will change from hop to hop,


but the logical addresses usually remain the same.

‫نقطة‬-‫الى‬-‫ يتغير من نقطة‬Physical addresses‫العنوان الفيزيائي‬


‫ يضل ثابت واليتغير‬Logical addresses ‫العنوان المنطقي‬

2.55
Example 3
‫عنوان المنفذ‬

A port address is a 16-bit address represented by one


decimal number as shown.
753

A 16-bit port address represented


as one single number.

2.56
Example 3
‫عنوان المنفذ‬

Figure 2.21 shows two computers communicating via the


Internet. The sending computer is running three
processes at this time with port addresses a, b, and c. The
receiving computer is running two processes at this time
with port addresses j and k. Process a in the sending
computer needs to communicate with process j in the
receiving computer. Note that although physical
addresses change from hop to hop, logical and port
addresses remain the same from the source to
destination.
2.57
Figure 2.21 Port addresses

‫عنوان المنفذ‬

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

Data link underlying physical networks


(Host –to-network) Physical
addresses
physical

60
‫‪FTP:‬‬ ‫بروتوكول نقل ملف‪.‬‬
‫‪HTTP:‬‬ ‫بروتوكول نقل نص ‪.‬‬
‫‪ICMP:‬‬ ‫بروتوكول رساةل حتمك انرتنت ‪.‬‬
‫‪IGMP:‬‬ ‫بروتوكول ادارة مجموعة انرتنت ‪.‬‬
‫‪IP:‬‬ ‫بروتوكول انرتنت ‪.‬‬
‫‪MIME:‬‬ ‫توس يع بريد انرتنت متعدد الغراض‪.‬‬
‫‪OSPF:‬‬ ‫لفتح اقرص مسار أوال ‪.‬‬
‫‪RSVP:‬‬ ‫بروتوكول جحز مورد ‪.‬‬
‫‪SMTP:‬‬ ‫بروتوكول نقل بريد بس يط ‪.‬‬
‫‪SNMP:‬‬ ‫بروتوكول ادارة ش بكة بس يأة ‪.‬‬
‫‪TCP:‬‬ ‫بروتوكول حتمك ابلنقل ‪.‬‬
‫‪UDP:‬‬ ‫بروتوكول حافظة بياانت املس تخدم‪.‬‬

‫‪61‬‬
End of Lecture

62

You might also like