Professional Documents
Culture Documents
Jafer Hussain
San Ramon, CA, USA
Anthony Chun
Los Altos, CA, USA
The publisher, the authors, and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, expressed or implied, with respect to the
material contained herein or for any errors or omissions that may have
been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.
IoT at a Glance
Internet of Things (IoT) is a set of technologies and capabilities that are
enabling new use cases and delivering services across a wide variety of
markets and applications. In simple terms, IoT is about connecting the
unconnected, making them smart and autonomous, and providing the
ability to remotely monitor, control, and manage devices on a massive
scale. When people think of IoT, they often think of home or personal
IoT. IoT is much more than a smart door lock, smart garage door
opener, smart lighting, or a wireless video doorbell. IoT will play a role
in many commercial applications such as smart manufacturing, smart
cities, autonomous cars, building automation, and healthcare.
Implicitly, IoT also includes the following key attributes:
Scalability: Trillions of Things readily deployed across multitudes of
use cases and connected via IP. IP enables each Thing to be identified
uniquely and addressed so that data can be received or sent from or
to the Thing from anywhere on the Internet.
Communications: The digital data and measurements from the
Things are sent reliably, securely, and punctually to be analyzed at
the “Edge” or the “Cloud”; conversely, commands from the Edge or
Cloud are received reliably, securely, and in a timely manner by
Things so that time critical operations can be executed.
Analytics: Data from trillions of Things are analyzed to derive
understanding and insights that produce actions that benefit entities
– humans, corporations, and the world community.
One of the core aspects of IoT is about M2M (machine-to-machine)
communication where billions of smart and autonomous things and
devices will connect to the Internet and leverage AI, cloud technologies,
and big data analytics to make our lives much smarter, healthier, and
better. A typical end-to-end IoT system concept is shown in Figure 1-1.
Wired or Wireless?
Wired connectivity solutions such as Ethernet-based on twisted pair
copper or fiber optics are used today and will continue to be used in
many IoT applications as they have many benefits in terms of high
speed, excellent reliability, support for long cable runs, inherent
security, and relatively low latency.
However, wired connectivity solutions alone are not enough for
enabling the IoT ecosystem. Consider the following: using wireless to
connect battery-powered IoT sensors simplifies deployment and
reduces installation costs and enables economical scaling of IoT
solutions. For example, imagine the cost and construction time required
for running miles of cabling for a Smart Agriculture or Smart City use
case or rewiring an existing Smart Building to reroute cables to
environmental sensors. The cost of installing the wired connectivity
infrastructure could overwhelm the potential savings due to the high-
cost deployment of IoT solutions. Thus, wireless connectivity could
enable the scaling of a financially viable solution. For devices that are in
motion such as robots, mobile terminals and cars, or devices that need
to be placed in different locations on a temporary basis such as mining
and agricultural equipment, wireless connectivity is needed to meet the
needs of applications that require mobility and seamless connectivity.
Thus, we can see that wireless technologies are essential to building the
IoT ecosystem. However, we acknowledge the inherent limitations of
wireless technologies, and we will devote several chapters of this book
on the strategies for reducing and mitigating these limitations and
optimizing the potential of wireless solutions for IoT applications.
Note that in both wired and wireless connectivity, the data are
transmitted as an electromagnetic wave.
Wired connectivity: Electrical or optical signals are sent over a
physical wire or cable between IoT devices; the electrical or optical
signals are constrained within the physical cable. The electromagnetic
carrier wave is transmitted over a cable that consists of a conductive
material that acts as a transmission line. The types of cable that are
used depend upon the wired standard and can include twisted pair or
shielded twisted pair such as telephone cables, coaxial cables, fiber
optic cables, and even powerlines such as household electrical wiring.
The physical properties of the cable determine the data rate and
reliability of the transmitted data.
Because the messages are restricted to the physical cable or wire,
they are secure from being intercepted unless the cable is physically
accessed. Cables are subject to crosstalk interference from adjacent
cables. Shielding used in coaxial cables provides immunity from such
noise and interference.
The electromagnetic energy that is sent over a cable attenuates with
distance due to the impedance of the cable and impedance mismatches
from different components connected to the cable. For example, the
maximum length of Ethernet cables is typically 100 meters.1
Wireless connectivity: Radio Frequency (RF) or optical signals are
broadcast across the environment between IoT devices. For wireless
connectivity, the carrier waveform is launched as an electromagnetic
wave into “free space” from the transmitting device to the receiving
device. The electromagnetic waveform could be sent over an antenna
that radiates the energy in a specific direction; at the receiver, another
antenna is used to convert the electromagnetic wave into a voltage and
current that is processed to recover the transmitted data.
In theory, “free space” is considered to be a vacuum. In reality, “free
space” includes physical obstacles such as the ground, buildings, walls,
people, trees, moisture and rain, etc. which affect the fidelity of the
wave that arrives at the receiver antenna. Practical communication
solutions need to overcome these impairments and several different
techniques are adopted by various connectivity standards.
In addition, it is certainly possible that the transmitted wave is an
optical signal sent via a laser or infrared pulse. It is also possible to use
non-radio techniques such as ultrasonic signals to send data between
IoT devices. Such techniques are not yet widely deployed for IoT
applications today and could become popular once the solutions
mature.
Spectrum
Wireless spectrum can be characterized as either licensed or
unlicensed. Access to licensed spectrum is typically purchased from a
local government to provide an organization exclusive access to a
particular channel in a particular location. Operation in that channel
should be largely free of interference from competing radios. The
drawback is that the spectrum of interest may be extremely scarce or
expensive to access. In some other cases, radio connectivity bands
allowed in one country may not be available in other geographical area
for same usage. For instance, mobile networks in India use the 900 MHz
and 1800 MHz frequency bands, while GSM (Global System for Mobile
communications) carriers in the United States operate in 850 MHz and
1900 MHz frequency bands. To deploy an IoT device globally, then it
may have to support multiple radio bands making the device costly as
well as time-consuming to develop. Even when more easily accessible,
it can take months to gain the approval to operate, so licensed bands
are not well suited to rapid deployments.
Unlicensed spectrum is generally open and available to anybody to
use with no exclusive rights granted to any particular organization or
individual. The downside is that competing systems may occupy the
same channel at different power levels leading to interference.
Manufacturers of radio systems operating in unlicensed bands include
capabilities in these radios to adapt their operation for this potential
interference. These techniques include adaptive modulation, automatic
transmit power control and out-of-band filtering, and so on.
Network Topology
Network topology is the arrangement of the elements in a network,
including its nodes and connections between them. Common network
topologies used for wireless connectivity are depicted in Figure 1-3.
Point-to-point topologies are best suited for delivering lots of
capacity over long distances. Point-to-point connections cover longer
distances that are less susceptible to interference as the antenna
patterns are narrower so the energy can be focused in the direction of
the desired transmission. Point-to-point links are also used for short-
range connections to the wireline backbone. Resiliency in a point-to-
point link can be provided by deploying in 1+1 or other redundant
configurations with parallel sets of radios.
Ring topologies are excellent for resilient operations of high-
capacity links covering a large area. This configuration is typically used
in the backhaul network.
Mesh networks can be built using multiple point-to-point links or
with specialized meshing protocols to enable multiple paths from point
Another random document with
no related content on Scribd:
‘The greater extent of the plain was in grass, studded with thorny
“sidder” bushes; but some crops of barley and beans looked
flourishing, and here and there, where irrigation had been attempted
by means of watercourses from the river “Ghemáts” vegetation was
luxuriant beneath olive and other fruit-trees.
‘At about 4 p.m. the country assumed a more pleasing aspect as
we passed the villages of the Shloh tribe of Mesfíwa. These Shloh,
like the natives of Sus and Rif, are all of Berber race. Neither
Phœnicians, Goths, Romans nor Arabs ever succeeded in bringing
them completely under subjection, for they retreated before the
conquerors to the mountains, and in these highland fastnesses
maintained their independence. With the exception of a few tribes
they owe no political allegiance to the Sultan, but acknowledge his
spiritual suzerainty as the recognised head of the Mohammedan
religion in Morocco, in virtue of his direct descent from the Prophet.
They altogether differ in appearance from the Arabs, and no affinity
can be traced between the Berber and the Arabic languages,
excepting in words connected with the Mohammedan religion which
were introduced when the Berbers adopted the creed of Islam. In
place of tents the Shloh live in houses, of one or two stories, built of
mud and stone without mortar, the earth of this district having the
peculiar quality, when well beaten down, of being impermeable.
‘Learned writers have disputed the origin of the Berbers, but they
seem to agree that they are not the aborigines of the country, but
displaced another and more ancient race of inhabitants. One of the
traditions of the Berbers is that their ancestors were driven out of
Syria by the “Khalífa” of “Sidna Musa” (“our Lord Moses”), meaning
Joshua, the lieutenant of Moses. Their country in the South of
Morocco is called generally “Sus,” and the manner of their expulsion
is related in yet another legend quoted from a commentary on the
Koran.
‘God said unto David, “Banish the Beraber out of this land, for if
they dwelt in hills of iron they would break them down.” Whereupon,
says the story, King David placed the people on camels, in sacks
called “gharaiar,” and sent them away. When they arrived at the
Atlantic coast their leader called out, in the Berber tongue, “Sus”—
which means let down, or empty out—so the exiles were canted out
of their sacks, and the country is thence called “Sus” to this day!
‘Many of the Shloh proper names appear to have an affinity to the
Hebrew, if not actually of Hebraic origin, such as Ait Usi, Ait Atta, Ait
Emor, Ait Sisac, Ait Braim. The Hebrew equivalent of the first three
being Hait Busi, in our translation the Jebusites, Ha Hitti, the Hittites.
Ha Emori, the Amorites. Ait Sisac may be translated “Those of
Isaac,” or The children of laughter. Ait Braim needs no translation.
‘On our entry into Mesfíwa we were surprised to find signs of
much more industry, and even of civilisation, than in the districts
inhabited by the Arab population. Here irrigation was carefully
attended to; the numerous plantations of olive and fruit-trees, as well
as the fields of grain, were better cultivated; and the condition of the
bridle roads and rude bridges over the streams afforded further proof
of a more intelligent and industrious people.
‘Ascending the slopes we reached the camp pitched in an olive-
grove on a small island formed by the Ghemáts, here called the “Dad
i Sirr,” evidently its Berber name. We crossed with some difficulty this
mountain torrent, which foamed and swirled up to the horses’ girths.
Flowing down a gorge of the Atlas running nearly North and South,
this river then takes a north-westerly direction till it joins the Tensift,
which again flows into the Atlantic near Saffi.
‘On the side of a hill, about four hundred yards from the site of the
camp, lay the village Akhlij, crowned by a castle built of red stone
and earth, and having five square bastions with loopholes for
musketry. In fact every house in these villages can be used as a little
fort, the walls being pierced so that each householder can defend
himself against his neighbour, or all can combine and act against an
invader of their stronghold. The population of Akhlij is said to be
about 500 souls, including some forty Jews, each Jewish family,
according to the custom of the Shloh, being under the special
protection of a Mohammedan chieftain.
‘Above the spot where we were encamped rose the mountain of
Zinat Kar, the summit dotted with patches of snow, and, towering
over all, the snowy heights of “Glaui” frowned upon the groves of
palms, oranges and olives which spread below basking in the sultry
temperature of the plains.
‘On our arrival in camp the Sheikh and elders of the village
presented themselves, by order of the Sultan, to welcome the
“Bashador.” The Sheikh, a tall man, was draped in a long, seamless
“haik;” but some of his followers wore a black burnous similar to
those in use among the Jews of Marákesh. The meeting took place
under the British flag—hoisted for the first time in these wild regions
—before Sir John’s tent. In the evening the deputation returned,
bringing an abundant supply of provisions and forage, and, in
addition, huge dishes of cooked food for the soldiers and camp-
followers. This “mona” was collected from the whole province under
the rule of Basha Grenog, comprising some fifteen “kabail,” or tribes,
spread over a district about fifty miles in diameter. The tax therefore
fell lightly on the inhabitants, not amounting to more perhaps than a
half-penny a family, which sum would be deducted from the payment
of their annual taxes.
‘This spot in the valley of Uríka, at the foot of the Atlas, is about
500 feet above Marákesh and 2,000 feet above sea-level, and the
fine air was most enjoyable. The night appeared cold, the
temperature falling below 60° Fahr. At midday it was 74° in the
shade.
‘There were contradictory statements as to the sport to be
expected. But, after much cross-questioning, the natives confessed
that there were no wild boar nearer than the snow; that the
“audad[48],” or wild sheep, was to be found, but only on the highest
hills a couple of hours’ ride distant; and that lions and leopards were
not to be seen within two days’ march, or about thirty miles further
among the snowy ranges. On inquiry whether there were any fish in
the river, we were told that, later in the season, a speckled fish about
nine or ten inches long comes up from the Tensift. This no doubt is
the trout, which is found also in the mountain streams near Tetuan.
On asking the Berber name for large river fish, Sir John was
surprised to hear that it is “selmen,” which would appear to be a
cognate word to our “salmon.”’
Two of the stories related to Sir John on the march by the Sultan’s
stirrup-holder may be inserted here as exemplifying the manners and
customs of the officials about the Moorish Court, and especially
those of the military class. The first may be called ‘A Story of a
Moorish Prince.’
Mulai Ahmed, second son of Sultan Mulai Abderahman Ben
Hisham, was appointed by his father Viceroy of the districts of Beni
Hassén, Zair, Dukála, Shedma, &c. His residence was at Rabát.
This Prince was clever, and endowed with many good qualities,
but he was extravagant and reckless in his expenditure, and thus
became deeply indebted to the merchants and shopkeepers of
Rabát; but no man ventured to press his pecuniary claims on the
wayward youth. His debtors, moreover, had only to ask some favour
by which they might be benefited in their trade, and it was
immediately granted by the Prince; the favour thus conferred amply
recouping them for their unpaid goods.
On the occasion of a visit of the Sultan to Rabát in 1848, Mulai
Ahmed was still Viceroy. Various complaints had been brought by the
inhabitants to the Uzir, Ben Dris, against His Royal Highness for not
paying his debts; but the Uzir endeavoured so to arrange matters as
to avoid reporting the misconduct of the young Prince to his father.
One day, however, when the Sultan was going to mosque, an
Arab from the country called out, from a high wall—on which he had
climbed to avoid being silenced by the troopers who formed the
escort of the Sultan—‘Oh Lord and Master, Mulai Abderahman, my
refuge is in God and in thee! I have been plundered and unjustly
treated during this your reign.’
The Sultan, restraining his horse, desired his attendants to learn
who this man was; and, after hearing their report, sent for the Uzir
and directed him to inquire into the case and report thereon.
On the man presenting himself before the Uzir, the latter
reprimanded him for brawling in the streets for justice. ‘One would
suppose,’ said Ben Dris, ‘that there were no longer governors or
kadis in Morocco! Whence are you? what have you to say?’
‘I am an Arab from Shedma,’ the man replied. ‘I had a fine horse,
for which I had been offered by the chief of my tribe three hundred
ducats, but I refused to sell; for, though a poor man, my horse was
everything to me; I would not have parted with him for all the wealth
that could be offered me. Some weeks ago I came to Rabát, and
Mulai Ahmed—may God prolong his days!—in an evil hour saw my
horse, and ordered his soldiers to seize it, sending me a purse of
three hundred ducats, which however I refused to accept. For forty
long days have I been seeking justice, but can obtain hearing neither
of Mulai Ahmed nor of any one else.’
The Uzir replied, ‘If your story be true, your horse shall be
returned to you; but, if false, you shall be made an example of for
daring to bring a complaint against the son of the Sultan.’
The Uzir then sent a messenger to inquire of Mulai Ahmed
concerning the matter, and by him the Prince sent reply that he knew
nothing about the horse. The Uzir was consequently about to order
the Arab to be bastinadoed, when the latter begged Ben Dris to send
him, accompanied by some of his—the Uzir’s—attendants, to the
stables of Mulai Ahmed, where he felt sure he would find the horse;
begging that his whole tribe might, if necessary, be called upon to
give evidence respecting the identity of the horse.
The Uzir accordingly sent the Arab, with a guard, to the Prince’s
stables to point out the horse, with directions that it should be
brought before him. He also sent to inform Mulai Ahmed that this
order of his father the Sultan must be obeyed.
The attendants took the Arab to the stable, where he immediately
recognised his horse, but had no sooner done so than he was
arrested, along with the Uzir’s men, by some soldiers sent by Mulai
Ahmed, and brought before the Prince, who had them all
bastinadoed and dismissed.
On the return of the Uzir’s men, they reported to their master what
had taken place. The Uzir had them again bastinadoed for not
having carried out his orders, viz. to bring back the Arab and his
horse in safety. Then, mounting his mule, he rode direct to the
palace, where he recounted to the Sultan what had occurred.
His Majesty was highly incensed; his eyes flashed lightning, and
his voice was as thunder. ‘Dare any son of mine disobey the orders
of his father? Are my people to be robbed and ill-used at his caprice?
Summon the chief kaid of our guard.’
The officer appeared. ‘Take,’ said the Sultan, ‘a saddled mule to
the palace of Mulai Ahmed. Bind the Prince hand and foot. Conduct
him this day to Meknes, where he is to be imprisoned until further
orders. Let the Arab have his horse and an indemnity for the rough
treatment he has received. Let a proclamation be issued that all
persons who have been unjustly used by Mulai Ahmed are to
present themselves to me; for there is no doubt,’ added the Sultan,
‘that is not the only case of injustice of which my son has been
guilty.’
The orders of Sultan Mulai Abderahman were obeyed. The chief
of the guard appeared before Mulai Ahmed with a mule saddled and
bridled, and informed the Prince he was deposed from his position
as Viceroy, and that he was to proceed at once with him to Meknes.
At first Mulai Ahmed refused to obey his father’s commands, but,
on being threatened by the officers with fetters and manacles if he
showed any resistance, consented to mount the mule and start at
once on his journey. The third day they arrived at Meknes, where
Mulai Ahmed was confined in prison, whence he was not liberated
for five years.
I suppose the young Sultan intends to tread in the footsteps of his ancestors
and remain stagnant.
My belief is that these people, or rather this Government, will never move
ahead until the lever acts at headquarters continuously, by the presence and
pressure of the Foreign Representatives. So long as we preach and pray at a
distance, nothing will be done. On the other hand, if the Foreign Representatives
were removed to the Court, there would no doubt be a rupture of relations, or
some tragedy, before twelve months elapsed.
Again, shortly after the accession of Mulai Hassan, Sir John writes
to the same correspondent:—
I shall make a fresh effort to induce the young Sultan to introduce some
reforms and improvements, but I have but faint hope of success, as the Ministers
and satellites of the Court are either rogues or fools.
From my experience of Turkey and the Turks I confess I have little confidence
in the beneficial effect of any attempt to introduce European grafts on the old
Mohammedan stock. The tree which showed signs of vigour has been cut down,
and the fruit of the European graft contains rather the evils than the virtues of both
the West and the East.
When this letter was written, Sir John was already on his way to
Fas. On March 3, 1875 he left Tangier, accompanied by several
members of his family, some personal friends[51], and the officers
appointed by the British Government to attend the Mission.
The reception at Fas was magnificent, some six thousand troops
having been sent to do honour to the Representative of Great
Britain; but what was more pleasing to him and greatly enhanced the
effect of the entry, was the presence of the citizens of Fas, who had
come to meet him in their thousands, bringing with them their wives
and children; to show, they said, their appreciation of his friendship
and love of justice. The shrill ‘zagharit’ continually raised by the
women as Sir John passed through the crowd, attended by his staff
and escort, completely drowned at times the sound of the brass
band which the Sultan had sent to play before the procession. Soon
after the instalment of the Mission at Fas, the incident occurred
which Sir John relates as follows:—