Osi Layer and Communication Between Two Node in A Network

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Aim: To understand: The general characteristics of a computer network.

. The relevance and importance of standards, in general, and the OSI model, in particular. The role and functions of each of the OSI layers. Flow of message from one layer to other. Different types of protocols. How communication does takes between two nodes (in a LAN) and two different LAN. The wealth of knowledge available on communication networks.

Introduction
A computer network is the infrastructure that allows two or more computers (called hosts) to communicate with each other. The network achieves this by providing a set of rules for communication, called protocols, which should be observed by all participating hosts. The need for a protocol should be obvious: it allows different computers from different vendors and with different operating characteristics to speak the same language.

Figure 1: an abstract network

Figure 2: A simple network

OSI layer
The International Standards Organization (ISO) has developed a reference model for network design called the Open Systems Interconnection (OSI). It proposes a seven-layer architecture for networks.

S no .

Name of Layer

Main Function

Data Units

1 Application

Mutually-agreeable meaning of application data (common semantics). Mutually-agreeable binary representation of Application data (common syntax). Negotiation of the establishment and termination of connections (sessions). Efficient and cost-effective transportation of data across the network. Routing of data packets within the network and Across multiple networks. Provision of a reliable communication line to the network layer. Transmission of raw data bits over Communication lines.

Messages and Packets

2 Presentation

Packets

3 Session

Packets

4 Transport

Datagrams, Segments, and Packets

5 Network

Datagrams and Packets

6 Data Link

Frames and Packets

7 Physical

Bits and Packets

Theory: When a product (say car or bike) is built in a factory, one person doesn't do all the jobs, rather it's put into a production line and as the car moves through, each person will add different parts to it so when it comes to the end of the production line, it's complete and ready to be sent out to the dealer. The same pattern is applied for any data which needs to be sent from one computer to another. The OSI model which was created by the IEEE committee is to ensure that everyone follows these protocols (just like the production line above) and therefore each computer will be able to communicate with every other computer, regardless of whether one computer is a laptopand the other is a PC. Data flows in two ways in the OSI model: 1. DOWN (data encapsulation) 2. UP (data DE capsulation ). The picture below is an example of a simple data transfer between computers and shows how the data is encapsulated and DE capsulated.

Figure 3: OSI layers as software tasks.

DATA ENCAPSULATION
Let computer A in the above picture needs to send some data to another computer B. The Application layer is where the user interface exists, here the user interacts with the application he or she is using, and then this data is passed to the Presentation layer and then to the Session layer. These three layer add some extra information to the original data that came from the user and then passes it to the Transport layer. Here the data is broken into smaller pieces (one piece at a time transmitted) and the TCP header is an added. At this point, the data at the Transport layer is called a segment. segment.=> includes the transport header and the information Each segment is sequenced so the data stream can be put back together on the receiving side exactly as transmitted. Each segment is then handed to the Network layer for network addressing (logical addressing) and routing through the internet network. At the Network layer, we call the data a packet. Packet=> includes the transport header and the upper layer information The Network layer adds its IP header and then sends it off to the Data link layer. Here we call the data a frame. Frame => includes the Network layer header, Transport layer header and upper layer information The Data link layer is responsible for taking packets from the Network layer and placing them on the network medium (cable).The Data link layer encapsulates each packet in a frame which contains the hardware address (MAC) of the source and destination computer (host) and the LLC information which identifies to which protocol in the previous layer (Network layer) the packet should be passed when it arrives to its destination. At the end, the FCS is there field which is the Frame Check Sequence. This is used for error checking and is also added at the end by the Data link layer. If the destination computer is on a remote network, then the frame is sent to the router or gateway to be routed to the destination. To put this frame on the network, it must be put into a digital signal. Since a frame is really a logical group of 1's and 0's, the Physical layer is responsible for encapsulating these digits into a digital signal which is read by devices on the same local network .There are also a few 1's and 0's put at the beginning of the frame, only so the receiving end can synchronize with the digital signal it will be receiving.

