[ NETWORK ] 7 Layer Of Network - OSI model
7 Layer Of Network - OSI model
The layered concept of networking was developed to accommodate changes in technology. Each layer of a specific network model may be responsible for a different function of the network. Each layer will pass information up and down to the next subsequent layer as data is processed.The OSI Network Model StandardThe OSI network model layers are arranged here from the lower levels starting with the physical (hardware) to the higher levels.
The Internet, TCP/IP, DOD ModelThis model is sometimes called the DOD model since it was designed for the department of defense It is also called the TCP/IP four layer protocol, or the internet protocol. It has the following layers:
|
Data Encapsulation, a Critical concept to be understood
When starting with protocols that work at the upper layers of the network models, each set of data is wrapped inside the next lower layer protocol, similar to wrapping letters inside an envelope. The application creates the data, then the transport layer wraps that data inside its format, then the network layer wraps the data, and finally the link(ethernet) layer encapsulates the data and transmits it.Each network layer either encapsulates the data stream with additional information, or manages data handling or come part of the connection.
Without going into a great deal of technical detail, I will describe a general example of how these layers work in real life. Assuming that the protocol stack being used is TCP/IP and the user is going to use an FTP client program to get or send files from/to a FTP server the following will essentially happen:
- The user will start the FTP client program on the sending computer.
- The user will select the address (If the user selected a name, a description of DNS would need to be described complicating this scenario) and port of the server.
- The user will indicate to the FTP client program that they want to connect to the server.
- The application layer will send information through the presentation layer to the session layer telling it to open a connection to the other computer at a specific address and port. The presentation layer will not do much at this time, and the presentation layer is actually handled by the FTP program.
- The session layer will negociate through to the FTP server for a connection. There are several synchronization signals sent between the client and server computers just to establish the connection. This is a description of the sending of a signal from the client to the server:
- The session layer of the client will send a data packet (SYN) signal to the transport layer.
- The transport layer will add a header (TCP header) to the packet indicating what the source port is and what the destination port is. There are also some other flags and information that will not be discussed here to minimize complexity of this explanation.
- The network layer will add source IP address and destination IP address along with other information in a IP header.
- The datalink layer will determine (using ARP and routing information which is not discussed here for brevity) the hardware address of the computer the data is being sent to. An additional header (ethernet) will be added at this layer which indicates the hardware address to receive the message along with other information.
- The information will be transmitted across the physical wire (hardware layer) until the signal reaches the network card of the server computer. The signal may go through several hubs or repeaters.
- The FTP server will normally only look for ethernet frames that are matching its own hardware address.
- The FTP server will see the ethernet frame matching its address and strip the ethernet header information and send it to the network layer.
- The network layer will examine the IP address information, strip the IP header, and if the IP address matches its own, will send the information to the transport layer.
- The transport layer will look at the TCP port number and based on the port number and services being run, will strip the TCP header and send the information to the appropriate program which is servicing the requested port.
- At this point, the session layer in the FTP program will conduct a series of data exchanges between itself through all the lower layers to the client computer until a session is established.
- At this point information may be sent through several FTP commands between the client and the server. Every transmission passes through the network layers from the application layer down to the hardware layer and back up the layers on the receiving computer.
- When the client decides to terminate the session layer will be informed by the higher layers and will negociate for the closing of the connection.
No comments: