This document discusses the Common Alerting Protocol (CAP), which is an XML-based data format for exchanging public warnings and emergencies between alerting technologies and systems. It provides an overview of CAP, including its development history and standardization. The document also describes how CAP can be used to send alerts in multiple languages and through different communication channels. Specific examples are given of CAP profiles and messages used in Sri Lanka for disaster warning systems.
UiPath Test Automation using UiPath Test Suite series, part 3
Common Alerting Protocol
1. Common Alerting Protocol
1st Annual Sahana Conference 2009
Disaster/Emergency management best practices
2009 March 25
Colombo, Sri Lanka
www.lirneasia.net
Nuwan Waidyanatha
LIRNEasia
Email: nuwan@lirneasia.net
Web: http://www.lirneasia.net/profiles/nuwan-waidyanatha/
Mobile: +8613888446352 (cn)
+94773710394 (lk)
2. eXtensible Markup Language (XML)
Header
Target Name Space
(Association)
Opening tag
Closing tag
www.lirneasia.net
What is XML?
Markup language like HTML
Designed to carry and store data
Self descriptive
W3C recommendation – (http://www.w3schools.com/w3c/w3c_xml.asp)
Why Use XML?
Interoperable: xml data can be shared between incompatible systems
Well Formed: adheres to correct syntax
Validation: structure: Document Type Definition or XML Schemas
Accessibility: Document Object Model defines the text & attributes
3. Common Alerting Protocol Overview
All you want to know in “CAP Cookbook”
XML Schema and Document Object Model
Interoperable Emergency Communication Standard
Specifically geared for Communicating Complete
Alerts
Capability for Digital encryption and signature X.509
www.lirneasia.net
Developed by OASIS for “all-hazards”
communication
Adopted by ITU-T for Recommendations X.1303
Incubated by W3C Emergency Information
Interoperability Framework
Used by USA, USGS, WMO, Gov of CA
Can be used as a guide to generate alerts
4. CAP Document Object Model Alert
identifier
sender
Bold elements are Sent
mandatory Status
msgType
Bold elements in Source
<Alert> segment are Scope
qualifiers Restriction
* Address
Info
Others elements are Code (handling code)
Language
optional Note
Category
References (Ref ID)
Event*
Profile may specify Incidents (Incident ID)
responseType
other mandatory Urgency
elements from optional Severity
list Resource
Certainty
www.lirneasia.net
resourceDesc
Audience
Single <Alert> mimeType
*
eventCode*
segment Size
Effective (datetime)
URI
Onset (datetime)
Multiple <Info> derefURI
Expires (datetime)
segments inside digest
senderName
<Alert> segment Headline
Description
Multiple <Area> and Area
Instruction
*
<Resource> segments areaDesc
Web (InformationURL)
inside a <info> Polygon*
Contact (contact details)
segment Circle*
Parameter*
Geocode*
(*) indicates multiple Altitude
instances are Ceiling
permitted
6. Prioritizing Messages in CAP
Priority <urgency> <severity> <certainty>
Urgent Immediate Extreme Observed
High Expected Severe Observed
Low Expected Unknown Likely
www.lirneasia.net
7. Steps for setting up a CAP Profile
1. Audience <Scope>
Alert First Responders only (i.e. closed user group)
Example: police, health workers, civil society, public servants
Alert Public (entire population)
Combination of First Responders and Public
step 1: alert First-Responders to give them time to prepare
Step 2: warn public
2. Geographical Descriptions <Area>
Country wide Audience
Province or State
District
www.lirneasia.net
Geography
Other – Geocodes or GPS polygons
3. National <Languages> Language
English only or Chinese only or Malay only
English, Hindi, Chinese, and Malay
Technology
4. Communication Technology?
Mobile phones – SMS, CB, Email, Applet
TV – Text, Audio, Visual
AM/FM Radio - Text, Audio
VHF/UHF Radio - Audio
Internet – HTTP, Email, Webservices
8. CAP Profile for Sri Lanka
3 info segments to
alert
accommodate the
<incidents>
<identifier>
3 local languages:
<sender>
English, Sinhala,
<sent>
<status> and Tamil.
<msgtype>
<scope>
www.lirneasia.net
info info info
<language> ‘ta’ <language> ‘si’ <language> ‘en’
<category> <category> <category>
<event> <event> <event>
<urgency> <urgency> <urgency>
<severity> <severity> <severity>
<certainty> <certainty> <certainty>
resource
<description> <description> <description>
<resourceDesc>
area
<areaDesc>
9. Cyclone Bulletin used in HazInfo Exercises
Last-Mile HazInfo Simulation. No Repeat No Real Event is Effect
TROPICAL CYCLONE ADVICE NUMBER 001
Issued at 09:55 am on Monday, December 11, 2006
BY Sri Lanka Met Department
A SEVERE CATEGORY 4 CYCLONE is now current for AMPARA and MATARA District
coastal areas. At 06:00 am local time SEVERE TROPICAL CYCLONE MONTY was estimated to be
80 kilometres northeast of Ampara District and moving southwest at 10 kilometres per hour.
Severe Tropical Cyclone Monty is expected to cross the coast in the vicinity of Ampara and Matara
www.lirneasia.net
Districts during Monday. Gales with gusts to 180 kilometres per hour are likely in coastal communities in
Ampara and Matara District during the day.
This is to alert the residents of Ampara and Matara District about the potential of a very dangerous
storm tide as the cyclone centre approaches the coast. Tides are likely to rise significantly above the
normal high tide mark with very dangerous flooding, damaging waves and strong currents.
Widespread heavy rain and further flooding are likely in southern parts of the Ampara and Matara
Districts over the next few days.
Last-Mile HazInfo Simulation. No Repeat No Real Event is Effect.
12. CAP Canada Profile
<Area> definition
Alert Alert
Standard
Geographical
Classification
(Mngd: Stats CA)
Info Area
(Language Specific)
Debate on
Resource
<eventCodes>
(General)
www.lirneasia.net
Area Info Number of <Info>
(Area Description)
blocks
Info
Resource Resource
Resource
Message
(Language Specific)
Management
13. Automated Standard Message
“A <event> alert has been issued for
<areaDesc> by <senderName>. Persons
in this area are encouraged to
<responseType>, and <instruction> (if
fields . This event is rated as <severity>,
www.lirneasia.net
and is <certainty>. Responsive action
should be taken <urgency> . For more
information about this event, visit
<URI> or call <contact>.”
14. Examaple of Automated Standard Message
“A Flood alert has been issued for North
Western Province by Department of
Irrigation and Water Resources. Persons
in this area are encouraged to prepare,
and stay away from demarcated flood
zones. This event is rated as moderate,
www.lirneasia.net
and is likely. Responsive action should
be taken future. For more information
about this event, visit
http://www.dmc.gov.lk/ or call 2395521
.”
16. Last Mile Hazard Warning System (HazInfo Project)
www.lirneasia.net
Sarvodaya Community Disaster Communications
Sarvodaya Communities
Management Center (SCDMC) Providers
17. Dialog DEWN Terminal Devices
HIH Monitor issued CAP Receiver Device ICT Guardian received
Interface Message and {Medium} Message elements
DEWN <info> sub element with MP “Warning” <info> <Language>en
Internet <Language>en {Text} <Description> A SEVERE
Browse <Description> … {no size CATEGORY 4 CYCLONE…
restriction} <Language>si
<Language>si <Description> …{sinhala}
RAD
<Description> … {no size <Language>tm
{Text}
restriction} <Description> … {tamil}
<Language>tm {restricted by 140 characters}
www.lirneasia.net
<Description> … {no size
restriction}
18. WorldSpace Satellite Radio
Receiver
HIH Monitor issued CAP Device and ICT Guardian received
Interface Message {Medium} Message elements
ANNY All sub elements in <Alert> AREA – B <msgType>Alert
Internet element and message in {Text} <Scope>restricted
Browser <Language>en only. <Sender>hih
application <Status>exercise
(AREA) <Category>met
<Urgency>expected
<Severity> sever
<Certainty>observed
<Event>A SEVERE CATEGORY 4
www.lirneasia.net
CYCLONE … {restricted 250
characters}
<Description> with AREA – B <Description> A SEVERE
<Language>all… {no size {Audio} CATEGORY 4 CYCLONE …{no size
restriction} restriction}
19. Public Internet Alert System
Receiver
HIH Monitor issued CAP Device and ICT Guardian received
Interface Message {Medium} Message elements
IPAS Internet <Description> with Personal <Description> A SEVERE
Browser <Language>en only … {no Computer CATEGORY 4 CYCLONE … {no size
size restriction} {Text} restriction}
www.lirneasia.net
20. CDMA Voice Alerts
HIH Monitor issued Receiver Device ICT Guardian received
Interface CAP Message and {Medium} Message elements
CDMA 2000 <Description> … {no size CDMA2000 <Description> A SEVERE
1x_RTT and language restriction} 1x_RTT CATEGORY 4 CYCLONE …{no size
Telephones restriction}
{Audio}
www.lirneasia.net
21. Evaluating Terminal Devices for CAP Completeness
Value Fuzzy rule for Language
Value Fuzzy rules for completing Profile
Diversity (Table 2)
requirements (Table 1)
1.00 Sinhala + Tamil + English
1.00 All sub elements that are contained in the
<Alert> segment, which includes all the 0.99 Sinhala + Tamil
qualifier elements and <info> element as
0.95 Sinhala + English
well as the <resource> and <area> sub
elements 0.80 Sinhala Only
0.95 Mandatory elements described in the Profile for 0.38 Tamil + English
Sri Lanka, which are qualifier elements in
0.28 Tamil Only
the <alert> segment with at least the
<urgency>, <severity>, <certainty>, and 0.15 English Only
<description>
0 Otherwise
www.lirneasia.net
0.85 Qualifier elements of the <alert> segment and
the <description> only
Value Fuzzy Rule for Communication
0.70 <description> only Medium (Table 3)
0.50 Elements <category> and <event> only 1.00 Graphic + Audio + Text
0.25 Mandatory sub elements of the <alert> 0.95 Graphic+ Audio
segment only
0.90 Audio + Text
0 Otherwise
0.80 Audio
0.70 Graphic + Text
For a full description of the evaluation method refer 0.60 Graphic
to the “HazInfo Technical Report” -
0.50 Text only
http://www.lirneasia.net/wp-
content/uploads/2008/05/hazinfo-technical-report.pdf 0 Otherwise
22. HazInfo Technology ratings
AREA+ AREA+ AREA+
Measure AREA RAD MOP FXP VSAT MOP FXP RAD
Language 1.00 0.15 1.00 1.00 0.15 1.00 1.00 1.00
CAP elements 0.95 0.70 0.70 0.80 0.70 0.95 0.95 0.95
Multimedia 0.90 0.50 0.50 0.80 0.50 0.90 0.90 0.90
Rating 0.86 0.05 0.35 0.64 0.05 0.86 0.86 0.86
Effectiveness of Terminal Devices for Cliques of Parameters
www.lirneasia.net
AREA+FXP
AREA+RAD
AREA+MOP
Terminal Devices
VSAT
FXP
RAD
MOP
AREA
Effectiveness Measure
CAP Complete Two-Way Adoptability Minaturization Alerting
23. Interoperability Testing
June 2007 between WorldSpace-Sankya and Dialog-Microimage
GSM GSM
SMS SMS
FTP: XML
pull
www.lirneasia.net
SOAP: XML
HTTP: XML UDP/IP UDP/IP
push
Post MP3 MP3
25. Conclusions
CAP is a consistent, complete, multi lingual, and
interoperable global emergency communication protocol
CAP offers standard guidelines for developing an inventory
of emergency information templates and messages
CAP should be adopted by states and organizations for
their public and closed-user-group exchange of emergency
information
States or organization must first develop a CAP Profile in
www.lirneasia.net
consultation with all involved stakeholders
Profile should consider the target – audience (<scope>),
jurisdictions <area>, <Language>, and Technologies
Alerting agencies should adopt a “CAP Broker” for
constructing and issuing CAP messages via “tested”
technologies
Recommendation to Disaster Communications Technology
Manufacturers – Make your equipment CAP compliant
26. <End> Do you have any questions? </End>
www.lirneasia.net