Mobile Computing Course Overview
Mobile Computing Course Overview
SEMESTER 8TH
2. Contact Hours: L: 3 T: 0 P: 0
5. Credits: 3
6. Semester: 8
7. Category of Course: DC
9. Course After completion of the course the students will be able to:
Outcome**: CO1: Exemplify the concepts, techniques, protocols and architecture
employed in wireless local area networks, cellular networks, and
Adhoc Networks based on the standards
CO2: Describe and analyze the network infrastructure requirements to
support mobile devices and users.
CO3: Design and implement mobile applications to realize location-aware
computing
CO4: Asses the important issues and concerns on security and Data
management
CO5: Development of various scenarios for mobile computing system
CO6: Evaluate the concepts of mobile agents and mobile Adhoc algorithms
with the help of open source simulation tools.
10. Details of the Course:
Sl. Contact
Contents
No. Hours
Unit 1: Introduction, issues in mobile computing, overview of wireless
telephony: cellular concept, GSM: air-interface, channel structure,
1 9
location management:HLR-VLR, hierarchical, handoffs, channel
allocation in cellular systems, CDMA, GPRS.
Unit 2: Wireless Networking, Wireless LAN Overview: MAC issues,
IEEE 802.11, Blue Tooth, Wireless multiple access protocols, TCP over
2 wireless, Wireless applications, data broadcasting, Mobile IP, WAP: 9
Architecture, protocol stack, application environment, applications.
Unit 3: Data management issues, data replication for mobile computers,
3 adaptive clustering for mobile wireless networks, File system, 9
Disconnected operations.
12. Mode of Evaluation Test / Quiz / Assignment / Mid Term Exam / End Term Exam
1
MOBILE COMPUTING (TOE 811)
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University, Dehradun
INFRASTRUCTURE AND AD-HOC NETWORKS
2
• The access point does not just control medium access, but also acts as a
bridge to other wireless or wired networks.
• Figure shows three access points with their three wireless networks and a
wired network.
• Several wireless networks may form one logical wireless network, so the
access points together with the fixed network in between can connect
several wireless networks to form a larger network beyond actual radio
coverage.
AD-HOC WIRELESS NETWORKS
5
ADVANTAGES
- Very flexible within the reception area
o Ad-hoc networks without previous planning possible
o (almost) no wiring difficulties (e.g. historic buildings,
firewalls)
o More robust against disasters like, e.g., earthquakes, fire - or users pulling a
plug...
9
DISADVANTAGES
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University, Dehradun
2
DESIGN GOALS FOR WIRELESS LANS
• The IEEE standard 802.11 (IEEE, 1999) specifies the most famous family of WLANs in which
many products are available.
• As the standard’s number indicates, this standard belongs to the group of 802.x LAN
standards, e.g., 802.3 Ethernet or 802.5 Token Ring.
• This means that the standard specifies the physical and medium access layer adapted to the
special requirements of wireless LANs, but offers the same interface as the others to higher
layers to maintain interoperability.
• The primary goal of the standard was the specification of a simple and robust WLAN which
offers time-bounded and asynchronous services.
4
SYSTEM ARCHITECTURE
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University, Dehradun
MAC ISSUES
• In IEEE 802 LAN/MAN standards, the medium access control (MAC, also
called media access control) sublayer is the layer that controls the hardware
responsible for interaction with the wired,optical or wireless transmission medium.
• The MAC sublayer and the logical link control (LLC) sublayer together make up the data
link [Link] the data link layer, the LLC provides flow control and multiplexing for
the logical link (i.e. EtherType, 802.1Q VLAN tag etc), while the MAC provides flow
control and multiplexing for the transmission medium.
There are three important MAC issues are:
1. Half Duplex operation
2. Time varying Channel
3. Burst channel errors
1. Half Duplex operation: In wireless , it s difficult to receive data when the transmitter is
sending the data , because (either send or receive but not both at a given time ) when node
is transmitting a large fraction of signal energy leaks into the receiver path. The transmitted
and receiver power levels can differ by order of magnitude.
2. Time varying Channel
Three mechanisms for radio signal propagation
a. Reflection: Occurs when a propagating wave impinges upon an object that has very large
dimensions than the wavelength of the radio wave. e.g. refletion occurs from the surface of
the earth and from buildings and walls.
b. Diffraction: Occurs when the radio path between the transmitter and the receiver is
obstructed by surface with sharp edges.
c. Scattering:Occurs when the medium through which the wave travels consists of object.
3. Burst Channel errors: s a consequence of time varying channel and varying signals
strength errors are introduced in the transmission for wire line network the bit error rate
(BER) is the probability of packet error is small.
IEEE 802.11 WIRELESS LAN STANDARDS
• IEEE 802.11 is part of the IEEE 802 set of LAN protocols, and specifies the set ofmedia
access control (MAC) and physical layer (PHY) protocols for implementing wireless local
area network (WLAN) Wi-Fi computer communication in various frequencies, including
but not limited to 2.4 GHz,5 GHz,and 60 GHz frequency bands.
IEEE 802.11 ARCHITECTURE
• Since radio waves are used for communications, the signals are noisier with more
interference from nearby systems.
• Greater care is needed for encrypting [Link],they are more prone to errors.
So, they require greater bandwidth than the wiredLANs.
• DOYOURSELF
1
MOBILE COMPUTING (TOE 811)
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University,Dehradun
DATA MANAGEMENT ISSUES
• Data management technology that can support easy data access from and to mobile devices is
among the main concerns in mobile information systems.
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University,Dehradun
DATA REPLICATION FOR MOBILE COMPUTERS
1. Peer-to-Peer Replication
• It permits any replica of a data item to exchange update information with any other
replica.
• Two traveling replica can immediately trade updates when they have connectivity.
• Client/server replication permits a data item replica to transmits its update only to one
or more server replicas.
• They are transmitted from the servers to all the other clients.
• Clients/ server model of replication works very well in an office workstation setting – where
connectivity is generally available and communication pattern are mostly fixed.
• Clients/ server system that support multiple server replica for higher reliability and
performance must use peer-to-peer algorithms within the set of server replicas.
Note->
1. Peer-to-peer models for replication says nothing about the data access model used by the
actual application accessing the data.
2. Clients/ server applications uses replicated data maintained by a peer-to peer replication
system.
[Link]-BASED REPLICATION
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University,Dehradun
ADAPTIVE CLUSTERING FOR MOBILE
WIRELESS NETWORKS
• In this, nodes are organized into nonoverlappingclusters.
Three main advantages
• The first infrastructure of this type was the Packet Radio Network (PRNET), developed in
the 70’s to address the battlefield (in the civilian sector) and disaster (fire,
earthquake)recovery communication requirements.
• PRNET was totally asynchronous and was based on a completely distributed architecture.
• It handled datagram traffic reasonably well,but did not offer efficient multimedia support.
• Recently,under theWAMIS (WirelessAdaptive Mobile Information Systems) [1] and
GlomoARPA programs several mobile,multimedia,multihop (M3) wireless network
architectures have been developed, which require some form of synchronous, time
division infrastructure.
• The synchronous time frame leads to efficient multimedia support implementations.
• However, it introduces more complexity
• and is less robust in the face of mobility and channel fading.
• Another important wireless network feature addressed is multihopping,[Link] ability
of the radios to relay packets from one to another without the use of base stations.
• Figure 1 shows the cellular model commonly used in the wireless networks.A,B,C,and D
are fixed base stations connected by a wired backbone. Nodes 1 through 8 are mobile
nodes.
• Frame time of a cluster depends on how many nodes are in the cluster.
• Figure 15 shows the slots dedicated to node i in the cycle, which correspondto
node i ‘‘bandwidth’’.
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University,Dehradun
CODA FILE SYSTEM
What is Coda?
• It is a advanced network file system .
• Developed as a research project at Carnegie Mellon University since 1987 by system
group of [Link] in the SCS department.
• Coda was designed to be a scalable,secure,and highly available distributed file
system.
• Scalability
• Security
• High availability
• Naming and location transparency
• Failure transparency
ANDREW FILE SYSTEM (AFS)
• Coda is based on the Andrew File System (AFS), which was developed at Carnegie Mellon University
(CMU) in the 1980s.
• AFS was designed to support the entire CMU community, so it needed to handle a very large number of
workstations (5,000-10,000).
• AFS nodes are partitioned into two groups:
[Link] servers
• Centrally administered, relatively small in number.
[Link] workstations
• Many in number
• Give users and processes access to the file system.
OVERALL ORGANIZATION OF AFS
CODA ARCHITECTURE
• VFS layer inside the kernel handles interaction between user processes andVenus
• This provides transparency to client programs, which can use the same mechanisms to access
both local and remote file systems
• Side effects is a mechnism, allow the client and server to communicate via an
application-specific protocol.
• “Side effect” is kind of an odd name for this, don’t youthink?
• Application-specific connection setup at the server and the client is a“side
effect” of an RPC call
• Side effect implementation is completely independent of RPC2 system
• Useful for,e.g.,QoS-guaranteed communication for video streaming
SIDE EFFECTS IN RPC2
RPC2 MULTICASTING
• Unlike NFS, Coda clients can continue to operate even when disconnected (recall
that disconnection means that an AVSG for some volume is empty; i.e. no server is
available)
• Clients simply operate on their local cached copies
• When the client reconnects and its modifications are transferred to a server,an
attempt at automatic conflict resolution is [Link] doesn’t always work, so
sometimes manual intervention is needed.
DISCONNECTED OPERATION
• Obviously this is not a perfect solution,but it may well be better than it sounds because
write-sharing a file is uncommon
• Rare for two processes to open the same file for writing
• Read-sharing is much more common, but this does not result in any conflicts
HOARDING
• The main challenge is to ensure that a client has cached copies of the files it will wantto
operate on after disconnection
• Coda clients use a strategy called hoarding – simply filling the cache in advance,while
the client is still connected
HOARDING
• During the hoarding phase, a client continually works to update its cache
according to three conditions (next slide)
• Upon disconnection, the client enters the emulation phase: all operations
take place locally cached copies
• Upon reconnection, the client enters the reintegration phase: inconsistencies
with cached copies are resolved, and the client moves back to the hoarding
phase (or drops back to emulation if it is again disconnected during the
reintegration process)
HOARDING PRIORITY
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University,Dehradun
MULTIPLE ACCESSTECHNIQUES
• Multiple access schemes are used to allow many mobile users to share simultaneously a
finite amount of radio spectrum.
• In wireless communication systems,it is often desirable to allow the subscriber to send
information simultaneously from the mobile station to the base station while receiving
information from the base station to the mobile station.
• A cellular system divides any given area into cells where a mobile unit in each cell
communicates with a base [Link] main aim in the cellular system design is to be able
to increase the capacity of the channel, i.e., to handle as many calls as possible in a
given bandwidth with a sufficient level of quality of service.
• There are several different ways to allow access to the [Link] includes mainly the following:
I. Frequency division multiple-access (FDMA)
II. Time division multiple-access (TDMA)
III. Code division multiple-access (CDMA)
IV. Space division multiple access (SDMA)
Depending on how the available bandwidth is allocated to the users, these techniques can be classified
as narrowband and wideband systems.
Narrowband Systems
• Systems operating with channels substantially narrower than the coherence bandwidth are called as Narrow
band systems. Narrow band TDMA allows users to use the same channel but allocates a unique time slot to
each user on the channel, thus separating a small number of users in time on a single channel.
Wideband Systems
• In wideband systems, the transmission bandwidth of a single channel is much larger than the coherence
bandwidth of the [Link], multipath fading doesn’t greatly affect the received signal within a wideband
channel, and frequency selective fades occur only in a small fraction of the signal bandwidth.
FREQUENCY DIVISION MULTIPLE ACCESS (FDMA)
• FDMA is the basic technology for advanced mobile phone services. The features of FDMA are
as follows.
• FDMA allots a different sub-band of frequency to each different user to access the network.
• If FDMA is not in use, the channel is left idle instead of allotting to the other users.
• FDMA is implemented in Narrowband systems and it is less complex thanTDMA.
• Tight filtering is done here to reduce adjacent channel interference.
• The base station BS and mobile station MS, transmit and receive simultaneously and
continuously in FDMA.
TIME DIVISION MULTIPLE ACCESS (TDMA)
• In the cases where continuous transmission is not required, there TDMA is used instead of [Link]
features of TDMA include the following.
• TDMA shares a single carrier frequency with several users where each users makes use of non-
overlapping time slots.
• Data transmission in TDMA is not continuous, but occurs in bursts. Hence handsoff process is simpler.
• TDMA uses different time slots for transmission and reception thus duplexers are not required.
• TDMA has an advantage that is possible to allocate different numbers of time slots per frame to different
users.
• Bandwidth can be supplied on demand to different users by concatenating or reassigning time slot based
on priority.
CODE DIVISION MULTIPLE ACCESS (CDMA)
• Code division multiple access technique is an example of multiple access where several transmitters use
a single channel to send information simultaneously. Its features are asfollows.
• In CDMA every user uses the full available spectrum instead of getting allotted by separate frequency.
• CDMA is much recommended for voice and data communications.
• While multiple codes occupy the same channel in CDMA, the users having same code can communicate
with each other.
• CDMA offers more air-space capacity thanTDMA.
• The hands-off between base stations is very well handled by CDMA.
SPACE DIVISION MULTIPLE ACCESS (SDMA)
• Space division multiple access or spatial division multiple access is a technique which is MIMO
(multiple-input multiple-output) architecture and used mostly in wireless and satellite
communication. It has the following features.
• All users can communicate at the same time using the same channel.
• SDMA is completely free from interference.
• A single satellite can communicate with more satellites receivers of the same frequency.
• The directional spot-beam antennas are used and hence the base station in SDMA, can track a
moving user.
• Controls the radiated energy for each user in space.
SPREAD SPECTRUM MULTIPLE ACCESS
• Spread spectrum multiple access (SSMA) uses signals which have a transmission
bandwidth whose magnitude is greater than the minimum required RF bandwidth.
• There are two main types of spread spectrum multiple access techniques −
• Frequency hopped spread spectrum (FHSS)
• Direct sequence spread spectrum (DSSS)
FREQUENCY HOPPED SPREAD SPECTRUM (FHSS)
• This is a digital multiple access system in which the carrier frequencies of the individual
users are varied in a pseudo random fashion within a wideband [Link] digital data is
broken into uniform sized bursts which is then transmitted on different carrier
frequencies.
DIRECT SEQUENCE SPREAD SPECTRUM (DSSS)
• This is the most commonly used technology for CDMA. In DS-SS, the message signal is
multiplied by a Pseudo Random Noise Code. Each user is given his own code word which is
orthogonal to the codes of other users and in order to detect the user, the receiver must
know the code word used by the transmitter.
• The combinational sequences called as hybrid are also used as another type of spread
spectrum. Time hopping is also another type which is rarely mentioned.
Since many users can share the same spread spectrum bandwidth without interfering with one
another, spread spectrum systems become bandwidth efficient in a multiple user
environment.
1
MOBILE COMPUTING (TOE 811)
Unit-IV
Mobile Agent Computing
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University, Dehradun
SOFTWARE AGENT AND MOBILE AGENT
1. Intelligence: Software agents employ techniques from the field of artificial intelligence,
which empower them with a fair degree of intelligence and common sense.
• For example, the travel agent program should realize that people generally do not prefer
travelling by flights that depart or arrive at the airport late in the night and the agent
should avoid booking tickets on such flights.
• The travel agent program should be smart enough to bargain and arrange the trip so that
the overall expenditure for the trip is as low as possible without compromising on the
user’s preferences.
2. Autonomy:
• The agents themselves decide the sequence of actions to be performed to achieve the user’stask.
• This autonomy enables agents to operate without requiring human intervention. Once the specifications are given to the travel agent, it
should be able to proceed on its own to arrange the trip for the user without requiring the user to constantly monitor the agent.
3. Responsiveness:
• Agents perceive their environment (which may be the Internet, a collection of other agents, etc.) and respond in a timely fashion to
changes that occur in it.
• At the same time, agents should not simply act in response to their environment, they should be able to exhibit opportunistic, goal-
oriented behaviour and take the initiative when appropriate.
[Link] Ability :
• Software agents should provide a user- friendly interface so that the user can easily interact with the agent. Agents are social entities and
often communicate and collaborate with one another in order to complete their tasks.
• For example, the travel agent program of one user must be able to communicate with other travel agents to find out about hotels which
customers disliked and avoid such hotels.
5. Adaptability :
• Agents learn about the user’s behavior and adapt themselves to suit the user. Consider a search agent that re- trieves information for the
user from the Internet.
• The search agent should be able to learn about the type of information the user is interested in and adapt itself to deliver only the relevant
information to the user.
• Software agents can be classified as static agents and mobile agents.
• Static agents achieve their goal by executing on a single machine.
• On the other hand, mobile agents migrate from one computer to another in the network
and execute on several machines.
• Mobility increases the functionality of the mobile agent and allows the mobile agent to
perform tasks beyond the scope of static agents.
• For example, a travel agent program may visit several hosts such as an airline reservation
system, a hotel resources host, etc. in order to achieve its function.
• This eliminates the need to have all the relevant databases on one host. This article gives the
architecture of mobile agents and tradeoffs involved in using them.
1
MOBILE COMPUTING (TOE 811)
Unit-IV
Mobile Agent Working and lifecycle
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University, Dehradun
Working of Mobile Agents
• A mobile agent consists of the program code and the program execution state (the current values of
variables, next instruction to be executed, etc.). Initially a mobile agent resides on a com- puter called
the home machine.
• The agent is then dispatched to execute on a remote computer called a mobile agent host (a mobile agent
host is also called mobile agent platform or mobile agent server).
• When a mobile agent is dispatched the entire code of the mobile agent and the execution state of the
mobile agent is transferred to the host.
• The host provides a suitable execution environment for the mobile agent to execute. The mobile agent
uses resources (CPU, memory, etc.) of the host to perform its task.
• After completing its task on the host, the mobile agent migrates to another computer. Since the state
information is also transferred to the host, mobile agents can resume the execution of the code from
where they left off in the previous host instead of having to restart execution from the beginning.
• This continues until the mobile agent returns to its home machine after completing execution on the
last machine in its itinerary.
THE LIFE CYCLE OF A MOBILEAGENT
• The malicious server may tamper with the mobile agent and increase the prices quoted by other airlines thereby giving it an unfair advantage. Some
servers may even try to steal the credit card number from the mobile agent.
• The defense mechanisms suggested try to prevent malicious actions in the first place. These include safe programming languages that prevent mobile
agents from performing malicious actions on the hosts.
• If a malicious action does occur then the defense mechanisms detect it as soon as possible and take remedial action. One of the schemes proposed is to
introduce a tracing mechanism that records the execution of the mobile agent at each host.
• When the agent is dispatched to the next host, the trace is also sent. Using this trace, malicious actions can be detected and the malicious host can be
identified. However, in spite of significant development in the field of cryptography there still exist many security issues that need to be addressed in
mobile agents.
1
MOBILE COMPUTING (TOE 811)
Unit-IV
Applications of Mobile Agents
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University, Dehradun
APPLICATIONS OF MOBILE AGENTS
Although no universally used application (normally called killer application) has been developed
for them, mobile agents are suitable for the following applications
1. Parallel Computing:
• Solving a complex problem on a single computer takes a lot of time. To overcome this,
mobile agents can be written to solve the problem.
• These agents migrate to computers on the network, which have the required resources and
use them to solve the problem in parallel thereby reducing the time required to solve the
problem.
2. Data Collection:
• Consider a case wherein, data from many clients has to be processed. In the traditional client-
server model, all the clients have to send their data to the server for processing resulting in
high network traffic.
• Instead mobile agents can be sent to the individual clients to process data and send back
results to the server, thereby reducing the network load.
E-commerce:
• Mobile agents can travel to different trading sites and help to locate the most appropriate deal, negotiate the
deal and even finalize business transactions on behalf of their owners.
• A mobile agent can be programmed to bid in an online auction on behalf of the user. The user himself need
not be online during the auction.
Mobile Computing:
• Wireless Internet access is likely to stay slow and expensive. Power consumption of wireless devices and high
connection fee deter users from staying online while some complicated query is handled on behalf of the user.
• Users can dispatch a mobile agent, which embodies their queries, and log off, and the results can be picked up
at a later time.
• Distributed computing involving several computers in a network can be achieved using message
passing or remote procedure calls (RPC).
• The recently developed mobile agent technology adds a new dimension to distributed computing.
• Experts suggest that mobile agents will be used in many Internet applications in the years to come.
• However there still exist many technical hurdles that need to be tackled, the most important of
them being security.
• Only when security issues are properly addressed, will the mobile agent technology be widely
accepted
1
MOBILE COMPUTING (TIT 811)
TCP overWireless
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University,Dehradun
TCP OVERWIRELESS
• An adaptive architecture is desirable where each layer of the protocol stack responds to the local
variations as well as to the information from other layers.
• However, since there are many existing application layer protocols that use TCP, any modification of the
transport layer of the fixed hosts is not feasible.
• Changes can be made only on MSs and mobile access points to ensure compatibility with existing
applications. Such changes should be transparent to the application layer software that runs on top of the
transport layer.
TCP OVERWIRELESS……
iii. SplitTCPApproach
TCP OVERWIRELESS
i. End-to-End Solutions (refer Chapter 9 Network Protocols at page no 209-10 for detailed study
of [Link] book Introduction toWireless and mobile system edition 3) :
• End-to-end protocols attempt to make the TCP sender handle losses through the use of two
techniques.
• First, they use some form of selective acknowledgments to allow the sender to recover from multiple
packet losses in a window, without resorting to a coarse timeout.
• Second, they attempt to have the sender distinguish between congestion and other forms of losses
using an explicit loss notification (ELN) mechanism.
TCP OVERWIRELESS
ii. Link Layer Protocols (refer Chapter 9 Network Protocols at page no 210-11 for
detailed study of [Link] book Introduction to Wireless and mobile system
edition 3) :
There are two main classes of techniques employed for reliable link layer protocols:
1. Error correction using techniques such as FEC
2. Retransmission of lost packets in response to ARQ messages
TCP OVERWIRELESS
iii. SplitTCPApproach (refer Chapter 9 Network Protocols at page no 210-11 for detailed study of
[Link] book Introduction toWireless and mobile system edition 3) :
• Split connection protocols split each TCP connection between a sender and receiver
into two separate connections at the BS-one TCP connection between the sender
and the BS, and the other between the BS and the MS.
• Over the wireless hop, a specialized protocol may be used that can tune into the wireless environment.
• Name of the protocols for same work as
--Indirect-TCP (I-TCP)
--M-TCP protocol
1
MOBILE COMPUTING (TOE 811)
Unit-V
Mobile Adhoc Network and Routing Protocols
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University, Dehradun
MOBILE ADHOC NETWORK
• Mobile
• Random and perhaps constantly
changing
• Ad-hoc
• Not engineered
• Networks
• Elastic data applications which use
networks to communicate
• Mobile Ad hoc Networks (MANETs): Autonomous networks consisting ofrouting
nodes that are free to move about.
• May be connected to a larger network
• e.g. the Internet, or operate as an isolated intra-network.
• The nodes can be extremely mobile and a lot depends on the nature of the nodes
and routers
• The mobile devices, the wireless medium and the ad hoc nature of the network
give rise to some problems that are common to a wide variety of wireless
topologies.
CHARACTERISTICS OF MANET
• DynamicTopologies: Network topology which is typically multi-hops,may change randomly and rapidly with time,it can form
unidirectional or bi-directional links.
• Bandwidth constrained,variable capacity links:Wireless links usually have lower reliability,efficiency,stability and capacity as
compared to wired [Link] throughput of wireless communication is even less than a radio’s maximum transmission rate
after dealing with the constraints like multiple access,noise,interference conditions,etc.
• Autonomous Behavior: Each nodes can act as a host and router,which shows its autonomous behavior.
• Energy Constrained Operation:As some or all the nodes rely on batteries or other exhaustible means for their energy.
Mobile nodes are characterized with less memory, power and light weightfeatures.
• Limited Security: Wireless network are more prone to security threats.A centralized firewall is absent due to its distributed
nature of operation for security, routing and hostconfiguration.
• Less Human Intervention:They require minimum human intervention to configure the network,therefore they are
dynamically autonomous in nature.
PROS AND CONS OF MANET
Pros:
• Separation from central network administration.
• Each nodes can play both the roles ie. of router and host showing autonomous nature.
• Self configuring and self healing nodes, does not require human intervention.
Cons:
• Resources are limited due to various constraints like noise, interference conditions,etc.
• Lack of authorization facilities.
• More prone to attacks due to limited physical security.
CLASSIFICATIONS OF AD HOC NETWORKS
MEDIUM ACCESS CONTROL ISSUES
The main functions and the design issues of this layer are
1. Providing services to the network layer
2. Framing
3. Error Control
4. Flow Control
1-SERVICES TOTHE NETWORK LAYER
The primary function of this layer is to provide a well defined service interface to network
layer above [Link] types of services provided can be of three types −
• This layer encapsulates each data packet from the network layer into frames that are
then transmitted.
• A frame has three parts, namely−
• Frame Header
• Payload field that contains the data packet from network layer
• Trailer
3. Error Control
The layer ensures error free link for data [Link] issues it caters to with respect to
error control are −
• Dealing with transmission errors
• Sending acknowledgement frames in reliable connections
• Retransmitting lost frames
• Identifying duplicate frames and deleting them
• Controlling access to shared channels in case of broadcasting
4. Flow Control
• The layer regulates flow control so that a fast sender does not drown a slow [Link]
the sender sends frames at very high speeds, a slow receiver may not be able to handle it.
There will be frame losses even if the transmission is [Link] two common approaches
for flow control are −
• Feedback based flow control
• Rate based flow control
MANET ROUTING PROTOCOLS
• In MobileAd hoc Network (MANET),nodes do not know the topology of their network,
instead they have to discover it by their own as the topology in the ad-hoc network is
dynamic topology.
• The basic rules is that a new node whenever enters into an ad-hoc network, must
announce its arrival and presence and should also listen to similar announcement
broadcasts made by other mobile nodes.
1. Pro-active routing protocols:
These are also known as table-driven routing protocols. Each mobile node maintains a
separate routing table which contains the information of the routes to all the possible
destination mobile nodes.
Unit-V
Routing Protocols Discussions
(Destination Sequenced Distance Vector Routing Protocol)
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University, Dehradun
DESTINATION SEQUENCED DISTANCE
VECTOR ROUTING PROTOCOL (DSDV)
N1
1
N5 3 N2
6
4
N4 N3
2
RT for N3 RT for N4
ROUTING TABLES
RT for N2 Dest Dis. Nxt. Dest Dis. Nxt.
RT for N 1 . .
Dest Dis. Nxt. Dest Dis. Nxt. N1 ∞ -
N1 ∞ -
. .
N2 6 N2 N2 ∞ -
N1 0 N1 N1 1 N1
N3 0 N3 N3 2 N3
N2 1 N2 N2 0 N2
N4 2 N4 N4 0 N4
N3 ∞ - N3 6 N3
N5 ∞ - N5 4 N5
N4 ∞ - N4 ∞ -
N5 ∞ - N5 3 N5
Dest Dis. Nxt.
.
RT for N5 N1 ∞ -
N2 3 N2
N3 ∞ -
N4 4 N4
N5 0 N5
UPDATION OF ROUTING TABLES
• The algorithm was developed in 1990s, so for saving the BW only distance
vector array was shared with neighbors.
• Every nearby node will share its distance vector array to neighbors
• The neighbor will then select the shortest path for the next node
FOR N1
• In the same way N3 will update its routing table and N2 and N4 will share the distance
vector array with N3 but at this time it will only take minimum distance route.
N1
1 NewRT for N3
N5 3 N2 Dest Dis. Nxt.
.
N1 7 N2,N1
6
4 N2 6 N2
N3 0 N3
N4 2 N4
N4 2 N3
N5 6 N5
FOR N4
NewRT for N4
Dest Dis. Nxt.
N1 .
1
N5 3 N2 N1 8 N5,N2,N
1
6 N2 7 N5,N2
4
N3 2 N3
N4 0 N4
N4 N3 N5 4 N5
2
FOR N5
N1
1 NewRT for N5
N5 3 N2 Dest Dis. Nxt.
.
N1 4 N2,N1
6
4 N2 3 N2
N3 6 N4,N3
N4 4 N4
N4 2 N3
N5 0 0
COUNT TO INFINITY PROBLEM
1 1 1 Internet
C A/2 B/2
B will reach to internet with the cost of 1 and will send the matrix/array to neighbors (in
this caseA).
COUNT TO INFINITY CONTD. (NORMAL
OPERATION)
1 1 1
C A/2 B/2 Internet
Step1- ∞ ∞ 1
First pass- ∞ 2 1
Second pass- 3 2 1
COUNT TO INFINITY CONTD.
1 1 1
C A/2 B/2 Internet
• Now suppose the B’s link to the internet has been broken
• B has not informed any of its neighbor about link failure,it just changed the number in its
matrix to infinite.
• C will say toA that I will take you to the internet in the cost of 3 (but C will indirectly
want to reach internet viaA),soA will increase its cost to (3+1) 4.
COUNT TO INFINITY CONTD.
• Now A will broadcast to C that I will take you to the internet in the cost of 3(but
indirectly it was C who was connected to the internet). Now C will increase its costfor
reaching internet to (4+1) 5.
• Here the main problem arise,the upcoming figure will make it clear.
COUNT TOINFINITY
1 1 1
C A/2 B/2 Internet
Pass 1- 3 2 ∞
Pass 2- 3 4 3
Pass 3- 5 4 5
Pass 4- 5 6 5
Pass n- ∞ ∞ ∞
DESTINATI
ON
SEQUENCE • Now DSDV solves the previously explained count
to infinity problem
D • In this protocol there is another area of timestamp
VECTOR
ROUTING
ROUTING SCENARIO (DSDV)
1 1
A B C
• The availability of paths to all destinations in network always shows that less delay is
required in the path set up process.
• The method of incremental update with sequence number labels,marks the existing wired
network protocols adaptable to Ad-hoc wireless [Link], all available wired
network protocol can be useful to ad hoc wireless networks with less modification.
DISADVANTAGES OF DSDV
• DSDV requires a regular updates of its routing tables,which uses up battery power and a
small amount of bandwidth even when the network is idle.
• Whenever the topology of the network changes, a new sequence number is necessary
before the network re-converges; thus, DSDV is not suitable for highly dynamic or large
scale networks.(As in all distance-vector protocols,this does not perturb traffic in regions
of the network that are not concerned by the topology change.)
APPLICATIONS
Unit-V
Routing Protocols Discussions
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University, Dehradun
2 INTRODUCTION
• Global State Routing (GSR) is based on Link State (LS) routing.
• In the LS routing method, each node floods the link state information
directly into the whole network (global flooding) once a link change
between itself and its neighbors is detected.
• A node gets to know the whole topology by obtaining link
information.
• LS routing works well in static topology networks.
• If links change quickly at high mobility, frequent global flooding will
lead to huge control overhead (large amount of small packets).
3 ORGANIZATION
We call this scheme "global state routing" (GSR), where
nodes exchange vectors of link states among their neighbors
during routing information exchange.
D(v): It defines the cost of the path from source code to destination v that has
the least cost currently.
P(v): It defines the previous node (neighbor of v) along with current least cost
path from source to v.
Initialization
Disadvantages
• The main disadvantage is the large size of the routing message.
• As the entire topology table is broadcasted with each update, a considerable amount
of bandwidth is consumed.
• The latency of the link state change propagation depends on the update period,
meaning that it has to be carefully chosen.
8 USED CASES OF GSR (APPLICATIONS)
Unit-V
Routing Protocols Discussions
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University, Dehradun
2
ROUTING OVERVIEW
• The Dynamic Source Routing protocol (DSR) is a simple and efficient routing protocol
designed specifically for use in multi-hop wireless ad hoc networks of mobile nodes.
• DSR allows the network to be completely self-organizing and self-configuring,without
the need for any existing network infrastructure or administration
5
DSR PROTOCOL ACTIVITIES
6
ROUTE DISCOVERY
• The source sends a broadcast packet which contain source address, destination address,
request ID and path.
The process continues and when D find’s it’s own address in destination field,
D would know that node S wants a route to D.
11
DSR EXAMPLE
• If the next hop link is broken when a data packet is being forwarded, a RouteError
(RERR) is generate and propagated backwards.
• Each node caches a new route it learns when any node sends RREQ and RREP
message to other intermediate nodes. Hence makes the protocol moreefficient.
• When node S finds route [S,B,F,D] to node D, node S also learns route [S,B,F] to
node F.
ADVANTAGES OF DSR
Disadvantages of DSR
• Packet header size grows with route length due to source routing
• Flood of route requests may potentially reach all nodes in the network
1
MOBILE COMPUTING (TOE 811)
Unit-V
Routing Protocols Discussions
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University,Dehradun
AD HOC ON-DEMAND DISTANCE VECTOR (AODV)
• Ad hoc On-Demand Distance Vector (AODV) Routing is a routing protocol for mobile
ad hoc networks (MANETs) and other wireless ad hoc networks.
• AODV is a reactive protocol: the routes are created only when they areneeded
• At each node,AODV maintains a routing table
• a routing-entry not recently used is expired
• Route discovery is based on query and reply cycles, and route information is stored in all
intermediate nodes along the route in the form of route table entries.
• It is a reactive/on-demand routing protocol. It is an extension of dynamic source
routing protocol (DSR) and it helps to remove the disadvantage of dynamic source
routing protocol.
• In DSR, after route discovery, when the source mobile node sends the data packet to
the destination mobile node, it also contains the complete path in its header. Hence,
as the network size increases, the length of the complete path also increases and the
data packet’s header size also increases which makes the whole network slow.
• Hence, Ad-Hoc On Demand Vector Routing protocol came as solution to it. The main
difference lies in the way of storing the path, AODV stores the path in the routing table
whereas DSR stores it in the data packet’s header itself.
• It also operates in two phases in the similar fashion: Route discovery and Route
maintenance
• Route Requests (RREQs), Route Replies (RREPs), and Route Errors(RERRs) are
the message types defined by AODV.
• RERR messages are used to notify the network of a link breakage in an active route.
• The AODV protocol is only used when two endpoints do not have a valid active route
to each other.
• Nodes keep a “precursor list” that contains the IP address for each of its neighbors
that are likely to use it for a next hop in their routing table.
• Route table information must be kept for all routes even short-lived routes.
AODV WORKING
• Each node only knows its previous and next hop info
This RREP is unicast along the reverse-routes of the intermediate nodes until it reaches the original
requesting node
RREP packet
● Source_addr
● Destination_addr
● Destination sequence
● Hop count
Route Error
TCP overWireless,Mobile IP
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University,Dehradun
TCP OVER WIRELESS CONTD…
i. End-to-End Solutions (refer Chapter 9 Network Protocols at page no 209-10 for detailed study
of [Link] book Introduction toWireless and mobile system edition 3) :
• End-to-end protocols attempt to make the TCP sender handle losses through the use of two
techniques.
• First, they use some form of selective acknowledgments to allow the sender to recover from multiple
packet losses in a window, without resorting to a coarse timeout.
• Second, they attempt to have the sender distinguish between congestion and other forms of losses
using an explicit loss notification (ELN) mechanism.
TCP OVER WIRELESS CONTD…
ii. Link Layer Protocols (refer Chapter 9 Network Protocols at page no 210-11 for
detailed study of D.P. Agarwal book Introduction to Wireless and mobile system
edition 3) :
There are two main classes of techniques employed for reliable link layer protocols:
1. Error correction using techniques such as FEC
2. Retransmission of lost packets in response to ARQ messages
iii. SplitTCPApproach (refer Chapter 9 Network Protocols at page no 210-11 for detailed study of
[Link] book Introduction toWireless and mobile system edition 3) :
• Split connection protocols split each TCP connection between a sender and receiver
into two separate connections at the BS-one TCP connection between the sender
and the BS, and the other between the BS and the MS.
• Over the wireless hop, a specialized protocol may be used that can tune into the wireless environment.
• Name of the protocols for same work as
--Indirect-TCP (I-TCP)
--M-TCP protocol
MOBILE IP
• Mobile IP is a communication protocol (created by extending Internet Protocol,IP) that allows the users to move from one
network to another with the same IP address.
• It ensures that the communication will continue without user’s sessions or connections being dropped.
• Mobile Node (MN):
It is the hand-held communication device that the user caries e.g. Cell phone.
• Home Network:
It is a network to which the mobile node originally belongs to as per its assigned IP address (homeaddress).
• Home Agent (HA):
It is a router in home network to which the mobile node was originally connected
• HomeAddress:
It is the permanent IP address assigned to the mobile node (within its home network).
• Foreign Network:
It is the current network to which the mobile node is visiting (away from its home network).
• Foreign Agent (FA):
It is a router in foreign network to which mobile node is currently [Link] packets from the home agent are sent to the
foreign agent which delivers it to the mobile node.
• Correspondent Node (CN):
It is a device on the internet communicating to the mobile node.
• Care of Address (COA):
It is the temporary address used by a mobile node while it is moving away from its home network.
MOBILE IP CONTD…
MOBILE IP CONTD…
Working:
• Correspondent node sends the data to the mobile node. Data packets contains correspondent node’s address (Source) and home
address (Destination).
• Packets reaches to the home agent. But now mobile node is not in the home network, it has moved into the foreign network. Foreign
agent sends the care-of-address to the home agent to which all the packets should be sent. Now, a tunnel will be established between the
home agent and the foreign agent by the process of tunneling.
• Tunneling establishes a virtual pipe for the packets available between a tunnel entry and an endpoint. It is the process of sending a packet
via a tunnel and it is achieved by a mechanism called encapsulation.
• Now, home agent encapsulates the data packets into new packets in which the source address is the home address and destination is the
care-of-address and sends it through the tunnel to the foreign agent.
• Foreign agent, on other side of the tunnel receives the data packets, decapsulates them and sends them to the mobile node.
• Mobile node in response to the data packets received, sends a reply in response to foreign agent. Foreign agent directly sends the reply
to the correspondent node.
MOBILE IP CONTD…
(Professor)
Department of Computer Science & Engineering
Graphic Era Deemed to be University,Dehradun
MOBILE INTERNET PROTOCOL (MOBILE IP)
Mobile IP is a communication protocol (created by extending Internet Protocol, IP) that allows the users to move from one network to
another with the same IP address. It ensures that the communication will continue without user’s sessions or connections being dropped.
Terminologies:
• Mobile Node (MN):
It is the hand-held communication device that the user caries e.g. Cell phone.
• Home Network:
It is a network to which the mobile node originally belongs to as per its assigned IP address (home address).
• Home Agent (HA):
It is a router in home network to which the mobile node was originally connected
• Home Address:
It is the permanent IP address assigned to the mobile node (within its home network).
• Foreign Network:
It is the current network to which the mobile node is visiting (away from its home network).
• Foreign Agent (FA):
It is a router in foreign network to which mobile node is currently connected. The packets from the home agent are sent to the foreign
agent which delivers it to the mobile node.
• Correspondent Node (CN):
It is a device on the internet communicating to the mobile node.
• Care of Address (COA):
It is the temporary address used by a mobile node while it is moving away from its home network.
WIRELESS APPLICATION PROTOCOL
• Browser
• “Micro browser”, similar to existing web browsers
• Script language
• Similar to Javascript, adapted to mobiledevices
• Gateway
• Transition from wireless to wired world
• Server
• “Wap/Origin server”, similar to existing webservers
• Protocol layers
• Transport layer, security layer, session layer etc.
• WirelessApplication Environment (WAE).This layer is of most interest to content developers because it contains among other things,device
specifications,and the content development programming languages,WML, andWMLScript.
Session Layer
• Wireless Session Protocol (WSP).Unlike HTTP,WSP has been designed by theWAP Forum to provide fast connection suspension and reconnection.
Transaction Layer
• WirelessTransaction Protocol (WTP).TheWTP runs on top of a datagram service, such as User Datagram Protocol (UDP) and is part of the standard
suite ofTCP/IP protocols used to provide a simplified protocol suitable for low bandwidth wireless stations.
Security Layer
• WirelessTransport Layer Security (WTLS).WTLS incorporates security features that are based upon the establishedTransport Layer Security (TLS)
protocol [Link] includes data integrity checks,privacy,service denial,and authentication services.
Transport Layer
• Wireless Datagram Protocol (WDP).TheWDP allowsWAP to be bearer-independent by adapting the transport layer of the underlying [Link]
presents a consistent data format to the higher layers of the WAP protocol stack, thereby offering the advantage of bearer independence to application
developers.
• Each of these layers provides a well-defined interface to the layer above [Link] means that the internal workings of any layer are transparent or invisible
to the layers above [Link] layered architecture allows other applications and services to utilise the features provided by the WAP-stack as [Link]
makes it possible to use theWAP-stack for services and applications that currently are not specified byWAP.
WAP - ENVIRONMENT
• Wireless Application Environment (WAE), the uppermost layer in the WAP stack, provides an environment that enables a wide
range of applications to be used on the wireless [Link] have earlier discussed about the WAP WAE programming model. In
this chapter, we will focus on the various components ofWAE.
Components ofWAE
Addressing Model
• A syntax suitable for naming resources stored on [Link] use the same addressing model as the one used on the
Internet that is Uniform Resource Locators (URL).
Wireless Markup Language (WML)
• A lightweight markup language designed to meet the constraints of a wireless environment with low bandwidth and small
handheld [Link] Wireless Markup Language is WAP's analogy to HTML used on the [Link] is based on the
Extensible Markup Language (XML).
WMLScript
• A lightweight scripting language. WMLScript is based on ECMAScript, the same scripting language that JavaScript is based on. It
can be used for enhancing services written in WML in the way that it to some extent adds intelligence to the services; for
example,procedural logic, loops,conditional expressions,and computational functions.
Wireless Telephony Application (WTA,WTAI)
• A framework and programming interface for telephony [Link] (WTA) environment provides a means to create
telephony services usingWAP.
• Hardware and Software Requirement
• At minimum developingWAP applications requires a web server and aWAP [Link] simulator software while developing aWAP application is
convenient as all the required software can be installed on the development PC.
• Although,software simulators are good in their own right,noWAP application should go into production without testing it with actual hardware.
The following list gives a quick overview of the necessary hardware and software to test and developWAP applications −
• A web server with connection to the Internet
• AWML to developWAP application
• AWAP simulator to testWAP application
• A WAPgateway
• A WAP phone for final testing.
• Microsoft IIS orApache onWindows or Linux can be used as the web server and NokiaWAPToolkit version 2.0 as theWinWAP simulator.
• ConfigureWeb Server forWAP
• In theWAP architecture,the web server communicates with theWAP gateway,accepting HTTP requests and returningWML code to the gateway.
The HTTP protocol mandates that each reply must include something called a Multi-Purpose Internet Mail Extensions (MIME)type.
• In normal web applications,this MIME type is set to text/html,designating normal HTML [Link] on the other hand could be specified as
image/gif or image/jpeg for [Link] this content type specification, the web browser knows the data type that the web server returns.