


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Internet layers. The layers in the TCP/IP protocol suite is made of five layers: physical, data link, network, transport, and application.
Typology: Study notes
1 / 26
This page cannot be seen from the preview
Don't miss anything!
Dr. Gihan NAGUIB 1
Chapter 2 Behrouz A. Forouzan “Data communication and Networking” Fourth edition Dr. Gihan NAGUIB 2
WeWe useuse thethe concept concept ofof layers layers inin ourour daily daily lifelife.. AsAs anan example, example, letlet usus consider consider twotwo friends friends who who communicate communicate through through postal postal mail mail.. The The process process ofof sending sending aa letter letter toto aa friend friend would would bebe complex complex ifif there there were were nono services services available available from from thethe post post office office.. Process of sending a letter Process of sending a letter Sender, Receiver, and Carrier Hierarchy: Tasks must be done in order given in hierarchy Services : each layer at the sending site uses the services of the layer below it.
Dr. Gihan NAGUIB 3 Sending a letter Dr. Gihan NAGUIB 4 Internet layers The The layers layers inin thethe TCP/IP TCP/IP protocol protocol suite suite isis made made ofof fivefive layers layers:: physical physical,, data data link link,, network network,, transport transport,, and and application application.. Layer: A grouping of related tasks involving the transfer of information .Each layer addresses an essential networking tasks
Dr. Gihan NAGUIB 7
Network support layer : Deal with the physical aspects of moving data from one device to another such as :electrical specifications , physical connections, physical addressing, transport timing and reliability. Includes Layers 1 , 2 and 3 User support layer: Application layer Layer 4 (transport layer) links the two subgroups to insure that what the lower layers have transmitted is in form the upper layer can use Dr. Gihan NAGUIB 8 An exchange using the Internet model
Dr. Gihan NAGUIB 9 At sender: at each layer, a header can added to the data unit. At layer 2 a trailer is added as well. When formatted data unit passes through physical layer it is changed into an electromagnetic signal and transported along physical link. Encapsulation: A packet (header and data ) at level 5 is encapsulated in a packet in level 4 , and so on. The data portion of packet at level N- 1 carries the whole packet (data and header/trailer) from level N. At destination: A data then move back up through the layer a headers and trailers attached to data at the corresponding layer are removed (decapsulated) and action appropriate to that layer are taken. (unwrapped/decapsulated) At layer 5 the message is again in form appropriate to the application and is made available to user. Dr. Gihan NAGUIB 10
The physical layer is responsible for movements of individual bits from one hop (node) to the next.
Dr. Gihan NAGUIB 13
Dr. Gihan NAGUIB 15 Duties of data link layer Error control: Add mechanisms to detect and retransmit damaged or lost frames. Prevent also duplication of frames. Error control is normally achieved through a trailer added to the end of frame. Access control: When two or more devices than one devices are connected to the same link, data link layer protocols are necessary to determine which device has control over the link at given time. Dr. Gihan NAGUIB 16 Hop-to-hop delivery
Dr. Gihan NAGUIB 19 Example 1 :Physical addresses Dr. Gihan NAGUIB 20
Dr. Gihan NAGUIB 21 Duties of network layer ( internetwork layer) Logical addressing In contrast to physical addressing implemented by data link layer handling the addressing problem locally. Net work layer adds unique identifier ( IP or logical address) to the packet. These unique identifier( as tel. no, each tel. has unique number ) enable special devices called router to make sure the packet get to correct system. Routing: provide the routing mechanism for the router which route the packet to their final destination. Routers : devices used when independent networks are connected to create an internetworking ( network of networks) Dr. Gihan NAGUIB 22 Source-to-destination delivery
Dr. Gihan NAGUIB (^) 25 Example 2 : IP addresses (logical address) Dr. Gihan NAGUIB (^) 26 Transport layer ( process-to-process delivery) The transport layer is responsible for the delivery of a message from one process to another. From application layer To application layer
Dr. Gihan NAGUIB 27 Duties of transport layer
the world
one of the processes on this particular host. Note:Note:
Dr. Gihan NAGUIB 31 5 .Connection control The transport layer can be either connection less or connection oriented
Dr. Gihan NAGUIB 33 Reliable process-to-process delivery of a message The network layer gets each packet to the correct computer; the transport layer gets the message to the correct processes on that computer Dr. Gihan NAGUIB (^) 34 The following figure 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. Example
Dr. Gihan NAGUIB 37 Relationship of layers and addresses in TCP/IP Dr. Gihan NAGUIB (^) 38
The application layer enables the user to access the network
Dr. Gihan NAGUIB 39 The application layer is responsible for providing services to the user such as Mail services File transfer and access Remote log-in Accessing the web (WWW)