DATA DE CAPSULATION
The receiving computer will firstly synchronize with the digital signal by reading the few extra 1's and 0's as mentioned above. Once the synchronization is complete and it receives the whole frame and passes it to Data link layer. The Data link layer will do a Cyclic Redundancy Check (CRC) on the frame. This is a computation which the computer does and if the result it gets matches the value in the FCS field, then it assumes that the frame has been received without any errors. The Data link layer will strip off any information or header which was put on by the remote system's Data link layer and pass the rest to the above layer which is the Network layer. At the Network layer the IP address is checked and if it matches with the machine's own IP address, then the Network layer header, or IP header is stripped off from the packet and the rest is passed to the above layer which is the Transport layer. Here the rest of the data is now called a segment. The segment is processed at the Transport layer, which rebuilds the data stream and acknowledges to the transmitting computer that it received each piece. It is obvious that since we are sending an ACK back to the sender from this layer that we are using TCP and not UDP. After all that, it then happily hands the data stream to the upper-layer Application.

OSI model 7. Application layer NNTP SIP SSI DNS FTP Gopher HTTP NFS NTP SMPP SMTP SNMP Telnet DHCP Netconf RTP SPDY 6. Presentation layer MIME XDR TLS SSL 5. Session layer Named pipe NetBIOS SAP PPTP SOCKS 4. Transport layer TCP UDP SCTP DCCP SPX 3. Network layer IP (IPv4, IPv6) ICMP IPsec IGMP IPX AppleTalk X.25 2. Data link layer ATM SDLC HDLC ARP CSLIP SLIP GFP PLIP IEEE 802.2 LLC L2TP I EEE 802.3 Frame Relay ITU-T G.hn DLL PPP Network switch 1. Physical layer EIA/TIA-232 EIA/TIA-449 ITU-T VSeries I.430 I.431 POTS PDH SONET/SDH PON OTN DSL IEEE 802.3 IE EE 802.11 IEEE 802.15 IEEE 802.16 IEEE 1394 ITUT G.hn PHY USB Bluetooth Hubs

Some basic protocol during communication using 1. ARP

WIRESHARK

2. TCP

Communication between two LAN


Suppose we have three ETHERNET networks (Networks A, B and C). The hosts on each ETHERNET network use a hub to communicate from host to host within the network. The three networks are connected by two routers as follows:

Lets suppose A1 (any computer from NETWORK A) wants to talk to C1 (any computer from NETWORK C). A1 and C1 are on different networks. In reality, A1 can only communicate with hosts on Net a using ETHERNET. To communicate with C1, A1 must use IP because ETHERNET can only talk to local stations. Host C1 isn't on network A, so host A1 will have to send the ETHERNET frame to the local default gateway (ROUTER 1). This ETHERNET frame contains A1 and R1's MAC addresses. Inside the ETHERNET frame is an IP datagram. The IP datagram contains the source IP for A1 and destination IP for C1. R1 isn't connected to network C (where C1 resides), but it is configured to send IP data for any IP address it doesn't know how to reach to router R2 (R2 is R1's default gateway). R1 must talk to R2 if it's going to pass A1's IP data to C1. R1 constructs an ETHERNET frame that contains its own MAC and R2's MAC and inside the ETHERNET frame is an IP datagram. Inside the datagram is the source IP for A1 and destination IP for C1. R2 does know where C1 is because C1 is on network C and so is R2. R2 sends an ETHERNET frame addressed to C1.

10

REFERENCE Book: COMMUNICATION NETWORKS BY ALBERT LEON GARCIA Paper from Global Knowledges by Paul Simoneau Links: http://www.inetdaemon.com/ http://adventure.howstuffworks.com/ http://www.nos.org/htm/course.htm http://www.firewall.cx/ http://computer.howstuffworks.com/ http://www.ehow.com/ http://www.authorstream.com/

11

You might also like