Beruflich Dokumente
Kultur Dokumente
Consider the example of you chatting with your friend, then chatting is that data. Another example is your surfing the web, the URL for example is a data sent, and the page is a data received. Now think about OSI seven layers model in the same way; a way to cover packets for proper delivery and to reach undamaged no more. Now lets dive into the technical details of these layers and how they work. The OSI Reference Model consists of seven layers as shown
APPLICATION LAYER:
This is the layer at which user communicates with the computer, or in other words it includes users programs such as IE (or any other browser), Yahoo, and Skype. But to be honest, application layer just works as an interface between these programs and the protocols of the internet such as HTTP. If you dont know what the protocol is, dont worry as I will cover it later.
Prepared By
PRESENTATION LAYER:
This layer just presents the Application layer and does data formatting. Of course you wonder what is meant by data formatting!! To answer this question, we will consider an example of you chatting with your friend through Yahoo or Skype. Of course computer wont understand what you are writing, as it just knows (0s and 1s). Ya thats the language of the computer.
SESSION LAYER:
You are now doing both, browsing through Mozilla Firefox and chatting through Skype. Both are converted through Presentation layer to 0s and 1s. How they are separated?? How to know that this data is of browsing and this is for chatting?!!
Prepared By
TRANSPORT LAYER:
When you send a message with a little kid to deliver it to someone, you do one of two things. The first you send him and forget about him if the message is not important or the person you are sending him is not so very important.
Transport layer is the layer that determines whether the communication is reliable or unreliable, through selecting the protocol if TCP or UDP (We will cover these protocols later). This layer also establishes the connection between the two communicating hosts and determines what is called window size which is how many packets will the sender send for one Acknowledgement from the receiver.
Prepared By
NETWORK LAYER:
You might have previously heard about IP address and actually this layer is its source. This layers uses IP address (which is a logical address) to move packets from one network to the other, or from one LAN to the other. The router specifically works on this layer as it understands the IP address labeled on the packet and delivers it from source to destination.
PHYSICAL LAYER:
This layer just does two things: send bits and receive bits and this is done in wired cables or wirelessly. Now to get the full picture, lets consider of you chatting with your friend.
Sec : B Roll # 2010-CE-089
Prepared By
The session layer will go on its work and if any other application is used, it will separate it from this data. In transport layer and according to the application you are using, it will determine whether to use TCP or UDP, and then assign the port number used to the data. Assuming using a source port of 2077 and destination is 50 then both of these port numbers will be labeled on the data, hence it will be called segment. Going down to the network layer, both source and destination IP addresses (10.0.0.2 and 172.160.4) will be labeled on the frame, hence it will be called packet (and this the common name).
ANSWER NO 2 :
particular hardware media in use. Different protocols are selected from this layer, depending on the type of physical network. 2. The Internet Layer is responsible for delivering data across a series of different physical networks that interconnect a source and destination machine. Routing protocols are most closely associated
Prepared By
with this layer, as is the IP Protocol, the Internet's fundamental protocol. 3. The Host-to-Host Layer handles connection rendezvous, flow control, retransmission of lost data, and other generic data flow management. The mutually exclusive TCP and UDP protocols are this layer's most important members. 4. The Process Layer contains protocols that implement user-level functions, such as mail delivery, file transfer and remote login. The Internet Protocol (IP) was originally developed by the Department of Defense (DoD), and was a cornerstone for a group of protocols that became known as the TCP/IP protocol suite. The DoD developed their own networking model, which became known as the DoD or TCP/IP Model. It consists of four layers: OSI Model DoD Model 7 Application 6 Presentation 5 Session 4 Application 4 Transport 3 Host-to-Host 3 Network 2 Internet 2 Data-link 1 Physical 1 Network Access The consolidated DoD model is generally regarded as more practical than the OSI model. Upper layer protocols often provide services that span the top three layers. A converged Data-link and Physical layer is also sensible, as many technologies provide specifications for both layers, such as Ethernet. The following chart illustrates where common protocols fit into the DoD model:
ANSWER NO 3 :
ANSWER NO 4 :
Prepared By
The Data Link layer performs a number of separate activities, including: Physical addressing, Network topology, Error notification , Access to the physical medium and flow control The Transport layer ensures the reliable transfer of data. Each Transport protocol provides for the establishment of a transport connection, which carries a stream of two-way communications traffic between two processes on the same or different systems. A transport connection is a temporary logical connection that normally exists until one of the processes terminates the connection.
ANSWER NO 5 :
The primary difference between gateways and routers is that a gateway is the single point of access to computers outside your network. Depending on the complexity of your network, gateways can only be one or a few since they provide the exit and entry points like doors of a house. Routers, on the other hand, determine the shortest possible path your data can travel from Computer A to Computer B, like hallways and staircases.
GATEWAYS
o
If Network A wants to connect to Network B and vice versa, both networks must have gateways that provide exit and entry points for computers from the two networks to communicate. Gateways are important. They define the boundaries of your network.
ROUTERS
o
Routers are programmed with routing tables to determine the shortest possible path between Computer A and Computer B. A routing table contains a list of IP addresses that a router can connect to transfer data. It is sophisticated enough to determine the number of possible "hops" from one computer to another.
ANSWER NO 6 :
Prepared By
ANSWER NO 7 :
data reassembled at the destination In networking, PDU means "protocol data unit", and it is the generic name of the "packets" of data used at different levels of the network. Using the numbering of the OSI layers: At layer 2, the PDUs are called "frame". Example: An Ethernet frame, a frame-relay frame. At layer 3, the PDUs are called "packets". Example: An IP packet. At layer 4, the PDUs are called "segments". Example: A TCP segment, a UDP segment.
Prepared By
This example shows in more detail how OSI PDUs and SDUs are created and encapsulated. A TCP segment (layer 4 PDU) becomes a layer 3 SDU, which is encapsulated into a layer 3 PDU through the addition of an IP header. This becomes the payload of an Ethernet frame, which is a layer 2 PDU containing an Ethernet header, layer 2 SDU (the IP datagram) and Ethernet footer. The receiving device extracts the IP datagram from the Ethernet header and passes it to layer 3; the IP software extracts the TCP segment and passes it up to the TCP software.
Prepared By
ANSWER NO 8 :