Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
TCP/IP networking is a packet switching network, and uses a layered approach, that separates out layers of functionality. The data link layer uses HARDWARE addresses, which are globally unique to each piece of hardware. The IP layer uses IP addresses, which are not globally unique. The IP layer is where routing occurs. At the MAC layer, only devices directly connected to the net network (wire) can receive packets.
For more overview, see Lecture Notes 1, 2, and 3 at:
ARP is the Address Resolution Protocol. ARP, as you correctly stated, is used to map MAC (Hardware) addresses to IP Addresses. IP Addresses are not directly used as some protocols do not use IP (this is very uncommon these days, but look at NetBEUI from the Win 9X days). Also, most network cards and network switches have no knowledge of IP addresses, only hardware addresses. Additionally, without MAC addresses machines could not function on a network before receiving an IP address in the case of BOOTP or DHCP.
To send packets/data from one computer to another If we have IP address to identify a particular host on particular Network. Then why we need MAC addresses as well?
My understanding from above said discussion is that ...
1. The Frames contains MAC & IP addressed both.
2. As the lower layers device hubs/switches/network cards dont know about Ip address so they send & receive the packets by using MAC addresses only(the IP is nothing for them). (SO WE NEED MAC ADDRESSES IN FRAMES)
3 But the higher layers devices or application (routers, Http/ftp/telnet/DNS) are designed to send/receive packets only on the based of IP addr.(they dont know MAC addresses) (SO WE NEED IP ADDRESSES IN FRAMES)
but as i know router know about both MAC & IP addresses.
Means the router is designed to work with both of them.
So sir please explain.
Is this understanding is right?
Last edited by KinnowGrower; 09-15-2008 at 02:45 PM.
Re: 3. Some higher level applications such as DHCP require MAC addresses, so keep this in mind too.
Take note also that network card device drivers also care about IP addresses. For example, they need to accept subscribed multicast packets and program the interface to accept these packets by examining the IP address upon reception. So, while you can think of the network card hardware itself being a layer 2 device, its driver is both layer 2 and 3 (and sometimes does more, such as allowing for tcp checksum offloading).
A very important point: the divisions between the 7-layer ISO stack are NOT perfect and clear. There are many instances where one layer "violates" another layer's encapsulation by peeking into, or modifying, another higher or lower layer's data. In traditional *nix TCP/IP implentation, there are from 3-5 layers, depending upon who you ask. Again, refer to the lecture notes or other references for more details.
It is also important to note that many of today's switches are *smart* in that they perform some layer 3 functionality, and some routers perform layer 2, and layer 4 or higher functionality. More and more devices are becoming all-in-one appliance-like.