Solved

Programming at different layers

Posted on 2004-03-31
7
289 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
  • 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now