Solved

Programming at different layers

Posted on 2004-03-31
7
319 Views
Last Modified: 2013-11-29
Can some one tell a novice like me, what it means when one talks about programming at different layers.
I can comprehend, writing programs which are basically application layer stuff, and using the protocols, like tcp,udp below
But suppose, one talks about the implementation of mobile ip.
I know it is the network layer, but where does one do implemnetations that follow this protocol(is it in the routers)
and how is it done.
Please explain in layman or dummy terms.

0
Comment
Question by:vikasgkutty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
7 Comments
 
LVL 1

Expert Comment

by:stealth188
ID: 10725320
If you don't strictly adhere to the OSI model for the purpose of this answer you could think about it like this.  TCP or UDP are protocols that operate at the network layer.  If you have particular functionality like DHCP or Multicast or Mobile IP that you want to implement you would write a program that manipulates TCP/UDP in such a way to acomplish the goal of your "application"; the "application" being Mobile IP.  This program typically runs in a networking device such as a router or L3 switch.  The distinction to be drawn between Outlook as an application and Mobile IP as an application is that the later manipulates the Network layer whereas Outlook simply uses it to send/receive email.  Heck it might even use your Mobile IP "application" in the course of it's operation.  The thing to remember about the OSI model is that each layer doesn't need to know how the ones below it or above it operate.

Let me know if you need more information.

Dan
0
 

Author Comment

by:vikasgkutty
ID: 10727230
I see what you mean,
So in case of Mobile Ip(which is what I have been thinking about), there is the concept of a mobile node having a foreign agent and a home agent right.Any message received by the home agent for the mobile node, is forwarded to the new care of address of the mobile node.
So according to this, we would probably need an implementation at router/switch level on those home agent , and foriegn agent nodes of the networks rt.so, that they do the necessary translation of destination addresses or whatever.
Is tht right thinking, Dan.
Also, had a doubt, u said TCP/UDP are protocols tht operate at network layer.I thought they operate at Transport layer, and the protocol tht operates at network layer is IP
Or is it because I am not following the OSI ref model
0
 
LVL 1

Accepted Solution

by:
stealth188 earned 30 total points
ID: 10727691
You are right about TCP/UDP.  They do opeate at the transport layer.  My mistype.  I am a Cisco guy so I don't know if this applies to all implementations of Mobile IP, but I found this document that does a much better job explaining the mechanics of Mobile IP than I can so I'll just leave the URL for you.

http://www.cisco.com/en/US/tech/tk827/tk369/technologies_white_paper09186a00800c9906.shtml
0
 
LVL 5

Assisted Solution

by:drelectro
drelectro earned 30 total points
ID: 10740035
Moblie IP does not fit neatly into the model.

From one point of view it's a protocol which tunnels IP (and everything above it) over IP or GRE, layer 3 (Network) gets  doubled-up if you get my drift.

You don't neceserily need to implement this at the switch/router, the MN could establish the IP or GRE tunnel with the HA directly (ie combine MN and FA).

Also theres quite a bit of Mobile IP (actually the harder bit to code) that's done at the Application layer over ICMP and UDP (Discovery and Registration) and that pretty much must be done at the MN.

0

Featured Post

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This program is used to assist in finding and resolving common problems with wireless connections.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question