شرح ال OSI Model وال 7 مراحل شرح مبسط بالعربي في 20 دقيقة فقط — Transcript
Full transcript
- 0:01Welcome to a new video in the Network
- 0:02Fundamentals series from IT Doze.
- 0:06One day, the ISO decided to set a
- 0:07unified standard for networks so that if
- 0:09I have two devices connected to each
- 0:11other, and each device is different,
- 0:13they can actually communicate with each
- 0:15other without any problems, and also to
- 0:18have a system that all companies follow
- 0:20.
- 0:21Believing in the principle of "leave the
- 0:24bread to the baker," the ISO delegated
- 0:26the IEEE to set the standards that all
- 0:28companies would follow.
- 0:30The IEEE divided the OSI model into
- 0:32seven layers.
- 0:34Meaning, when a device sends something
- 0:35to another device, it must pass through
- 0:37these seven stages, and the receiver
- 0:38device will pass through the same seven
- 0:40stages but in reverse.
- 0:42They called this the OSI model, which is
- 0:43an abbreviation for Open Systems
- 0:45Interconnection.
- 0:48Keep in mind that the OSI model is
- 0:49considered the backbone of networking,
- 0:51and everything to come will be built
- 0:53upon it, so you must understand it very
- 0:54well.
- 0:56Now we will talk about the seven layers
- 0:58in detail and start with the first one,
- 1:00which is the Application Layer. The
- 1:02Application Layer determines the
- 1:03protocol that the action you are taking
- 1:05requires and provides it.
- 1:08For example, when you open Google, you
- 1:10go to the browser and type, and you find
- 1:12it has written "http" before it; this is
- 1:14the protocol for browsing.
- 1:17When you transfer files, the protocol
- 1:19that works is FTP.
- 1:21This is the protocol for File Transfer
- 1:22Protocol.
- 1:24The same goes for, for example, if you
- 1:25are going to send an email, a protocol
- 1:27called SMTP works.
- 1:29And of course, there are many types of
- 1:30protocols that work in the Application
- 1:32Layer.
- 1:35The second one we have is the
- 1:36Presentation Layer.
- 1:38This is the translator. It takes the
- 1:39data coming from the Application Layer,
- 1:41which is in the form of letters and
- 1:42numbers.
- 1:44And it converts it to machine code,
- 1:46meaning it converts it into zeros and
- 1:48ones. So the device can understand it
- 1:50and process it. This process is called
- 1:52Translation.
- 1:54After that, it starts reducing the
- 1:55number of bits.
- 1:57So it performs something called
- 1:58Compression, meaning it compresses to
- 2:00reduce the size and facilitate the
- 2:02transfer process.
- 2:03Consequently, it makes it happen in less
- 2:05time.
- 2:06This is what we see when we upload a
- 2:08video or photo to Facebook or WhatsApp.
- 2:10We always find its size decreasing
- 2:11because it is undergoing Compression.
- 2:14Another thing it does is perform
- 2:17Encryption on the data before sending it
- 2:19.
- 2:21And when the receiver receives this data
- 2:22, it performs Decryption, meaning it
- 2:24unlocks this code through a protocol
- 2:26called SSL/TLS.
- 2:29So we can say that the Presentation
- 2:30Layer performs three basic operations.
- 2:37After that, we have the Session Layer,
- 2:39and here the features of the session
- 2:40begin to be determined.
- 2:43Whether it is established, maintained,
- 2:43or terminated.
- 2:46And if you want to know more about the
- 2:48Session Layer, there is a video where I
- 2:49explain this topic in detail that you
- 2:51will find in the description, which is
- 2:52responsible for two other very important
- 2:54operations.
- 2:58To understand better, we will take a
- 2:59simple example.
- 3:01When you try to log into any website, it
- 3:03always asks for your credentials,
- 3:05meaning it asks you to log in to verify
- 3:06who you are.
- 3:09And after you log in and actually enter
- 3:11, here comes the Authorization process,
- 3:13which is the process through which the
- 3:14server determines whether you have
- 3:16access to a specific file or not.
- 3:19Meaning, through it, your permissions as
- 3:20a user are determined on the server. The
- 3:22Session Layer also performs a very
- 3:24important thing called Dialog Control.
- 3:28For example, when you go to a site like
- 3:30Facebook while you are offline, you will
- 3:32find all the posts, videos, and photos
- 3:35that were loaded the last time you
- 3:37opened Facebook.
- 3:39This is because it takes the data that
- 3:41appeared to you on the site and stores
- 3:42it temporarily.
- 3:44And when you log into Facebook again, it
- 3:45starts to synchronize this data again,
- 3:47and you can see it even if you are not
- 3:49connected to the internet.
- 3:51So we can say that the Session Layer
- 3:53performs four basic operations.
- 3:55It determines the dialog control,
- 3:55authentication, authorization, and
- 3:55session management.
- 4:01And with this, we have known the first
- 4:02three layers, what their function is,
- 4:04and what they do, and these we can call
- 4:05the Upper Layers.
- 4:09Next, we come to the most important
- 4:11layer, which is responsible for data
- 4:13transmission.
- 4:15This layer performs a very important
- 4:17process known as segmentation, where it
- 4:20takes the data and breaks it down into
- 4:22small pieces to facilitate the transfer
- 4:24.
- 4:26We all see this when we are, for example
- 4:28, downloading a file and a problem
- 4:30occurs, then we resume the download; we
- 4:31find that it doesn't necessarily start
- 4:33from the beginning, but always resumes
- 4:35from the part where the error happened.
- 4:40Every one of these segments gets a
- 4:42sequence number to reach the specific
- 4:44application it's working on, and also to
- 4:46maintain the order of the packets so the
- 4:49data is reassembled later and arrives
- 4:51intact at the destination after
- 4:52reassembly.
- 4:56The second thing it does is flow control
- 4:58, which means it regulates the amount of
- 4:59data being transferred. For example, if
- 5:01I want to send data from a computer to a
- 5:03mobile phone, and the computer can
- 5:05transfer at a high speed...
- 5:08...while the mobile can only receive at
- 5:09a lower speed.
- 5:12So, if we transfer from the computer to
- 5:14the mobile at 50 Mbps, which is higher
- 5:16than the mobile can handle, the mobile
- 5:18will send a signal to the computer to
- 5:20slow down to match its capacity and
- 5:22prevent any data loss.
- 5:25The same applies if it's transferring at
- 5:275 Mbps; the mobile will tell it to
- 5:29increase the speed to stay efficient and
- 5:31maintain the connection, and all of this
- 5:33happens in the transport layer.
- 5:38The last thing the transport layer does
- 5:40is determine the type of protocol used
- 5:43for data transmission based on the
- 5:45user's activity, and we have two types:
- 5:48the first is TCP...
- 5:51...and the second is UDP.
- 5:55Let's explore each one of them together
- 5:56and learn the differences between them.
- 5:58First is TCP.
- 6:02It is very accurate in sending data
- 6:04because it sends the data and ensures
- 6:05everything has arrived.
- 6:08Meaning, it sends a specific segment to
- 6:10the receiver and must wait for the
- 6:11receiver to reply, confirming receipt of
- 6:14the segment and that everything is okay
- 6:15, then it can send the next segment, and
- 6:18so on.
- 6:20UDP is the complete opposite of this; it
- 6:22is known as a connectionless protocol.
- 6:25It is considered not very accurate in
- 6:26sending data, but it is extremely fast.
- 6:28It only needs to know that a device
- 6:30wants data, and it will go full throttle
- 6:31without anyone being able to stop it.
- 6:34In short: TCP is very accurate but slow
- 6:36, while UDP is not very accurate but
- 6:37extremely fast.
- 6:40The appropriate protocol works according
- 6:41to what the user is doing—whether they
- 6:43need more accuracy or more speed.
- 6:45For example, if Samir is talking to his
- 6:47friend Medhat on a live Zoom call.
- 6:49Samir needs the data to arrive at the
- 6:51same time he is speaking, meaning the
- 6:52transfer process must be very fast, but
- 6:54here, accuracy in transmission is not
- 6:56very important if, for example, a
- 6:57sentence in the middle wasn't sent
- 6:59perfectly.
- 7:00In that case, Medhat will ask him to
- 7:02repeat the last sentence because he
- 7:03didn't hear it, and all that will happen
- 7:04is that Samir will repeat the sentence
- 7:06and the problem will be solved.
- 7:08So, in this case, the most suitable
- 7:09protocol is UDP.
- 7:10The same applies if you are watching a
- 7:12movie or playing games.
- 7:14But what if Samir wants to send an email
- 7:16to Medhat containing a very important
- 7:17work report?
- 7:18Then, the speed at which the email
- 7:20arrives doesn't matter because it will
- 7:22arrive eventually, but the most
- 7:23important thing is accuracy, because the
- 7:25report cannot arrive incomplete or with
- 7:27issues, so the most suitable here would
- 7:28be TCP.
- 7:30Do you think Samir chooses the protocol
- 7:31before he sends?
- 7:33No, of course not. All of this is
- 7:34determined at the transport layer.
- 7:37Without Samir even knowing that this is
- 7:39happening.
- 7:41Next, we have this, which does two very
- 7:43important things.
- 7:47Every device on the network has a unique
- 7:49one of its own through which I can
- 7:50communicate with it.
- 7:52For example, when you want to send a
- 7:54letter to someone, you must know their
- 7:55address so the letter reaches them.
- 7:58It receives
- 8:01And adds to them the
- 8:05And forms the packet, which is the data
- 8:07unit of the network layer.
- 8:10So, we can say that the packet contains
- 8:12the data segment plus the source IP and
- 8:14the destination IP.
- 8:16And this is what we call IP addressing.
- 8:19The second thing the network layer does
- 8:20is routing.
- 8:22Routing, in short, is the process of
- 8:24choosing the best possible path for data
- 8:26to travel from source to destination.
- 8:29And what helps me do this is a set of
- 8:31protocols that we will see in detail in
- 8:33CCNA.
- 8:34Like, for example, RIP, which is Routing
- 8:36Information Protocol, or OSPF, which is
- 8:38Open Shortest Path First.
- 8:41After the network layer comes the data
- 8:42link layer.
- 8:44As we agreed, the data packet consists
- 8:46of the data segment coming from the
- 8:48transport layer plus the sender's IP and
- 8:50the receiver's IP. And this is what we
- 8:52call logical addressing. And this, of
- 8:54course, takes place in the network layer
- 8:55.
- 8:56Now, we have another type of addressing
- 8:58, which is physical addressing.
- 9:00This takes place in the data link layer
- 9:02via the MAC address.
- 9:03MAC is an abbreviation for Media Access
- 9:05Control, and we will know everything
- 9:07about it in detail now.
- 9:10So, we can say that the data link layer
- 9:12receives the data packet coming from the
- 9:14network layer and adds to it the
- 9:15sender's MAC address and the receiver's
- 9:17MAC address.
- 9:19To form the frame, which is the data
- 9:21unit in the data link layer.
- 9:24And this process is called frame
- 9:25encapsulation.
- 9:26It happens to the device sending the
- 9:28data.
- 9:29And as we said, everything happens in
- 9:30reverse for the device that will receive
- 9:32it.
- 9:32So, after receiving the frame, it will
- 9:34read the MAC address and then perform
- 9:36frame decapsulation.
- 9:38In order to take the data packet and
- 9:40pass it up to the transport layer, and
- 9:41so on until it reaches the application
- 9:43layer.
- 9:45Let's get a quick hint about the MAC
- 9:47address.
- 9:47The MAC address is a physical number
- 9:49unique to the NIC, or Network Interface
- 9:52Card.
- 9:53It is placed by the company that
- 9:54manufactured this NIC.
- 9:55And it consists of 12 digits in the
- 9:57hexadecimal system. Meaning it consists
- 9:59of letters and numbers. And each digit
- 10:01is four bits. Meaning any MAC address is
- 10:0448 bits.
- 10:05And this is all I need you to know about
- 10:07the MAC address for now. And there will
- 10:09be a video where we explain this topic
- 10:10in detail.
- 10:12Let's return to the data link layer.
- 10:14The data link layer does two other very
- 10:16important things. First, it allows the
- 10:18which is the one before it to be able to
- 10:22And by media here, it's not meant audio
- 10:25, video, images, and such, but it refers
- 10:27to the between any two different devices
- 10:30or networks.
- 10:31Of course, you are confused right now
- 10:33and don't understand anything.
- 10:34Let's take an example together so we can
- 10:36simplify things further.
- 10:37If I have, for example, a and a laptop
- 10:40that want to talk to each other, and
- 10:42each is in a different.
- 10:45So they must use to be able to talk to
- 10:48each other; for example, let's assume in
- 10:51this example the is connected to a via,
- 10:54and the laptop is connected to a
- 10:59And between them is
- 11:03Now the wants to send
- 11:06Depending on the type of link between
- 11:08devices, the data link layer will add
- 11:10its header.
- 11:13The header here will be the header of
- 11:15the frame so that the frame, which in
- 11:17this case is the ethernet frame, is
- 11:19complete.
- 11:23The router will receive the frame and
- 11:25de-encapsulate it to extract the packet
- 11:28, then re-encapsulate it again to have a
- 11:30new header and trailer based on the link
- 11:33type, and then it will send the frame
- 11:35via the next link.
- 11:39R2 will also de-encapsulate the frame
- 11:42and packet to route it, then the next
- 11:44router will receive the frame and
- 11:46de-encapsulate it, then send the packet
- 11:49.
- 11:52It will continue passing through all
- 11:54routers until it reaches the destination
- 11:56.
- 11:58The application will make the sent data
- 12:00appear on the laptop screen.
- 12:04So, from this example, we can conclude
- 12:05that the data link layer can perform
- 12:07encapsulation, meaning it can add a
- 12:09header or trailer depending on the type
- 12:11of media used.
- 12:12It also handles access to the media
- 12:14present in the physical layer.
- 12:22During the transmission process, data
- 12:24can very easily be exposed to external
- 12:26factors that cause errors, such as a
- 12:28magnetic field near the cable through
- 12:30which the data is traveling. The data
- 12:32link layer is responsible for ensuring
- 12:34that the data arrived intact and was not
- 12:36affected by any external factors.
- 12:38If there is any error, it can detect it
- 12:40through special techniques for error
- 12:42detection that we will discuss now.
- 12:44Afterward, it performs error recovery by
- 12:46discarding the frame that has the
- 12:47problem and requesting it again.
- 12:51We have three techniques to detect
- 12:53errors in the frame. The first is parity
- 12:56bit. We agreed that our data is a group
- 12:59of bits.
- 13:00This technique counts the number of ones
- 13:03I have; if the number of ones is even,
- 13:06the parity bit value will be zero, and
- 13:09conversely, if the number of ones is odd
- 13:12, the parity bit value will be one.
- 13:16This technique then begins to compare
- 13:18the parity bit value in the frame's
- 13:20header with the calculated value, and of
- 13:22course, both must be equal for the frame
- 13:24to have arrived intact.
- 13:27What if they are not equal? Then I have
- 13:29an error, so the receiver will discard
- 13:31the frame and request it to be sent
- 13:32again.
- 13:34Of course, this method is useful and
- 13:35very practical if I have a problem with
- 13:36only one bit.
- 13:37However, if, for example, I lost two
- 13:39bits, then the even will remain even and
- 13:41the odd will remain odd, so we wouldn't
- 13:44even know there is an error.
- 13:49The second technique we have is the
- 13:51checksum, where it takes the data and
- 13:52adds its complement to it.
- 13:55Meaning, it inverts the value of the
- 13:56bits, so it makes one a zero and zero a
- 13:58one.
- 13:59Naturally, the result of this addition
- 14:01should result in all ones, then it takes
- 14:03the complement of this result.
- 14:05Meaning, it inverts it back again, so
- 14:07the result should be all zeros. Then it
- 14:09begins to compare; if the result is all
- 14:11zeros, meaning equal to zero, then the
- 14:13frame is valid. Otherwise, there is an
- 14:16error, so the frame will be discarded
- 14:18and it will request that the frame be
- 14:20sent again.
- 14:23The third and final technique with us
- 14:24today in the data link layer is CRC,
- 14:26which stands for Cyclic Redundancy Check
- 14:27.
- 14:29It is almost the same idea with slight
- 14:31differences in detail.
- 14:32This technique executes a specific
- 14:34mathematical equation on the data in the
- 14:36payload of the frame and puts the value
- 14:38of this equation in the trailer of the
- 14:40frame.
- 14:41When the data reaches the destination
- 14:43device, it executes the same equation.
- 14:46And of course, we can detect if there is
- 14:47an error or not by comparing the value
- 14:49of the equation in the trailer with the
- 14:51calculated value; they must obviously
- 14:53result in the same value.
- 14:56The last thing we will say about the
- 14:58data link layer is that it uses a
- 14:59protocol called CSMA/CD, which is an
- 15:00abbreviation for Carrier Sense Multiple
- 15:01Access with Collision Detection.
- 15:05If I have, for example, three devices
- 15:07connected to the same medium, meaning
- 15:09they have the same collision domain, if
- 15:11the devices send data together at the
- 15:13same time, then there will surely be a
- 15:15collision between this data.
- 15:18So, it solves this problem by using the
- 15:21protocol we mentioned, which is [CSMA/
- 15:23CD]. This protocol, in short, when a
- 15:26device wants to send any data, it starts
- 15:29by looking at the medium or the wire to
- 15:31see if there are other signals being
- 15:34sent on the same medium or not.
- 15:37Meaning we can say it monitors the
- 15:39signal in the network cable, and as soon
- 15:42as it finds it empty with no data being
- 15:44sent, it starts sending its own data.
- 15:49Now let's come to the last layer we have
- 15:50, which is the Physical Layer.
- 15:52We agreed that data is broken down into
- 15:55parts in the Transport Layer, called
- 15:57segments.
- 15:58Then, in the Network Layer, we add the
- 16:00logical address and it becomes a packet
- 16:02.
- 16:04In the Data Link Layer, we add the
- 16:05physical address, and we get a frame,
- 16:07which is a set of bits and bytes.
- 16:09Of course, as we know, they have two
- 16:12possibilities: either zero or one. So,
- 16:14in the end, we have a set of bits.
- 16:18We can imagine that data is on an
- 16:20assembly line, and at each layer, we add
- 16:22something specific.
- 16:24Until it reaches the Physical Layer in
- 16:25the form of bits.
- 16:28Then the Physical Layer begins to
- 16:30convert these bits into signals so they
- 16:32can be dealt with by the medium, because
- 16:34of course, no medium will be able to
- 16:36understand the bits that the device
- 16:38understands.
- 16:41These signals could be electrical; it
- 16:43can convert the bits into electrical
- 16:44signals in the case of copper cables.
- 16:47Meaning if I have an Ethernet cable, for
- 16:49example, then the bits will be converted
- 16:51into electrical signals.
- 16:53Or they could be light in the case of
- 16:55fiber optic cables, or in the form of
- 16:57waves in the case of a wireless medium.
- 17:02So we can say the Physical Layer
- 17:03converts the data depending on the type
- 17:05of medium used.
- 17:07Then these signals are transmitted
- 17:08through the medium until they reach the
- 17:10Physical Layer of the receiving device
- 17:12and go through the same layers in
- 17:13reverse until they reach the Application
- 17:15Layer.
- 17:19Now we know everything about the OSI
- 17:21model and have talked in detail about
- 17:23its layers.
- 17:24Let's take an example that ties
- 17:26everything together and shows us how the
- 17:27process happens.
- 17:30Suppose Samir wants to send a message on
- 17:32Facebook to his friend Medhat.
- 17:34The first thing Samir will do is open
- 17:36the browser and type in the URL.
- 17:39Samir will find that "http" appeared
- 17:41before it, and this is the protocol
- 17:44responsible for browsing, as we said.
- 17:46And all this will, of course, take place
- 17:47in the Application Layer.
- 17:49Then, in the Presentation Layer, the
- 17:51encryption process will take place.
- 17:54And the process of converting the code
- 17:57and data into a format so the browser
- 17:59can understand and display it will
- 18:01happen.
- 18:03After that, in the Session Layer, the
- 18:04features of the session will be
- 18:06determined, whether it is a request or a
- 18:08response, and of course in this case,
- 18:10the communication is two-way, so it will
- 18:12be full-duplex.
- 18:14After that, in the Transport Layer, it
- 18:16will take the data coming from the layer
- 18:18before it and break it into segments as
- 18:20we agreed.
- 18:21And here, it will also determine which
- 18:23transport protocol it will use, whether
- 18:25TCP or UDP. And of course, in this case
- 18:27, it will use TCP.
- 18:30The Network Layer will take the segment
- 18:31and add its logical address to it.
- 18:35To create the packet, and then the Data
- 18:38Link Layer will take this packet and add
- 18:40its physical address to it.
- 18:44To create the frame. After that, the
- 18:47data in the Physical Layer will be a set
- 18:49of bits that will be converted into
- 18:51signals to travel through the medium
- 18:54until they reach the destination in the
- 18:56destination network.
- 18:59After that, the signals will move from
- 19:01the Physical Layer to the Data Link
- 19:02Layer.
- 19:05It will start to do a check for the
- 19:07frame and begin to look at the MAC
- 19:08address and compare the physical address
- 19:10.
- 19:12With its own address.
- 19:15If it is the same address, then this
- 19:17data belongs to it, so it will process
- 19:18it; if not, of course, it will discard
- 19:20it.
- 19:24So it will process it and pass it to the
- 19:26Network Layer, and it will also start to
- 19:27see the IP address, and so on; it will
- 19:29pass through all the layers until it
- 19:31reaches the Application Layer, and then
- 19:33the message will appear on Medhat's
- 19:35screen via the browser.
- 19:39And of course, the entire process I just
- 19:41described happens in
- 19:43With that, we have reached the end of
- 19:45our video and discussed in detail the
- 19:48Keep in mind that it is perfectly normal
- 19:50not to have understood everything 100%
- 19:52the first time.
- 19:53But to get the most out of it, you will
- 19:56need to watch the video again with your
- 19:58notebook handy and take some notes so
- 20:00the information sticks.
- 20:02If you learned something from this video
- 20:04, please like it, and don't forget to
- 20:05subscribe to the channel so you can stay
- 20:07updated on everything new in the field
- 20:08of
About this transcript
This page contains the full transcript of شرح ال OSI Model وال 7 مراحل شرح مبسط بالعربي في 20 دقيقة فقط by IT Dose, generated from the public captions YouTube serves with the video. The transcript has 3,564 words across 584 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.