IPVS DesignGuide
IPVS DesignGuide
The CVD program consists of systems and solutions designed, tested, and documented
to facilitate faster, more reliable, and more predictable customer deployments. For
more information visit www.cisco.com/go/designzone.
ALL DESIGNS, SPECIFICATIONS, STATEMENTS, INFORMATION, AND RECOMMENDATIONS
(COLLECTIVELY, "DESIGNS") IN THIS MANUAL ARE PRESENTED "AS IS," WITH ALL
FAULTS. CISCO AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES, INCLUDING, WITHOUT
LIMITATION, THE WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE,
OR TRADE PRACTICE. IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY
INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING,
WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF
THE USE OR INABILITY TO USE THE DESIGNS, EVEN IF CISCO OR ITS SUPPLIERS HAVE
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
THE DESIGNS ARE SUBJECT TO CHANGE WITHOUT NOTICE. USERS ARE SOLELY
RESPONSIBLE FOR THEIR APPLICATION OF THE DESIGNS. THE DESIGNS DO NOT
CONSTITUTE THE TECHNICAL OR OTHER PROFESSIONAL ADVICE OF CISCO, ITS
SUPPLIERS OR PARTNERS. USERS SHOULD CONSULT THEIR OWN TECHNICAL ADVISORS
BEFORE IMPLEMENTING THE DESIGNS. RESULTS MAY VARY DEPENDING ON FACTORS
NOT TESTED BY CISCO.
CCDE, CCENT, Cisco Eos, Cisco Lumin, Cisco Nexus, Cisco StadiumVision, Cisco TelePresence, Cisco WebEx, the Cisco logo, DCE, and
Welcome to the Human Network are trademarks; Changing the Way We Work, Live, Play, and Learn and Cisco Store are service marks; and Access
Registrar, Aironet, AsyncOS, Bringing the Meeting To You, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, CCVP, Cisco, the Cisco
Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity,
Collaboration Without Limitation, EtherFast, EtherSwitch, Event Center, Fast Step, Follow Me Browsing, FormShare, GigaDrive, HomeLink,
Internet Quotient, IOS, iPhone, iQuick Study, IronPort, the IronPort logo, LightStream, Linksys, MediaTone, MeetingPlace, MeetingPlace Chime
Sound, MGX, Networkers, Networking Academy, Network Registrar, PCNow, PIX, PowerPanels, ProConnect, ScriptShare, SenderBase,
SMARTnet, Spectrum Expert, StackWise, The Fastest Way to Increase Your Internet Quotient, TransPath, WebEx, and the WebEx logo are
registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.
All other trademarks mentioned in this document or website are the property of their respective owners. The use of the word partner does not imply
a partnership relationship between Cisco and any other company. (0809R)
Solution Author
Joel W. King, CCIE No. 1846, Technical Leader, CMO ESE, Cisco Systems
Joel has over ten years experience at Cisco, having joined the company as a Network
Consulting Engineer dedicated to customer planning, design, and troubleshooting of
large enterprise customer networks. His focus was on large scale routing protocol
design.
Joel also served as an instructor at Harrisburg Area Community College and was a
Technical Architect at AMP Incorporated in the Global Information Technology division.
He has a BBA from Temple University where he graduated with honors.
IP Multicast A-6
Multicast Addressing A-7
Forwarding Multicast Traffic A-8
Glossary A-13
References A-18
This document summarizes high-level design recommendations and best practices for implementing IP
Video Surveillance on the enterprise network infrastructure. In some instances, existing network
equipment and topologies have the necessary configuration and performance characteristics to support
high-quality IP Video Surveillance. In other instances, network hardware might require upgrading or
reconfiguration to support increased bandwidth needed to support video. Quality-of-service (QoS)
techniques are important for any design because video has similar—in some instances, more
stringent—requirements than VoIP for loss, latency, and jitter.
IP Video Surveillance is a part of the Media Ready Network—a network initiative to incorporate all
forms of video on the enterprise network. IP-based Video Surveillance is one of the four components of
the Media Ready Network. These components consist of the following:
• TelePresence Network System
• Desktop Video
• Digital Media Systems
• IP Video Surveillance
This solution overview focuses on IP Video Surveillance while other overviews focus on the other three
solutions. Not all forms of video on the enterprise network have the same requirements, given the
diversity of transport techniques and user interfaces to the video feeds.
• Network—This component is the enterprise network—the Media Ready Network. The primary
focus of this document is to reference the existing design baselines of branch office, campus, WAN,
and Metro Area Networks (MANs) while building on this base of knowledge with IP Video
Surveillance requirements, best practices, and design recommendations.
The IP Video Surveillance component of the Media Ready Network is integrated with the Places in the
Network (PIN) architecture along with the companion video components of the Media Ready Network.
Supporting Designs
Implementing IP Video Surveillance on an existing network is designed to overlay non-disruptively on
other core Cisco PIN architecture design elements. These include the following:
• Quality of Service Design Considerations, page 1-2
• Branch PIN Design Considerations, page 1-2
• WAN/MAN PIN Design Considerations, page 1-3
• Campus PIN Design Considerations, page 1-4
• Data Center PIN Architecture, page 1-4
Each is summarized in the following subsections.
The Cisco Empowered Branch 4 marketing launch included the Cisco Video EVM-IPS-16A EVM
Module featuring analog-to-IP encoding capabilities for existing analog cameras and the Cisco
NME-VMSS Module that supports the Cisco Video Surveillance Manager (VSM) suite of software on
the network module. The EVM-IPS-16A module is not required if the deployment is with all IP
surveillance cameras.
Empowered Branch 4 also includes the Cisco 880 ISRs, which have sufficient performance
characteristics to support the various forms of video at a Small Office/Home Office (SOHO) location.
Many of the foundation architecture concepts are from the Business Ready Teleworker.
http://www.cisco.com/application/pdf/en/us/guest/netsol/ns171/c649/ccmigration_09186a008074f
24a.pdf
The teleworker or SOHO deployment is applicable for addressing remotely located or isolated wired-IP
cameras that in turn can be managed by a central or branch Video Surveillance Manager deployment.
Video Surveillance Operations Manager viewing stations—PCs running an Active-X-enabled web
browser—may also be located at extranet or remote locations to allow physical security staff or law
enforcement agencies to view live or archived video.
The Cisco Application Networking Services (ANS), such as Wide Area Application Services (WAAS),
are key elements given that the transport for IP Video Surveillance viewing stations is TCP-based.
Solution Description
In this section the, Cisco Video Surveillance solution is described at a functional-level given a
deployment of the components on standalone workstations and appliances. In addition, the functional
components are mapped to an implementation using the Cisco 2800/3800 ISR IP Video Surveillance
Network Modules. The Cisco Video Surveillance Manager software is a common code base that is ported
to run on the network module.
IP
IP Encoding
Server
IP Cameras VM Monitor
Analog Cameras
Headquarters OM Viewer
IP
IP
224640
IP Cameras
Operations Media
Manager Server
Solution Components
The Cisco Video Surveillance solution components are as follows:
• Cisco Video Surveillance Media Server—As the core component of the network-centric VSM, this
software manages, stores, and delivers video for the network-centric video surveillance product
portfolio.
• Cisco Video Surveillance Operations Manager—The Operations Manager authenticates and
manages access to video feeds. It is a centralized administration tool for management of Media
Servers, Virtual Matrixes, cameras, encoders, and viewers—and for viewing network-based video.
• Cisco Video Surveillance Virtual Matrix—The Virtual Matrix monitors video feeds in command
center and other 24-hour monitoring environments. It allows operators to control the video being
displayed on multiple local and remote monitors.
• Cisco Video Surveillance Encoding Server—This single-box solution encodes, distributes, manages,
and archives digital video feeds. Each server encodes up to 64 channels and provides up to 12 TB
of storage.
• Cisco Video Surveillance Storage System—This complementary component allows the Media
Server’s internal storage to be combined with direct-attached storage (DAS) and storage area
networks (SANs). The storage system allows video to be secured and accessed locally or remotely.
In this topology, physical security staff at the campus location, a third-party location at an Extranet site,
a separate branch, or even a remote teleworker location can configure, manage, and display the VMSS
at the branch location. Video requests and video streams are delivered to the viewer through Hypertext
Transfer Protocol (HTTP), which uses Transmission Control Protocol (TCP) port 80.
In Figure 1-2, the Video Surveillance Manager Software Suite components for both the Linux
deployment and the Cisco ISR IP Video Surveillance Network Module deployment are shown.
Operations
Manager
Encoding
Server
Media Virtual
Server Matrix
IP
IP
IP Cameras
PC Viewing
Stations
Analog Video Video
Gateway Management and D Encoder
Module Storage System A
225074
Integrated Services Routers Output Components
At the branch location, the Analog Video Gateway Module provides a similar function to the encoding
server. The Media Server and Operations Manager, along with storage, are supported on the VMSS
network module. The Virtual Matrix function is not supported on the Cisco ISR Video Surveillance
Modules. The IP cameras, analog cameras attached to dedicated IP encoders, and the PCs used as
viewing stations are common to both implementations.
Solution Benefits
Video surveillance is a key component of the safety and security procedures of many organizations. It
provides real-time monitoring of the environment, people, and assets, and provides a recorded archive
for investigative purposes. The benefits of Cisco’s Video Surveillance solution include the following:
• Provides access to video at any time from any network location within the constraints of available
bandwidth, allowing remote monitoring, investigation, and incident response through remote
physical security staff or law enforcement personnel.
• Uses existing investment in video surveillance and physical security equipment and technology.
• Network-wide Management—IP cameras and servers are monitored and managed over a single
network for fault, configuration, and centralized logging.
• Increased Availability—IP networks offer a high level of redundancy that can extend to different
physical locations.
• Scalability—The system can be expanded to new locations as business needs change.
• Digitized images can be transported and duplicated worldwide with no reduction in quality,
economically stored, and efficiently indexed and retrieved.
• Employs an open, standards-based infrastructure that enables the deployment and control of new
security applications from a variety of vendors.
• The Cisco Video Surveillance Solution relies on an IP network infrastructure to link all components,
providing high availability, QoS, performance routing, WAN optimization, and privacy of data
through IPSec encryption.
This chapter presents a high-level overview of an IP Video Surveillance deployment to give the reader a
quick reference as to the capabilities of this solution. The associated design guide will then go into detail
on planning, design, product selection, and implementation of an IP Video Surveillance deployment.
Deployment Model
A typical IP Video Surveillance deployment in an enterprise network consists of one or more campus
locations running Cisco Video Surveillance Media Server, Video Surveillance Operations Manager, and
Video Surveillance Virtual Matrix on an Intel-based Linux Enterprise Server operating system (Cisco
Physical Security Multi Services Platform or third party server). Deployment on a standalone hardware
is targeted at locations with more than 32 video surveillance cameras.
Branches that have a requirement for 1-to-32 video surveillance cameras can incorporate the Cisco ISR
Video Surveillance Modules to provide the Media Server and Operations Manager functionality in a
network module form factor. Optionally, an Analog Video Gateway Module can be installed to support
legacy analog cameras.
Branch offices and teleworker locations may view and administer the video surveillance system—as may
external organizations connected either through an Extranet or the public Internet through a global IP
connectivity and a web browser. Figure 2-1 illustrates the topology and application services deployed in
an enterprise-wide implementation of IP-based video surveillance.
D Encoder
A
Operations
Manager
Data Center Workstation
Media Server
Operations
Manager Branch
MAN/WAN
MPLS
WAN
Media
VPN
Server
IP
Encryption IP
Encoding
Server Internet
Virtual Teleworker
Matrix
IP
D IP
A
Encoder
225075
LE Agency
The branch locations are connected to the enterprise campus by WAN technologies, including Metro
Ethernet, private line, the public Internet, or a Layer-2 or Layer-3 MPLS VPN deployment. With a
Layer-2 MPLS deployments (Pseudowire), IP cameras may be Ethernet-attached to a remote switch and
have images transported through the carrier network and provisioned and managed by the Operations
Manager at either a branch location or a central location. Branches attached through a Layer-3 MPLS
network, leased line, or over the Internet can support viewing stations and IP cameras that can be
managed by either the campus or branch deployment.
Cisco technologies such as DMVPN can be overlaid onto the WAN transport to provide data privacy and
authentication by way of IPSec encryption. To ensure prioritization of voice, video, and mission critical
applications over the WAN, QoS is deployed on the WAN. Where multiple WAN links exist, PfR can be
enabled to provide intelligent path selection and the ability to route around brownouts and transient
failures, thereby enhancing what can be provided by traditional routing protocols such as Enhanced
Internal Gateway Routing Protocol (EIGRP).
The decision as to whether a specific environment should implement the Cisco ISR Video Surveillance
Modules at a branch location and archive data at the branch—or provision cameras off the campus
implementation of the Cisco Video Surveillance Manager—depends on the number of cameras, the
resolution, frame or bit rate of the camera, quality factors of the cameras, and the cost and availability
of bandwidth at the remote locations. In cases where implementing cameras is the only requirement, it
may be practical to transport the camera feeds across the WAN for archiving. However, in most
deployments, local storage is necessary due to the bandwidth required and the costs associated with this
bandwidth.
Solution Characteristics
Table 2-1 represents the general solution characteristics for an IP Video Surveillance deployment.
Solution Characteristics
An IP network infrastructure is required to link all components.
IP cameras are under the control of and feed Media Servers. The VSOM interface is the viewing station portal into the video
archives and live feeds.
The amount of disk storage for archiving camera feeds depends on factors that include the retention period requirements,
image resolution, image quality, format , and encoding. Storage requirements might be difficult to plan and predict.
Encryption through IPSec may be implemented between video endpoints to ensure data privacy, integrity, and authentication.
VRF-lite, VLANs, and other network virtualization techniques may be used to segment the video endpoints and servers.
Viewing stations are PCs running Internet Explorer (IE) with Active-X controls. The PC must have a sufficient CPU clock
rate to decode the video feeds.
Camera feeds traverse the IP network from the camera source to the Media Server either as Motion JPEG (MJPEG) or
MPEG-4.
MJPEG is typically transported via the TCP protocol. TCP provides guaranteed delivery of packets by requiring
acknowledgement by the receiver. Packets that are not acknowledged are retransmitted.
With MJPEG, each image standalone, so the images that are displayed are of good quality.
MPEG-4 video is typically transmitted over the User Datagram Protocol (UDP), Real-time Transport Protocol (RTP), or Real
Time Streaming Protocol (RTSP). UDP does not guarantee delivery and provides no facility for retransmission of lost packets.
UDP transport provides the option of IP Multicast (IPmc) delivery, however is not universally supported.
Deploying a video surveillance solution through a WAN environment presents challenges that are not typically seen in a LAN.
WAN bandwidth is most costly and the available transport types are dependent on the service provider offering available in
the geographic area.
This guide is published at a point in time where video surveillance systems are no longer solely
standalone, isolated, totally analog-based systems, nor fully integrated into the IP network and
converged with other enterprise subsystems. The long-term goal of the industry is to move out of the
targeted role of addressing the areas of loss prevention, regulatory compliance, and personal safety to
providing a business value to the enterprise.
To increase sales and deployments of IP video surveillance equipment, the goal must be to move from
targeting the physical security manager as the primary decision maker in the organization to the chief
financial office and IT/technology officer.
The true value in a converged physical security deployment is when the video data can be analyzed and
the result of that analysis provides actionable information on increasing sales or reducing costs or legal
liabilities to the enterprise. Increasing the return on investment (ROI) by lowering the costs of the video
surveillance infrastructure through IP-enabling video surveillance is an initial goal. The goal is to reach
the point where all aspects of the video surveillance system are IP-enabled and integrated on the IP
network before moving on to subsequent objectives.
This guide addresses how to integrate a video surveillance onto the enterprise IP network. This is not the
end goal, it is the first step. In this chapter, the various components and functions of an IP video
surveillance deployment is discussed. Then, at an overview level, the IP network infrastructure key
points of bandwidth, quality-of-service (QoS), security, network services, and virtualization are
reviewed. The chapter concludes with the prospects of network management, integration with ancillary
subsystems, and video data-mining and analytics.
Video Surveillance
Every video surveillance deployment is made up of cameras, video management software, servers, and
storage. The IP network is then the fifth element that ties all these components into a converged network
infrastructure. The relationship is shown in Figure 3-1.
Cisco Video
Surveillance IP
2500/4000 IP
Cameras
Cisco Video
Surveillance
Manager Video
Management Network
Software
medianet
Campus
Servers MetroE
(Dedicated WAN
Cisco Physical common off the Branch
Security shelf COTS)
Multiservices
Platforms Cisco Video
Storage
Surveillance
Storage System
227230
Fibre Channel
iSCSI
In very small deployments, the video management software, server, and storage components can be as
simple as a single PC, an IP camera, and a simple Ethernet hub. Very large deployments may encompass
thousands of IP cameras, hundreds of servers, and a storage subsystem capable of hundreds of terabytes
to a 1-petabyte (1024 TB). In the first case, the network requirements are trivial, in the second,
substantial.
The IP video surveillance application intersects with the network infrastructure by connecting endpoints,
IP cameras, workstations, servers and storage physically to the network. From a network planning and
design standpoint, it is important to understand the flow of both media and command and control
functions between the components. Video surveillance has two main baseline functions: live viewing and
real-time monitoring of video feeds, and retrieval and viewing of video as a post-event investigation.
Forensic video analysis is used to examine and analyze video for use in legal proceedings. Some video
may require one type or the other, or both. Traffic cameras may have the sole purpose of identifying
congestion and have no need for archive or retention of the video data. An enterprise video deployment
may have both live viewing of selected cameras with all cameras being archived. Other deployments may
be “headless,” meaning there is only archiving, but no living viewing.
The primary video surveillance functions are:
• Capture—Encoding video feeds for network transport
• Move—Camera feeds are moved from camera to one or more servers for processing
• Manage—Administration of cameras, setting up archives, configuring operator views, etc
• Archive—Storing real-time camera feeds to disk for later retrieval
• View—Viewing either live or archived feeds
These functions are shown in Figure 3-2.
IP
Capture
Move
Analytics Manage
Storage/iSCSI Archive
View
227231
Monitoring Post Event Investigation
Each of the above functions can intersect with the underlying IP network and, to properly design and
implement the network, the requirements of the video surveillance application must be understood. To
capture a video feed, the IP camera must be configured for resolution, frame rate, and server IP address;
at least the frame rate and resolution could change at times throughout the day. Therefore, simply
capturing data requires some control plane network traffic as well as keeping the clock of the camera in
synch with a universal clock through protocols such as Network Time Protocol (NTP). While the
bandwidth requirements of the function is small, the reliability and availability requirement is high.
Moving video feeds introduce a bandwidth load on the network. The cameras may be LAN- or
WAN-attached. Understanding the collective bandwidth from a deployment of hundreds or thousands of
cameras requires an understanding of the load placed upon the network. These media streams must also
be protected against packet loss.
Managing the system also influences the network bandwidth requirements. If there is a requirement to
schedule a backup of an archive, sufficient bandwidth must be available for this function to complete.
The archive backup process is typically between a remote Media Server and a central Media Server and
the limited bandwidth of the WAN must be considered.
Archiving the data through a directly attached point-to-point Fibre Channel between server and storage
unit is very straight forward, but what if Fibre Channel switches are deployed or iSCSI?
The viewing function shares similar network requirements as the move function, because the client
workstation is retrieving the same video feed from the server as was transported from the camera to the
server originally.
IP Network Infrastructure
The areas of bandwidth, QoS, security, network services, and virtualization are key elements of
provisioning the enterprise IP network to support video.
Bandwidth
The bandwidth requirements for all video, but video surveillance in particular, is substantial compared
to VoIP. Common codecs used in VoIP deployments, (G.711, G.729,G.726) use between 8 and 64Kbps
for the voice encoding. A packet capture from a Cisco 2500 Series IP Camera configured at a CBR target
of 1M for the MPEG4 feed with audio-enabled on the camera. Control traffic (HTTP/RTSP) is also
captured. The relationship between the amount of audio, video, and control plane is obvious. See
Figure 3-3.
The bandwidth requirement for the video media stream is orders of magnitude higher than Audio (VoIP)
and Signaling (RTSP) for video in the enterprise network.
While provisioning for this bandwidth requirement is a key element in planning for video in the
enterprise network, there are other network requirements to be considered. For example, will the video
traffic be segmented on both the LAN and WAN from other user traffic either logically or physically? Is
the video deployment an overlay on an existing network infrastructure or is a entirely new deployment?
Is IPSec encryption currently implemented? These factors must also be taken into consideration along
with the bandwidth requirements.
QoS
QoS is a key element to managing network congestion during periods where bandwidth is constrained.
QoS, however, does not eliminate bandwidth constraints; it manages the access to bandwidth by
competing applications through prioritizing one application over another. QoS manages unfairness.
Because the video quality for MPEG-4 and H.264 is highly dependent on little or no packet loss, IP video
surveillance traffic must not be dropped by the enterprise QoS policy. Motion JPEG-based video does
not suffer a degradation in the image with packet loss due to lack of bandwidth, but the smoothness of
motion is compromised. Several frames or even several seconds of video may be missing with no
indication of the loss. Because many video surveillance deployments are ‘headless’, and first time the
video is viewed may be days or weeks after capture. If the quality is poor due to packet loss in the
network, there is no recourse and the video data is worthless.
Security
Security focuses on controlling what users have access to a resource while in transit, at the originating
node, or when it is processed or stored on a server. One aspect of IP networking is the any-to-any
connectivity between networks and users. This strength is also a flaw. There is a certain population of
users on the network that must have access to the video surveillance system, but many cannot be trusted
to access this data. Video surveillance data is particularly sensitive because access to the system by
unscrupulous individuals may expose the enterprise to financial loss and compromise personal safety.
This guide illustrates transporting video traffic over LAN and WAN with IP security encryption and also
implements administrative controls on who has access to the network.
Network Services
One advantage of the any-to-any aspect of IP networks is access to resources and systems. NTP and
Syslog messages are examples of network services that IP cameras can request data from and send data
to, which are either not available with analog-based systems or are more costly to implement.
Additionally, local utilities like Power-over-Ethernet (PoE) and Cisco Discovery Protocol (CDP) both
lower the cost of installation and facilitate troubleshooting.
Virtualization
Through virtualization techniques, the routers and switches can be configured to provide access to a
common network infrastructure while maintaining a separate address space, broadcast domain, and
separation of one user group from another. IP video surveillance is one application that is a prime
candidate for virtualization as the end-user population is very small, the endpoints (IP cameras) may be
distributed on a large number of routers and switches in the enterprise, and the data (video feeds) contain
information that may be sensitive. This guide provides a detailed discussion of implementing
virtualization of both routers and switches.
Network Management
Network management applications and protocols are discussed under the section on network services
where IP service level agreements (IP SLAs), Syslog, CDP, and Simple Network Management Protocol
(SNMP) are shown in relation to video surveillance deployments. Enterprise networks vary in degree of
sophistication and maturity of network management. IP video surveillance, however, is one application
that can greatly benefit from a proactive approach to the Fault, Configuration, Administration,
Performance, and Security (FCAPS) model. For example, in headless deployments (video feeds that are
not actively monitored by a person), the availability and network performance is critical to ensuring
quality video recordings. The network management platforms and processes of the enterprise can help
the physical security manager in detecting and reacting to an endpoint or network transport issues that
could impact video quality.
This chapter introduces the concepts of why an enterprise network should consider migrating from a
standalone analog network to a converged IP network supporting voice, video, and data. The following
topics are addressed:
• Introduction to the concepts of video resolutions, codecs, aspect ratios, frame rates and requirements
for camera placement to achieve the required number of pixels per-foot to provide sufficient video
quality to meet the needs of the physical security manager.
• Network deployment models and the IP transports used by IP video surveillance cameras.
• The network requirements, video traffic flows between endpoints, bandwidth requirements are
discussed.
• A design checklist to help the physical security and network manager achieve the goal of integrating
IP video surveillance on the IP network.
• A case study for implementing IP video surveillance on a campus deployment.
Not only the wiring for media transport can be eliminated, but also the cabling for electrical power. As
is the case with VoIP in the enterprise space, where the IP phone uses PoE, so does many fixed
installation IP cameras. While power to some camera deployments continue to be a requirement
(Pan-Tilt-Zoom housings, wireless cameras and cameras that require fibre connectivity due to distance),
PoE is a substantial cost savings.
IP video surveillance cameras, once connected to the network, may be remotely configured and managed
from a central command center. The installing technician must have a laptop to focus the lens and adjust
the viewpoint of the camera, but following this initial installation, the camera configuration may be
completed by a technician in a central, rather than local, facility.
Barriers to Success
While the advantages of an IP-based system are considerable, there are some barriers to success. They
mainly revolve around the human element—job responsibilities, training, and education. Typically, the
physical security manager and the network manager have no overlapping job responsibilities and
therefore have little need to interact with each other. The physical security manager has job
responsibilities targeted at loss prevention, employee and customer/visitor safety, security and crime
prevention. Because of this, the physical security manager is more confident with a dedicated, reliable,
physically separate cable plant.
Many installations of physical security cameras and the accompanying components are solely or
partially implemented by value added resellers (VARs) who are specialists in their field, but not yet
experts in IP networking. The VAR must become more fluent in internetworking and the network
manager must understand the requirements of the physical security processes and applications.
The key elements of video surveillance is the three Rs: resolution, retention, and reliability. For an IP
video surveillance deployment to be a success on the IP network, the reliability element must have
careful attention by the network manager for the physical security manager to be successful.
Video Resolutions
Resolution, one of the three Rs of video surveillance, directly influences the amount of bandwidth
consumed by the video surveillance traffic. Image quality (a function of the resolution) and frame rate
are functions of the amount of bandwidth required. As image quality and frame rate increase, so does
bandwidth requirements.
Note that the linear dimensions of 4CIF are twice as big as CIF. As a result, the screen area for 4CIF is
four times that of CIF with higher bandwidth and storage requirements. The 4CIF and D1 resolutions
are almost identical and sometimes the terms are used interchangeably.
Note IP camera vendors may use different video resolutions. The Cisco Video Surveillance Manager solution
supports the format delivered by the camera.
While image quality is influenced by the resolution configured on the camera, the quality of the lens,
sharpness of focus, and lighting conditions also come into play. For example, harshly lighted areas may
not offer a well-defined image, even if the resolution is very high. Bright areas may be washed out and
shadows may offer little detail. Cameras that offer wide dynamic range processing, an algorithm that
samples the image several times with differing exposure settings and provides more detail to the very
bright and dark areas, can offer a more detailed image.
As a best practice, do not assume the camera resolution is everything in regards to image quality. For a
camera to operate in a day-night environment, (the absence of light is zero lux), the night mode must be
sensitive to the infrared spectrum. It is highly recommended to conduct tests or pilot installations before
buying large quantities of any model of camera.
Tip Some cameras rated as megapixel cameras in Motion JPEG only offer 4CIF resolution when configured
for MPEG-4.
• MPEG-1 and MPEG-2 formats are Discrete Cosine Transform-based with predictive frames and
scalar quantization for additional compression. They are widely implemented, and MPEG-2 is still
in common use on DVD and in most digital video broadcasting systems. Both formats consume a
higher level of bandwidth for a comparable quality level than MPEG-4. These formats are not
typically used in IP video surveillance camera deployments.
• MPEG-4 introduced object-based encoding, which handles motion prediction by defining objects
within the field of view. MPEG-4 offers an excellent quality level relative to network bandwidth and
storage requirements. MPEG-4 is commonly deployed in IP video surveillance but will be replaced
by H.264 as it becomes available. MPEG-4 may continue to be used for standard definition cameras.
• H.264 is a technically equivalent standard to MPEG-4 part 10, and is also referred to as Advanced
Video Codec (AVC). This emerging new standard offers the potential for greater compression and
higher quality than existing compression technologies. It is estimated that the bandwidth savings
when using H.264 is at least 25 percent over the same configuration with MPEG-4. The bandwidth
savings associated with H.264 is important for high definition and megapixel camera deployments.
MJPEG
An MJPEG codec transmits video as a sequence of Joint Photographic Experts Group (JPEG) encoded
images. Each image stands alone without the use of any predictive compression between frames. MJPEG
is less computation-intensive than predictive codecs such as MPEG-4, so can be implemented with good
performance on less expensive hardware. MJPEG can easily be recorded at a reduced frame rate by only
sampling a subset of a live stream. For example, storing every third frame of a 30-frame per second video
stream will result in a recorded archive at 10 frames per second.
MJPEG has a relatively high bandwidth requirement compared to MPEG-4. A 640x480 VGA resolution
stream running at 30 frames per second can easily consume 5 to 10 Mbps. The bandwidth required is a
function of the complexity of the image, in conjunction with tuning parameters that control the level of
compression. Higher levels of compression reduce the bandwidth requirement but also reduce the quality
of the decoded image. Since there is no predictive encoding between frames, the amount of motion or
change in the image over time has no impact on bandwidth consumption.
MPEG-4/H.264
An MPEG-4 codec uses prediction algorithms to achieve higher levels of compression than MJPEG
while preserving image quality. Periodic video frames called I-frames are transmitted as complete,
standalone JPEG images similar to an MJPEG frame and are used as a reference point for the predictive
frames. The remaining video frames (P-frames) contain only information that has changed since the
previous frame.
To achieve compression, MPEG-4 relies on the following types of video frames:
• I-frames (intraframes, independently decodable)—These frames are also referred to as key frames
and contain all of the data that is required to display an image in a single frame.
• P-frames (predictive or predicted frames)—This frame type contains only image data that has
changed from the previous frame.
• B-frames (bi-directional predictive frames)—This frame type can reference data from both
preceding frames and future frames. Referencing of future frames requires frame reordering within
the codec.
The use of P-frames and B-frames within a video stream can drastically reduce the consumption of
bandwidth compared to sending full image information in each frame. However, the resulting variance
of the video frames’ size contributes to the fluctuation in the bandwidth that a given stream uses. This
is the nature of most codecs because the amount of compression that can be achieved varies greatly with
the nature of the video source.
Pan-Tilt-Zoom (PTZ)
The Cisco Video Surveillance Manager solution supports the configuration of PTZ cameras connected
to encoders or as IP cameras. In order to support PTZ connectivity, the encoder should be able to connect
to the camera through a serial interface. The Video Surveillance Manager solution supports the following
PTZ protocols:
• Bosch
• Cohu
• J2 Vision
• Pelco D
• Pelco P
Figure 4-1 shows how an analog camera can be connected to an IP encoder to convert its video feed to
an IP video format. The encoder also connects through a serial cable to the analog camera. When the
OM viewer requests PTZ control through the joystick, the Media Server intercepts the request and
communicates the request to the encoder. Once the request is received by the encoder, a serial
communication takes place between the encoder and the analog camera.
D
PTZ A
Media Server
Encoder
IP
D
PTZ A
Encoder
Analog Video
224663
Serial PTZ
PTZ Request OM Viewer Joystick
Aspect Ratio
The aspect ratio is the relationship between the number of pixels in the horizontal and vertical image
dimensions. A 4:3 (1.33:1) aspect ratio is universal for standard definition cameras. For HDTV formats,
16:9 (1.78:1) is universal. In video surveillance deployments, the HDTV aspect ratio is more
advantageous because the pixels at the top and bottom of the image are generally of less importance than
having a wide field of view. In other words, the width of the image is more important than the height of
the image. Capturing, encoding, and transporting bits that are of little value is a waste of bandwidth and
disk space. In some instances, a single HDTV format video camera may be able to replace two standard
definition cameras.
Camera Placement
Camera placement can be characterized by either overview or detail view. The camera placement
influences the resolution, frame rate and codec in use.
Overview
A camera with an overview scene is monitoring a large area such as a parking lot or a traffic camera that
is viewing vehicle congestion or the number of cars parked in the lot. Because details are not important,
standard definition cameras using a wide-angle lens may be sufficient. The preferred codec may be
MPEG-4 with a relatively low frame rate, 1-5 frames per second. Figure 4-2 shows an example of an
overview scene.
AbbeyCam is a streaming video of the Iowa side of the I-74 bridge as seen from the Abbey Hotel in Bettendorf
Overview cameras may be supplemented with a detail view camera focused on a key area of interest or
by a PTZ camera to provide real-time analysis of areas of interest at a higher resolution.
Detail View
The detail view placement is targeted at observing a specific area of interest at a higher resolution than
the overview. Detail view is used for Point-of-sale transactions and face or license plate recognition. The
detail view may have a PTZ capability, or the camera may be close to the subject area or have a long
focal length lens. Megapixel or HD cameras may be deployed to provide a sufficient number of pixels
per-foot to accurately represent the subject. Figure 4-3 is an example of a detail view, the camera
positioned to identify a subject passing through a confined area.
The positioning of a camera for detail view is a function of the number of pixels per-foot required for
the application.
As shown in Figure 4-4, the video surveillance image is subject to uneven lighting, the subject is
standing near a large window of a lab environment. There is little light from the internal space with the
natural light entering from the side and rear in this scene. This image is from an analog camera that does
not include a wide-dynamic range processing that would improve the image quality in this deployment.
This illustrates the point that the number of pixels alone does not guarantee a high quality image.
There is a camera behind each teller station, a camera on the main entrance (both inside and outside),
and two cameras in the inner office area focused on the lobby and half doorway leading into the manager
office areas. Additionally, the parking lot area, side, front, and rear of the branch as well as any exterior
ATM would need be covered. This small location may easily require 10 to 16 IP cameras. The Cisco
Video Management and Storage System (VMSS) Network Module for the ISR router is targeted at a 16
to 32 camera deployment any may be implemented in this branch location.
Larger facilities require more cameras per location. It is not uncommon for a large retail store, home
center, or warehouse retailer to need 100 to 200 IP cameras per location. Public school deployments may
need 80 to 100 cameras per building.
Tip One advantage of deploying high definition cameras over standard definition is fewer cameras may be
required to cover an area of interest with a similar number of pixels per foot.
Frame Rates
As image quality and frame rate increase, so does bandwidth requirements. The frame rate selected must
meet the business requirements, but it does not need to be higher than what is required and should be
considered carefully as frame rate influences both bandwidth and storage requirements.
Motion pictures are captured at 24 frames per second (fps). The human eye/brain sees images captured
at 24 fps as fluid motion. Televisions use 25 fps (PAL) or 30 fps (NTSC) as does analog video cameras.
These full motion rates are not needed for all video surveillance applications and in most applications
less than 12 to 15 fps is sufficient.
The following are some industry guidelines:
• Nevada Gaming Commission (NGC) standards for casinos—30 fps
• Cash register, teller stations—12 to 15 fps
• School or office hallways —5 fps
• Parking lots, traffic cameras, overview scenes —1 to 3 fps
• Sports Stadiums on non-event days, less than 1 fps
Progressive Scanning
Analog cameras capture images using an interlaced scanning method, odd and even scan lines are done
alternately. There is approximately 17 ms delay between the scanning of the odd and even lines making
up the entire image. Because of this slight delay between scan passes, objects that are moving in the
frame may appear blurred while stationary objects are sharp. Most IP cameras use a progressive scan
that is not subject to this problem. Everything being equal, a progressive scan image has less motion
blurring than an interlace scanned image.
IP Transport
IP cameras and encoders communicate with the Media Server in different ways, depending on the
manufacturer. Some edge devices may support only MJPEG over TCP, while others may also support
MPEG-4 over UDP.
TCP
MJPEG is typically transported through TCP. TCP provides guaranteed delivery of packets by requiring
acknowledgement by the receiver. Packets that are not acknowledged will be retransmitted. The
retransmission of TCP can be beneficial for slightly congested network or networks with some level of
inherent packet loss such as a wireless transport. Live video rendering at the receiving end may appear
to stall or be choppy when packets are retransmitted, but with the use of MJPEG each image stands alone
so the images that are displayed are typically of good quality.
UDP/RTP
MPEG-4/H.264 video is typically transmitted over UDP or Real-time Transport Protocol (RTP). UDP
does not guarantee delivery and provides no facility for retransmission of lost packets. RTP/UDP
transport is most suitable for networks with very little packet loss and bandwidth that is guaranteed
through QoS mechanisms. MPEG-4 over RTP/UDP is relatively intolerant to packet loss; if there is loss
in the stream, there will typically be visible artifacts and degradation of quality in the decoded images.
UDP transport does provide the option of IP multicast delivery, where a single stream may be received
by multiple endpoints. In an IP multicast configuration, the internetworking devices handle replication
of packets for multiple recipients. This reduces the processing load on the video encoder or IP camera
and can also reduce bandwidth consumption on the network.
Some IP cameras and encoders also provide for TCP transport of MPEG-4. TCP encapsulation can be
beneficial for networks with inherent packet loss. TCP may be useful especially for fixed cameras and
streams that are only being recorded and not typically viewed live. TCP transport induces a little more
latency in the transport due to the required packet acknowledgements, so may not be a desirable
configuration for use with a PTZ controlled camera.
IP
IP Camera
Media Virtual
Server Matrix
Operations
Manager IP
OM Viewer VM Viewer
224661
TCP Port 1066
TCP Port 8086
IP Unicast
Applications that rely on unicast transmissions send a copy of each packet between one source address
and one destination host address. Unicast is simple to implement but hard to scale if the number of
sessions is large. Since the same information has to be carried multiple times, the impact on network
bandwidth requirements may be significant.
The communication between the Media Server and the viewers is always through IP unicast, making the
Media Server responsible for sending a single stream to each viewer. The example in Figure 4-7 shows
five viewers requesting a single video stream from the Media Server. Assuming a single 1Mbps video
feed, the bandwidth requirements are noted throughout each network link.
Router Router
2 Mbps 2 Mbps
IP
Router
4 Mbps
IP
1 Mbps 1 Mbps
OM Viewer
Video
Stream 5 Mbps
224656
Media Server
Note The Media Server only supports IP unicast between the Media Server and the viewers.
Campus Networks
An infrastructure that supports physical security applications requires several features from a traditional
campus design. A hierarchical campus design approach has been widely tested, deployed, and
documented. This section provides a high-level overview and highlights some of the design requirements
that may apply to a video surveillance solution. For a more detailed review of Campus designs refer to
the Campus Design documents in References, page A-18.
A traditional campus design should provide the following:
• High availability—Avoid single points of failure and provide fast and predictable convergence
times.
• Scalability—Support the addition of new services without major infrastructure changes.
• Simplicity—Ease of management with predictable failover and traffic paths.
A highly available network is a network that provides connectivity at all times. As applications have
become more critical, the network has become significantly more important to businesses. A network
design should provide a level of redundancy where no points of failure exist in critical hardware
components. This design can be achieved by deploying redundant hardware (processors, line cards, and
links) and by allowing hardware to be swapped without interrupting the operation of devices.
The enterprise campus network shown in Figure 4-8 is a typical campus network. It provides
connectivity to several environments such as IDFs, secondary buildings, data centers, and wide area
sites. An Intermediate Distribution Frame (IDF) is the cable infrastructure used for interconnecting end
user devices to the Main Distribution Frame (MDF) or other buildings and is typically located at a
building wiring closet.
Building Building
IDF IDF
MDF
IDF
WAN
224664
Quality-of-service (QoS) is critical in a converged environment where voice, video, and data traverse the
same network infrastructure. Video surveillance traffic is sensitive to packet loss, delay, and delay
variation (jitter) in the network. Cisco switches and routers provide the QoS features that are required to
protect critical network applications from these effects.
Hierarchical Design
The goal of a campus design is to provide highly available and modular connectivity by separating
buildings, floors, and servers into smaller groups. This multilayer approach combines Layer 2 switching
(based on MAC addresses) and Layer 3 switching or routing (based on IP address) capabilities to achieve
a robust, highly available campus network. This design helps reduce failure domains by providing
appropriate redundancy and reducing possible loops or broadcast storms.
With its modular approach, the hierarchical design has proven to be the most effective in a campus
environment. The following are the primary layers of a hierarchical campus design:
• Core layer—Provides high-speed transport between distribution-layer devices and core resources.
The network’s backbone.
• Distribution layer—Implements policies and provides connectivity to wiring closets. This layer
provides first-hop redundancy such as Hot Standby Router Protocol (HSRP) and Gateway Load
Balancing Protocol (GLBP).
• Access layer—User and workgroup access to the network. Security and QoS can be defined at this
layer and propagated to the higher layers.
Figure 4-9 shows a typical campus design with the three main layers.
Layer 2
MDF Core Layer 3
IDF Distribution
Access
224665
In smaller environments, it is typical to collapse the distribution and core layers into a single layer.
Service
Provider
Headquarters Network Remote Branch
224666
Deploying a video surveillance solution through a WAN environment presents challenges that are not
typically seen in a LAN. In a LAN environment it is common to see 1 Gbps and 10 Gbps of bandwidth,
while in a WAN environment, most connections are less than 10 Mbps; many remote connections operate
on a single T1 (1.544 Mbps) or less.
These inherent bandwidth constraints require careful evaluation of the placement of cameras and Media
Servers and how many viewers can be supported at remote sites simultaneously. By using child proxies,
bandwidth requirements can be reduced to transport video streams across WAN connections.
The placement of recording devices also becomes important. The video may be streamed to a central site
using lower frame rates or resolution, but another attractive alternative is to deploy Media Servers at the
remote sites and stream the traffic using the LAN connectivity within the remote site.
Table 4-3 and Table 4-4 show typical links that are offered by service providers.
A point-to-point or leased line is a link from a primary site to a remote site using a connection through
a carrier network. The link is considered private and is used exclusively by the customer. The circuit
usually is priced based on the distance and bandwidth requirements of the connected sites.
Technologies such as Multilink PPP allow several links to be bundled to appear as a single link to upper
routing protocols. In this configuration, several links can aggregate their bandwidth and be managed
with only one network address. Because video surveillance traffic requirements tend to be larger than
other IP voice and data applications, this feature is attractive for video surveillance applications.
Hub-and-spoke, also known as star topology, relies on a central site router that acts as the connection for
other remote sites. Frame Relay uses hub-and-spoke topology predominantly due to its cost benefits, but
other technologies, such as MPLS, have mostly displaced Frame Relay.
Site B
Video Stream
1 Mbps 4 Mbps
IP
IP
4 Mbps
Site A
3 Mbps 2 Mbps
Media Server
2 Mbps 3 Mbps 2 Mbps
IP
1 Mbps
Camera 2 1 2 2
1
2 1 1
224657
Site B Site C
IP
IP
Video
OM Viewer OM Viewer OM Viewer Streams
IP
2 Mbps Media Server B
Camera B Router
Router
IP
Video Site A
Stream
Router
IP
OM Viewer
Video
Stream
224668
Media Server A
A single Operations Manager and a single Virtual Matrix are adequate to support this scenario. Since the
cameras are located on Site C and Site D, they are able to serve the local OM Viewers at those sites.
The Media Server on Site A can also be configured with child feeds that come from the remote Media
Servers and provide those feeds locally to viewers and monitors on Site A.
Site B Site C
IP
IP
Video
VM Viewer VM Viewer OM Viewer Streams
Media Server B
Router
Router
Site D
IP
OM Viewer IP
IP
IP
IP
Site A
Video
Router Streams
Router
Storage
224669
Media Server
OM Viewer Server
VM Viewer
Media Server
Operations Manager
Virtual Matrix
Router Router
Video Site C
Streams
IP IP
IP
Media Server
Headquarters
Router
Router
Video Site D
Streams
IP
IP
OM Viewer
Operations Manager
Media Server
224670
Router
Virtual Matrix VM Viewer
Storage
Media Server VM Viewer
Server
Network Requirements
This section provides an overview about the branch and campus network requirements to support IP
video surveillance.
Power-over-Ethernet (PoE)
The ability to provide electrical power to an IP camera is an important aspect of IP video surveillance
that is not available in analog deployments. Analog deployments require some external power supply to
meet the power requirements of the cameras. IP cameras with external PTZ housings, outdoor-rated IP
cameras, wireless and IP cameras that must use fibre LAN connections due to distance limitations of
copper Ethernet wiring may continue to required an external power supply. However, PoE is an
important cost-savings factor for IP video surveillance.
Storage Requirements
In general, the recommendation is to store data as close to the source as practical. This is especially true
of branch location deployments. By storing video archives locally, IP video surveillance may be
deployed to locations with traditional WAN links that would otherwise not have enough bandwidth to
transport the archives to a central campus/data center facility. The WAN, however, may still have
sufficient bandwidth to transport or view video clips to aid in investigations or other forensic analysis.
By storing locally and only transporting the small amount of video surveillance data that is needed
centrally, video surveillance can be network-enabled today and tied into other BMS and analytics
solutions that can benefit the business.
IP Addressing Requirements
If the network manager plans on implementing some segmentation and path isolation over the
LAN/WAN by using VRF-Lite and VLANS, the IP addressing scheme may have greater flexibility than
if the video surveillance networks are routed in the global routing table. However, the general
recommendations for addressing IP video surveillance devices are as follows:
• Allocate an addressing scheme distinct from the end-user address space at the branch locations.
• Allocate network addressing so that IP cameras, servers, encoders, workstations, and any building
management (BM) devices can be allocated from the address space at the remote locations.
• Allocate addressing to facilitate summarization of network advertisements to the core.
• Allocate addressing so that one network advertisement can encompass the entire address space for
physical security (and building management) devices.
• Configure a loopback address on remote routers from the physical security address space for NTP
and other management functions.
Tip Because the IP cameras are using static IP addresses, give careful attention to IP addressing deployed as
reallocating IP addressing is more time consuming than when all end nodes use dynamically assigned IP
addresses from a DHCP server.
QoS
QoS should be implemented on both LAN and WAN and should align with the end-to-end QoS policy
of the enterprise network. The “Configuring Quality-of-Service (QoS) for IP Video Surveillance”
section on page 6-21 provides useful information as a baseline for enabling QoS on the network. The
physical security manager and the network manger must work together to understand the bandwidth
requirements of the video surveillance implementation and once sufficient LAN and WAN bandwidth is
provisioned, enable QoS so both media and control plane traffic is protected during congestion.
Performance Routing
Performance Routing (PfR) is a Cisco IOS feature that extends and enhances the capabilities of
traditional routing protocols to allow for rerouting around path brownouts or temporary blackouts,
packet loss, or links that are least preferred due to latency. The technology uses NetFlow and IP SLA
probes to determine the characteristics of equal-cost links and select the best link, or a link that meets
the stated performance characteristics. PfR can also be more effective at load sharing than IP CEF,
because it takes into consideration the interface utilization, which CEF does not.
The “Performance Routing (PfR) Integration” section on page 6-50 not only uses this feature to optimize
video feeds, it also provides insight on how latency, jitter, and packet loss influences video quality.
Redundancy
Wherever possible, the path between IP cameras and the target Media Server should include as much
redundancy as practical. In the “Campus Implementation Case Study” section on page 4-31, the dual
uplinks from the access switches to the distribution layer switches and between distribution and core
switches have at least two paths. In the “Performance Routing (PfR) Integration” section on page 6-50
and in the “Virtualization, Isolation and Encryption of IP Video Surveillance” section on page 6-87, dual
LAN/WAN links are deployed. Firewalls should be deployed in an active-standby failover configuration.
Where multiple IP cameras are covering a critical viewing area, connect cameras with the overlapping
vantage points to separate access-layer switches. If the access-layer switch becomes unserviceable an
alternate image from the overlapping camera may be usable.
A key element of redundancy is fault management. While having an alternate path provides availability,
the network management services in the enterprise must be able to detect failures and initiate remedial
action in a timely manner.
VLANs
As a best practice, where possible, segregate IP cameras, servers, and viewing stations on a VLAN
separate from other devices on the network. Combined with allocating a separate IP addressing scheme
for these physical security and building management endpoints, this facilitates controlling access from
other users in the global routing table. Should the enterprise decide to implement end-to-end path
isolation and segmentation, these VLANs can then easily be mapped to a VRF-enabled interface on the
supporting router.
Media Server
R
eq
ue
St
st
re
s
am
s
Video
Streams
IP
IP IP Viewers
IP
224647
IP Cameras
For archive viewing, the Media Server receives video from the IP camera or encoder continuously (as
configured per the archive settings) and only sends video streams to the viewer when requested.
In environments with remote branch locations, this becomes very efficient since traffic only needs to
traverse the network when requested by remote viewers. Branch office traffic remains localized and does
not have to traverse wide area connections unless is requested by users other users.
Video requests and video streams are delivered to the viewer using HTTP traffic (TCP port 80).
Media Server
4 5 3 6
IP IP
IP Camera OM Viewer
1
2
Interface Updates
Monitors and Views
224648
Operations Manager
When the OM Viewer requests a video stream, the following steps occur as shown in Figure 4-16:
Step 1 The user accesses the Operations Manager screen through an ActiveX web browser. This traffic can be
over TCP port 80 (HTTP) or 443 (HTTPS).
Step 2 The OM Viewer receives a complete list of resources, such as camera feeds, views, and monitors. This
information is sent each time the client starts or switches to the operator view. Since the OM Viewer has
a complete list of resources, the operator may choose to view live or recorded video from any camera
feed or predefined views.
Step 3 The OM Viewers selects a video feed that is served by the Media Server and contacts the Media Server
directly over TCP port 80.
Step 4 The Media Server is the direct proxy for the IP camera and requests the video stream from the camera.
This communication can be TCP, UDP, or multicast as configured by the Operations Manager.
Step 5 The camera provides the video stream to the Media Server.
Step 6 The Media Server replicates the requested video feed to the OM Viewer using IP unicast over TCP port
80. The connection remains active until the OM Viewer selects a different video feed.
If another OM Viewer requests the video from the same IP Camera, the Media Server simply replicates
the video stream as requested, and no additional requests are made to the camera.
Media Server
Video 6
Streams
IP
3
IP
IP
IP
OM Viewer
1
224652
New View Operations Manager Virtual Matrix
When requesting a new view for the Virtual Matrix monitor, the following steps occur as shown in
Figure 4-17.
Step 1 The OM Viewer selects a new view to be displayed by the Virtual Matrix monitor. The request is received
by the Operations Manager.
Step 2 The Operations Manager sends the layout update to the Virtual Matrix server.
Step 3 The Virtual Matrix server pushes the new layout to the Virtual Matrix monitor.
Step 4 Once the Virtual Matrix monitor learns the new layout and the cameras to display, it contacts the
appropriate Media Servers to request video streams.
Step 5 Video streams are sent from the Media Server directly to the Virtual Matrix monitor.
Step 6 The Virtual Matrix server sends a keepalive message to the Virtual Matrix monitor every three minutes
to confirm that the display is still active.
Bandwidth Requirements
Compared to VoIP, video consumes considerably more network bandwidth. In the LAN environment,
bandwidth is relatively inexpensive and in most cases, a LAN infrastructure that is supporting VoIP and
data can also support IP video surveillance. In the “Video Traffic Flows” section on page 4-23, the
sources and sinks of video data were examined. In this section, some bandwidth estimates are shown as
well as tools to calculate bandwidth requirements. The two legs of interest are from the cameras to the
Media Server and from the Media Server to the viewing station. The bandwidth from the control plane
is trivial compared to the bandwidth consumed by the media streams. For capacity planning purposes the
control plane traffic is of little significance; however, from a QoS perspective it is must be accurately
marked and queued to prevent the drop of this traffic.
Tip There is one exception. If the camera has been configured by the web interface to enable IP
multicast and the configuration is complete including a multicast address, the camera will stream
traffic continuously to the multicast address. The router will not forward the multicast traffic
past the LAN segment unless a remote node subscribes to the group (multicast) address.
The output rate from an IP camera is dependent on the configured values for the video feed, including
codec (MJPEG, MPEG-4, H.264) resolution, frame rate or bit rate, and any applicable quality factors.
These configuration parameters are controlled by the physical security manager and are determined by
the operational objective for implementing the camera. As resolution and frame rate increase, so does
the bandwidth.
For high-level planning purposes, Table 4-5 can be used for estimating network bandwidth requirements
per camera.
Both camera series can operate at higher than the estimated bitrates shown above, however these bitrates
should provide acceptable video quality. Consult the appropriate camera user’s guide for the maximum
bitrate and other parameters. An important part of the planning process is a pilot installation of IP
cameras to gauge their suitability for the intended deployment. From this pilot, more specific data points
can be determined.
One technique for determining the amount of bandwidth required for a particular model of camera is to
use a laptop and connect to the API of the camera. View the video feed directly from the camera using
the CODEC, resolution and frame/bit rate of interest. In Microsoft Windows, the task manager (CTL +
ALT + DEL and select Task manager from the dialog box displayed) can be used to view the image in
real-time. Under the Networking tab, the network utilization and link speed of the interface can be used
to estimate the bandwidth requirements of the video feed.
The “Access-layer Switch Commands” section on page A-3 demonstrates how to determine the output
data rate from an IP camera when connected to a switch. It is useful for both troubleshooting and for
bandwidth estimates.
The codec and bit rate/frame per second parameters are shown next to the respective video image on the
operator panel in Figure 4-18. There are two cameras that have a resolution of over 1 megapixel while
the remainder are standard definition cameras at D1 or 4CIF resolution.
On the operator view shown, one video image is the predominate image on the screen, covering a larger
area than the seven other camera feeds. The feeds are resized on the client-viewing station, the data rate
from Media Server to viewing station is not changed or adjusted by the media server based on the
resolution on the screen.
Also, each video feed, regardless if the feed is Motion JPEG or MPEG-4, is transported in an individual
TCP (WWW) session between viewing station and the respective Media Server. To understand the flows
between the Media Server and the viewing station, a NetFlow export is captured and summarized and
represented in Table 4-6.
The source IP address of 192.0.2.2 is the address of the Media Server. The client PC IP address is
192.168.16.36. Each line in Table 4-6 represents the flow from one of the camera feeds. The flows from
VSOM to the camera is not shown.
In this example, the aggregate bit rate per second is 10,748 Kbit, or over 10 Mbps. Viewing these eight
feeds over a broadband or T1/E1 WAN link would not be practical. The number of concurrent video
feeds would need to be limited and a reduction in the frame rate (MJPEG) or bit rate (MPEG-4) of the
individual feeds to view a panel of this complexity over the WAN.
Viewing camera feeds over the WAN is not impossible, but some consideration must be given to the
aggregate data rate when viewing more than one feed or individual feeds with very high resolution and
bitrate or frame rate.
Video Storage
The video surveillance storage system provides multiple options to store video and audio files. The
internal storage of the Media Server may be augmented by using direct attached or SAN storage. The
video surveillance storage system can store video in loops, one-time archives, or event clips triggered by
alarm systems providing for redundant and remote long-term archival.
MJPEG
When using MJPEG streams, the frame size of each image plays a key role in estimating the storage and
transmission requirements. Since each frame is unique and varies according to the image complexity, it
is difficult to provide a guide that provides fixed frame sizes. An IP camera that provides images with
low complexity will generate smaller frame sizes. Smaller frames will require less bandwidth and
storage capacity.
The following formula is used to calculate the bandwidth requirements for MJPEG streams:
MJPEG storage = Average Frame size x Frame rate x duration
Example 1: For an 8-hour archive of a CIF video stream with 50 percent quality and 15 frames per
second, the following is the calculation:
4 KB x 15fps x 3600s = 216,000 KB/ hour
= 216MB /hour x 8 hours
= 1.728 GB
Example 2: For a 24-hour archive of a 4CIF video stream with 100 percent quality and 5 frames per
second, the following is the calculation:
320 KB x 5fps x 3600s = 5,760,000 KB /hour
= 5,760MB /hour = 5.76GB /hour x 24 hours
= 138.24 GB
MPEG-4/H.264
Rather than standalone images, MPEG-4 / H.264 streams take into account video frames and the size of
a given video frame varies widely between I-frames and predictive frames. Typically, H.264 is more
efficient than MPEG-4. MPEG-4 is generally more efficient than Motion JPEG and requires less
bandwidth and storage capacity when using higher frame rates.
The following formula is used to calculate the bandwidth requirements for MPEG-4 streams:
MPEG4 storage = Bit rate (kbps) x duration
The target bit rate is configured on the camera and is already expressed in bits per second.
Example 1: For an 8-hour video stream with target bit rate of 768kbps, the following is the calculation:
768kbps / 8 bits/s = 96 KB /second x 3600 s
= 345,600 KB/hour / 1000
= 345.6 MB/hour x 8 hours
= 2.764 GB
Design CheckList
This design checklist in Table 4-7 facilitates pre-implementation planning and the decision process.
Design Checklist
Analyze the IP addressing requirements and VLAN assignments for IP Cameras, Media Servers, routers, switches and other
systems.
Determine if suitable Network Time (NTP) sources exist in the current network.
Investigate what network management servers and software are currently available for services such as Syslog and SNMP
traps, TFTP/FTP for firmware download and storage.
Consider implementing network management servers for performance, fault and capacity planning such as CiscoWorks
Internetwork Performance Monitor (end-to-end network performance) , Cisco Secure Access Control Server for Windows
(authentication: TACACS+/RADIUS server), CiscoWorks Device Fault Manager (reporting of device faults) and Cisco
NetFlow Collector (NetFlow analysis for capacity planning).
Analyze the existing QoS policies and configuration on routers and switches and incorporate the IP video surveillance
requirements into the plan.
Determine requirements for external users to access video feeds. Analyze what level of encryption or access-control is
required to meet the end-user requirements and to align with the corporate network security posture.
Discuss with the physical security manager and network manager the need for segmentation features such as VRF-lite,
VLANS and firewalls and access-lists to limit access to end-nodes.
Determine the redundancy inherent in the existing network and develop a plan for meeting the physical security needs in the
event of a line-card or access switch failure.
Consult with the physical security manager to determine what the live viewing requirements are. Determine what cameras
must be viewed live and were the viewing stations are located in the network topology.
Determine skill set of existing staff and estimate training requirements for physical security installers, operators and
managers in basic internetworking. Consider involving the network staff in day-to-day operations of the physical security
operations staff.
Requirements
This case study assumes the requirement is to populate every available port on the access switch with
with an HD camera. If there are PC/workstation, point-of-sale terminals, printers, or IP phones, these
devices are isolated on a separate access switch. The goal is to look at the worst case deployment
scenario where all cameras are generating HD video 24 hours per day.
The basic assumption is that the camera is a Cisco 4000 Series with a resolution of 1080p (1920 x 1080)
using the H.264 CODEC with a configured target bit-rate of 5Mbps. This model of camera can be
configured for a constant bit-rate in increments of 2, 4, 6, 8, 10, 12, and 15 Mbps. In viewing live video
streams, a configured rate of 4Mbps provides generally acceptable video quality. The assumption is the
cameras are configured for 4Mbps. In the calculations, 5Mbps per-camera is used to accommodate any
bursts by the camera, providing for a conservative estimate of bandwidth.
This campus design is a traditional three-layer design where access switches are aggregated into
distribution layer switches. The distribution layer switches are connected to the core switches. The core
switches provide connectivity for the media servers. The general topology is illustrated in Figure 4-19.
IP
IP Camera
Media
Server
227113
VSOM
The basic assumption is that each IP camera uses Power-over-Ethernet (PoE) and attaches to the access
switch at 100Mbps. The multiservice platforms (and most server platforms ) that are used for Media
Servers/Video Surveillance Operations Manager (VSOM) ) have two 10/100/1000M Ethernet interfaces.
Assume the servers are connected at 1000Mbps (1Gbps) for receiving live video feeds.
Note VSOM runs on one or more multiservice platforms, the Media Servers run on as many instances of the
multiservice platforms as required to support the number of cameras and storage requirements for video
archiving.
Access Layer
One of the advantages of implementing IP video surveillance is the ability to supply electrical power to
the camera using the IEEE 802.1af standard for PoE. Because of this, only PoE-capable access layer
switches are considered.
Another factor is the capability of the switch to provide Layer-2 only uplinks or either Layer-2 or
Layer-3 uplinks. In this design, only Layer-2/Layer-3 switches are considered because they eliminate the
need to have a Layer-2 interface connecting the distribution layer switches. Additionally, a routed-access
layer improves convergence times and enhances load sharing. For these and other reasons, many campus
network deployments advocate using a Layer-3 connection to the access layer switch. For more
information, refer to the High Availability Campus Network Design—Routed Access Layer using EIGRP
or OSPF at the following URL: www.cisco.com/go/designzone.
For these reasons, access switches that do not support PoE and Layer-3 routing support are not
considered in this campus case study.
The other produce selection considerations for access-layer switches are as follows:
• Number of ports (either 24 or 48 port models are available)
• Total switch capacity; for example, backplane capacity (32Gbps or 64 Gbps models are available)
• Uplink bandwidth available (either 1Gbps or 10Gbps is available)
Deciding which switch to deploy based on these three factors now is a matter of examining the offered
load from the Cisco 4000 Series camera. The assumption is 5Mbps as a target constant bit-rate.
Therefore a 24-port switch at 5Mbps per port, is 120 Mbps of offered load and a 48 port switch offers
240 Mbps. Based on this value, a switch with 48 ports, 32Gbps backplane, and 1Gbps uplinks will
service these requirements. One switch that meets the requirement is the Cisco Catalyst 3560G-48PS:
48 Eth 10/100/1000 ports with PoE and 4 SFP GigE ports.
Table 4-8 represents other switches in the access switch product line. The bolded items meet or exceed
the stated requirements.
Total Switching
Model L2/L3 Multilayer Capacity
Catalyst Switch (Gbps) Uplinks Ports
2975GS-48PS-L NO 32 4 SFP 1Gbps 48
3560G-24PS YES 32 4 SFP GigE 24
3560G-48PS 48
3750G-24PS YES 32 4 SFP GigE 24
3750G-48PS 48
3560E-24PD YES 64 2 X2 10 GigE 24
uplinks
3560E-48PD 48
3750E-24PD YES 64 2 X2 10 GigE 24
uplinks
3750E-48PD 48
Tip A 48-port access layer switch fully populated with HD IP cameras uses 25% - 80% of a 1Gbps
uplink.
A best practice for interface-level QoS, the priority queue should not exceed a third of the link bandwidth
in a converged network of voice, video, and data. In this topology, using a target rate of 5Mbps per
camera, less than a third of the available uplink bandwidth is a candidate for the priority queue. We can
therefore, safely assume that replacing the cameras on the switch ports with IP phones and workstations
will also not deviate from this guideline, as the VoIP traffic load is substantially less than the HD video
stream.
When planning for the distribution layer, assumed that each access layer switch is generating 240Mbps
on one of the two uplinks, or the traffic is load sharing across the two uplinks, but does not exceed
240Mbps from a single access switch.
Distribution Layer
The distribution layer topology design incorporates deploying two or more chassis. Each chassis is
outfitted with a single supervisor module and optionally dual-power supplies. Because IP routing
extends to the access layer, there is no need to implement a Layer-2 link between the two distribution
layer switches. The access layer switches receive routing updates from each distribution layer switches
and will select an alternate path to the core if a path fails.
One recommended solution for the distribution layer switch selection is the Cisco Catalyst 4500-E in
either a 3 or 6 slot chassis. With the 3 slot chassis, the Supervisor Engine 6-E and an additional uplink
link card uses two slots, while the remaining contains one 24-port line card for aggregating 24 access
switches. The 6 slot chassis can houses four 24-port line cards aggregating 96 access switches. By
including the uplink line card, up to eight 10Gbps uplinks are available to the core layer. The access layer
and distribution layer is shown in Figure 4-20.
Access Distribution
48 Cameras 24 Switches Up to 8
Per Switch Per Line Card 10 Gbps
Camera Uplinks
IP 100
Mbps
1 Gbps
3 or 6 Slot
Using a Supervisor Engine 6-E and a 3 or 6 slot chassis provides for 24Gbps of per slot aggregate
bandwidth. The configuration summary is as follows:
• Catalyst 4500-E with Sup 6-E (includes 2 10 Gig Uplinks)—Either 3 or 6 slot chassis
Core Layer
The core layer provides LAN connectivity for the Media Servers, VSOM servers, and other network
management servers. The number of Media Servers required is a function of the number of cameras
which each Media Server is able to support. For planning purposes, it is assumed in this case study that
each server can support 16 camera feeds. Depending on the hardware of the Media Server, the number
of supported cameras may be higher or lower and the network manager must adjust the number and type
of core layer switches accordingly. The general guideline for the Cisco Physical Security Multi Services
platforms is no more than an aggregate of 200 Mbps of I/O per chassis.
Given a projection of 16 camera per Media Server, the low end deployment using 1152 cameras requires
72 Media Servers and the upper end deployment of 4608 cameras requires 288 Media Servers. The
network topology diagram is expanded to include a representation of the core layer (see Figure 4-21).
Camera
IP 100
Mbps
1 Gbps 100/1000
10 Gbps Mbps
Media Server(s)
227115
There are several options for core layer switches. As was deployed in the distribution layer, the Cisco
Catalyst 4500-E with Sup 6-E could be used. A Cisco Catalyst 6500 Series or a Cisco Nexus 7000 Series
are also options. These latter two options are ideal if the access and distribution layer deployment is
going to be tied into an existing enterprise network infrastructure. In that case, it is assumed that
10Gigabit line cards and line cards to support Media Servers on 10/100/1000 RJ45 ports are available or
could be added to existing chassis in the core.
For the purpose of this case study, assume dedicated Cisco Catalyst 4500-E with Sup 6-E are also used
for the core layer switches. The core layer switches then include the following:
• 4500-E with Sup 6-E (includes two 10Gigabit uplinks)
• WS-X4606-X2-E—6-port 10Gigabit Ethernet (X2)
• WS-X4424-GB-RJ45—24-port 10/100/1000 Module (RJ-45)
The type of chassis can be a 6, 7, or 10 slot. Because these are core layer switches, dual-power supplies
are recommended as are dual supervisors. The 7 and 10 slot chassis support dual supervisor cards.
The number of core switches required depends on how many cameras, and therefore, how many Media
Servers, are implemented. It is assumed the Media Servers are are equally distributed across the available
ports on the core layer switches. The access layer switches are routing peers with the core layer switches
and are equal cost load sharing to the core.
If the upper projection of 4,608 cameras are deployed, at 16 cameras per Media Server, then 288 media
servers are required. Assuming four core switches, 72 servers on each, at a minimum each chassis must
support 3, WS-X4424-GB-RJ45 24-port line cards. Either the 6 or 7 slot chassis meets this requirement.
If the lower projection of 1,152 cameras are deployed, then 72 total servers are required. Two core
switches, with each switch supporting 36 servers, are necessary. Again, a 6 or 7 slot chassis meets this
requirement.
The number of VSOM servers required for this installation depends if the implementation is headless
(meaning little continuous viewing of live feeds) or if there are continuous viewing of many or all live
feeds. It is recommended that a single VSOM manage any given Media Server. There is no absolute rule
in the number of Media Servers per VSOM server. One guideline is to use 20 Media Servers per VSOM
server. Allocating Media Servers to the respective VSOM server should follow some allocation scheme
such as a geographical division. In other words, if there are three adjoining buildings with 100 cameras
in each building, those cameras may be all controlled by 20 Media Servers and a single VSOM.
Tip Verify the Media Servers are successfully auto-negotiating the 1000Mbps data rate. There is an expected
sustained offered rate of 80Mbps to each Media Server.
The aggregate bandwidth from distribution layer to any one of the four core switches (given 4,608
cameras) is approximately 6Gbps, or 24Gbps in aggregate from both distribution layer switches.
Summary
In this case study, we examined what characteristics an access-layer switch needed to support a
deployment of high definition IP video surveillance cameras. The bandwidth requirement between the
access and distribution layer was examined. Also, a distribution layer switch infrastructure was
suggested which would aggregate a large number of access switches densely populated with cameras.
Redundancy from the access layer, through the distribution layer to the core is enabled by choosing
switches which support end-to-end Layer-3 routing. Finally, the core layer bandwidth and port
requirements were examined.
This chapter discusses the systems requirements and software releases evaluated.
Network Modules
The majority of testing for this guide uses these network modules running the Cisco Video Analog
Gateway and the Cisco Video Surveillance Media Server and Operations Manager on the following
modules:
EVM-IPVS-16A 16-port Analog Video Gateway
NME-VMSS-16 Cisco Video Management and Storage System NME
NME-VMSS-HP16 Cisco Video Management and Storage System HP NME 16 ports
NME-VMSS-HP32 Cisco Video Management and Storage System HP NME 32 ports
Network modules product life cycle is updated to meet new system requirements. Contact the
appropriate support channel for information on end-of-sales (EoS) announcement and replacement part
numbers. The latest modules are as follows:
NME-VMSS2-16 Cisco VMSS - 2GB RAM, 500GB Storage, 16 Port License
NME-VMSS2-HP32 Cisco VMSS - 2GB RAM, 500GB Storage, 32 Port License
NME-ISS Cisco ISS - 512 MB RAM, 500 GB Storage
The NME-ISS provides a supplemental 500 Gigabytes of local storage on the ISS, in addition to the
storage of the NME-VMSS2 for up to 1 Terabytes of storage.
Viewer Requirements
Many commonly used laptops do not have sufficient performance to meet the minimum system
requirements for viewing video feeds from either the standard definition (SD) or high definition (HD)
cameras. Refer to the appropriate Cisco Video Surveillance Manager software documentation for the
release implemented to determine the minimum system requirements.
This chapter provides step-by-step examples of how to configure the IP Video Surveillance environment
tested by Cisco Enterprise Solutions Engineering (ESE) and contains the following main sections:
• Deploying Network Services for IP Video Surveillance, page 6-1
• Deploying a Cisco Video Surveillance IP Camera, page 6-13
• Deploying a Cisco Video Surveillance IP Camera, page 6-13
• Configuring Quality-of-Service (QoS) for IP Video Surveillance, page 6-21
• Local Storage for Video Archives Using iSCSI, page 6-41
• Performance Routing (PfR) Integration, page 6-50
• Wide Area Application Services (WAAS) Integration, page 6-61
• Wide Area Application Services (WAAS) for iSCSI, page 6-74
• Controlling Access to IP Video Surveillance, page 6-80
• Virtualization, Isolation and Encryption of IP Video Surveillance, page 6-87
Note that not every section in this chapter is necessary in all implementations. The recommendation is
to read each section and then decide if the concepts in a particular section are relevant or important to
the target implementation. For example, some implementations may not have the required topology to
implement Performance Routing (PfR), however, this section contains a discussion and examples of how
latency, jitter, and packet loss may impact the quality of video feeds on any topology. In this case, the
background assumptions may be relevant general knowledge to the network manager, even if the
technology approach is not implemented.
Many of the topics and concepts in this chapter are not specific to IP video surveillance deployments,
while the discussion in this chapter focus on their relevance to video surveillance. Additional
information is available in associated design guides or documentation at the following Cisco website
http://www.cisco.com.
Topology
The topology (see Figure 1) in this chapter shows a sample configuration where the network manager
has one or more time sources available in the internal network address space (10.81.254.0/24 in this
example) and one or more time sources on public address space, represented by 192.168.0.0/16. The
servers on the internal address space are stratum 1 sources. The server on the public address space
(Internet DMZ) is a stratum 2 source referencing a clock source of the Naval Observatory (USNO) NTP
servers.
The sample configuration is from a branch router configured as a stratum 12 NTP server, providing a
time source to the IP cameras, Cisco Video Management and Storage System (VMSS), and the optional
Analog Video Gateway Module. The branch router references lower stratum servers, the configured
stratum 1 and 2 servers, and under normal operations will prefer these lower stratum source over its own
internal clock.
10.81.254.131 GPS
10.81.254.202
Media
Server(s)
VSOM
Firewall
192.168.6.1
vpn4-3800-6
227238
This design includes several advantages and best practices. By peering the routers in the network with
the NTP servers rather than all devices in the network, it minimizes the polling to the servers. In a highly
available network, the routers only generate a NTP poll request every 17 minutes. Because the routers
have an accurate time source from the NTP servers, they are able to provide an accurate time source for
hosts on their connected interfaces. This adds a level of hierarchy in the NTP deployment and can scale
to very large enterprise networks.
Additionally, the design incorporates one or more internal GPS-based NTP appliances inside the
enterprise firewall from the Internet. The NTP appliance (or router) located in the Internet/DMZ can be
configured to peer to the internal NTP appliances (with the appropriate firewall rule allowing this
inbound connection) as well as to NTP servers on the public Internet. The NTP appliance in the
Internet/DMZ can also serve as a time source for remote access clients and broadband routers supporting
enterprise teleworker or remote users.
By configuring the internal routers to also peer to the Internet/DMZ NTP appliance, a third-time source
(although at a higher stratum) can be obtained from a publicly available server from the Naval
Observatory (USNO).
Note LAN switches in the network should also use the nearest router as their configured NTP server.
The ISR router is configured as an NTP master with a stratum of 12. The NTP master stratum number
identifies the relative position of this router in the NTP hierarchy. Higher numbers are less preferred
sources. This router is configured to serve as a master and will provide an accurate time source to the
VMSS and IP cameras and other hosts that request synchronization. Configuring the branch router as an
NTP server provides a time source to the branch devices in the event WAN connectivity is disrupted and
lower stratum devices are unreachable.
In this illustration, the NTP source address is Integrated-Service-Engine2/0 or IP address of 192.0.2.33,
the address of the VMSS module. A loopback address of the router could also be used to source replies
to client NTP packets. A loopback address would be preferred, this implementation did not provide for
loopback addresses and the logical interface of the VMSS network module is used as an alternative.
Client workstations, IP cameras and other devices on the network may use any of the IP addresses
associated with the router as a NTP peer IP address in their configuration, they need not only use the
value specified by the ntp source configuration command.
The following configuration example shows the network administrator establishing a console session the
VMSS network module in this ISR router, and showing that the configuration of Linux kernel on the
VMSS module is using the host ISR router as a NTP peer.
vpn4-3800-6#sh run interface integrated-Service-Engine 2/0
Building configuration...
!
interface Integrated-Service-Engine2/0
ip address 192.0.2.33 255.255.255.252
ip route-cache flow
service-module ip address 192.0.2.34 255.255.255.252
service-module ip default-gateway 192.0.2.33
no keepalive
end
The module is configured to use IP address 192.0.2.33, the IP address of the router hosting the VMSS
module. These commands establish a console session to the network module operating system and
displays the running configuration.
vpn4-3800-6#service-module integrated-Service-Engine 2/0 sess
Trying 192.0.2.33, 2130 ... Open
SITE150> en
Password:
SITE150#
SITE150# show run
Generating configuration:
Only one NTP server need be specified (192.0.2.33), because this is the IP address of the ISR router that
is configured for more than one NTP server in the router configuration in addition to also being
configured as an NTP master should connectivity to the lower stratum servers be lost. Note the time zone
is also manually configured, as NTP exchanges time in UTC.
The NTP server associations from the VMSS network module may be displayed. The reference server
(refid) is the time source from one of the enterprise network NTP sources, referenced in in the router
configuration.
In the event network connectivity is disrupted, making the reference source unreachable, the branch
router itself would be the reference clock. The NTP source at 10.81.254.202 is the current reference
because the branch router has synched to that time source, indicated by the asterick (“*”) next to the IP
address.
The configuration of the IP camera can reference the NTP server as the same IP address as the default
gateway for this camera, 192.0.2.97. The NTP port is not changed from the default port 123.
The IP camera is directed to adjust the local time for Daylight Savings Time when the offset is adjusted
forward or back. The appropriate time zone is selected to specify the offset from UTC/GMT and the
name of the time zone. Time is based off UTC, and each device on the network must be configured to
adjust the clock by the offset for their locality.
The Cisco Physical Security Multiservices platform or standalone servers running Cisco Video
Surveillance Media Server (Media Servers), Video Surveillance Operations Manager (VSOM), Video
Surveillance Virtual Matrix (VSVM) as well as client viewing stations, iSCSI appliances or other
networked DVR servers would be similarly configured as the IP camera in this section. These devices
all use the default router IP address as the NTP server IP address.
Summary
An accurate and consistent clock is important to provide for the synchronization of images archived from
a variety of camera feeds. An accurate time source is vitally important for forensic uses of video
surveillance data to equate a time with a point in time. By implementing NTP in an hierarchical design,
accurate time service can be provided to a very large scale enterprise network and have excellent
reliability and availability.
References
For additional information, refer to the Network Time Protocol: Best Practices White Paper at URL:
http://www.cisco.com/en/US/tech/tk869/tk769/technologies_white_paper09186a0080117070.shtm
l
Syslog
Syslog is a term for the standard logging facility on Unix/Linux systems. Most computer software
programs and operating systems incorporate some logging file, but Syslog is a network-based protocol
where the client system generates a log file entry to a syslog server. This syslog daemon (server) may
run on the same host as the client, but the more useful implementation is realized by dedicating a
machine on the network as a central syslog server and logging messages over the IP network from many
hosts to this central repository.
Typically, these text messages are transmitted as UDP packets on port 514 in clear text. The RFC 5424
The Syslog Protocol provides more details.
Syslog messages are characterized by Facility and Severity. The severity is a numeric code of 0-7 which
indicates the relative importance of the message. Emergency or severity 0 is more important than severity
7 for debug-level messages. Cisco routers send syslog messages to their logging server with a default
facility of ‘local7’. Cisco IP cameras use a facility of ‘user’. Because of the differences in facility
between a router and a IP camera, a syslog server which is logging Cisco router log messages must have
the configuration file updated to include a directive for processing log files from cameras.
Assuming the goal is to include both router log files and IP camera log files into the same file
(/var/adm/logs/cisco.log) on the syslog server for all logging levels (debug through emergency) the
following example of a syslog configuration file is provided as an example.
/etc/syslog.conf
#
local7.debug /var/adm/logs/cisco.log
user.debug /var/adm/logs/cisco.log
Tip There are five tabs between the two text fields in the file. If the output file does not exist, it must
be created with touch /var/adm/logs/cisco.log and the file permissions set with chmod 755
/var/adm/logs/cisco.log.
After editing the configuration file, the syslog daemon process must be reinitialized.
# kill -HUP `cat /etc/syslog.pid`
The following is a sample log message from a Cisco 2500 series IP camera.
Sep 30 15:13:15 [192.168.16.30.4.2] 192.168.16.30 09/30/2008 15:22:42 NTP:
Synchronization OK.^M
Note that in the log file, the time stamp inserted by the syslog daemon differs by a few minutes from the
time stamp placed in the log message from the end-node, the IP camera in this example. The IP camera
is indicating from the log messages that it is synchronizing successfully with the configured NTP server;
therefore, it can be assumed the clock on the Syslog server is not synched. This illustrates the importance
of having all devices on the network peering with a NTP server, so that the time stamps are consistent
across all devices on the network.
The screen snapshot in Figure 4 from a Cisco 2500 Series IP camera shows how the Syslog file can be
viewed locally from the API of the camera and where the IP address of the central Syslog server can be
entered.
There are a number of programs available in the public domain, either commercially or are supported by
user donations, that can be implemented to monitor log messages and take some action (running a
command) based on these configured alerts. The web page http://www.syslog.org/ is a clearing house for
syslog implementations available to the network manager.
One application of IP SLA in a camera deployment would be to use the router to generate ICMP echo
requests on a periodic basis to all the local IP camera and then to maintain a history log of any
connectivity failures or responses which exceed a specified time limit.
The following sample configuration shows a router configuration that sends an ICMP echo request every
60 seconds (the default value) to the camera at IP address 192.0.2.19 with a ToS value of CS6, in VRF
IPVS with a threshold of 50 milliseconds. A history file is maintained for probes that receive no response
or the response is over the configured treshold. The identifier of 219 is an arbitrary numeric identifier
value.
!
ip sla 219
icmp-echo 192.0.2.19
tos 192
threshold 50
vrf IPVS
owner networkmgr
tag ipvs - design guide
frequency 60
history lives-kept 1
history buckets-kept 60
history filter failures
ip sla schedule 219 life forever start-time now
The history output can be displayed in tabular format or ‘full’ or verbose format. The history file is only
updated for failure events, which provides more relevancy to the log file and prevents it from wrapping
as frequently as it would if all entries are logged.
In the verbose output of the log file, the network manager can see at what time of the day the target
camera failed to respond or responded over the threshold. The last two log file entries coincide with the
author removing the Ethernet cable from the rear of the IP camera. Because the camera is using PoE, the
network connectivity was lost and the device also lost power. The Over threshold values may have been
a result of the operating system responding slowly to the ICMP echo response (on many systems, ICMP
is a background process with low priority) or due to some network congestion.
Life index: 1
Bucket index: 2
Sample time: 12:39:23.207 edt Mon Jun 29 2009
RTT (milliseconds): 88
Response return code: Over threshold
Life index: 1
Bucket index: 3
Sample time: 12:44:23.207 edt Mon Jun 29 2009
RTT (milliseconds): 0
Response return code: Timeout
Life index: 1
Bucket index: 4
Sample time: 12:45:23.207 edt Mon Jun 29 2009
RTT (milliseconds): 0
Response return code: Timeout
IP SLA may be implemented on production routers; however, many network managers choose to
dedicate a router for the sole purpose of generating and responding to IP SLA probes. Additionally,
CiscoWorks Internetwork Performance Monitor uses the IP SLA software feature embedded within the
Cisco IOS and can be part of an overall network management infrastructure for managing routers,
switches, servers and end-nodes such as IP cameras.
Summary
IP SLA may be used by the network manager to aid in troubleshooting connectivity failures or as a part
of an overall ongoing network management strategy implemented by software packages such as
CiscoWorks IPM.
Power-Over-Ethernet (PoE)
Many analog camera deployments require an external power supply to provide the typical input voltage
of 12VDC/24VAC, with 24VAC at 3.5 AMP being common. Many analog deployments may implement
a smart BALUN to multiplex power, RS-485 (for PTZ control) and video signal over a CAT-5 cable at
an attempt to provide a similar advantage to which an IP camera with Power over Ethernet enjoys.
PoE enables power for the camera using the same cable as that used for network connection. Switches
must meet the IEEE 802.3af standard to be PoE-compliant. PoE is incorporated into many access-LAN
switches to support IP telephony and wireless LAN controllers also using PoE. The maximum distance
is the same as the Ethernet standard, 100 meters.
Providing backup power to each analog camera may be costly and time-consuming, while providing an
uninterruptible power supply (UPS) for the access switch will not only provide for backup power to an
IP camera, but also other devices on the LAN switch. IP cameras have a decided advantage over analog
systems because of the PoE feature. One caveat, however, is that many IP cameras that incorporate a
wireless LAN connection may not support PoE to the wired-port, because the assumption is made that
the reason a wireless camera was purchased was to use the wireless features.
Additionally, PoE may decrease the time required to install an IP camera due to the elimination of the
need for a licensed electrician to complete the installation or may permit installation in ceilings where
PoE devices are permitted but other electrical inputs are not.
Note You must use the Cisco 12V power adapter (CIVS-PWRPAC-12V) when no IEEE 802.3af standard PoE
switch is available.
The Cisco 2500 Series and the 4000 Series cameras are in Device Class 3 which specifies an power
consumption range of 6.49 to 12.95 Watts. The following command output is from a Cisco 3750 LAN
switch with both CIVS-IPC-2500 (Standard Definition) and CIVS-IPC-4300 (High Definition) IP
cameras attached to the switch. The power consumption is 9.0 watts and 13.0 watts respectively.
By omitting the interface option, all connected devices are shown as follows:
Summary
PoE is a feature that provides a decided advantage of an IP-based video surveillance implementation over
the analog counterpart. It is particularly useful in enterprise implementations that have existing IP
telephony or wireless access points that also rely on PoE.
-------------------------
Device ID: 001DE5EA79D3
Entry address(es):
IP address: 192.0.2.50
Platform: CIVS-IPC-2500, Capabilities: Host
Interface: GigabitEthernet1/0/2, Port ID (outgoing port): eth0
Holdtime : 153 sec
Version :
1.1.1
advertisement version: 2
Duplex: full
Power drawn: 9.000 Watts
Power request id: 57831, Power management id: 3
Power request levels are:9000 0 0 0 0
Management address(es):
IP address: 192.0.2.50
If the Cisco IP camera is unable to obtain an IP address through DHCP, it will default to the address of
192.168.0.100. Either the DHCP assigned IP address or the static IP address is advertised via CDP,
which provides useful information to the network manager as to the state of the camera installation.
As a best practice, IP cameras should be assigned a static IP address that is referenced in the enterprise
DNS system. The initial DHCP address can be used by a remote network or physical security
administrator to complete the initial configuration of the camera from the factory defaults. This includes
changing the DHCP or default IP address to a static IP address registered with DNS. Once that change
is made and saved, the remote administrator must reconnect to the camera and complete the initial
configuration and definition within VSOM/Media Server.
Tip Some firmware versions of the Cisco IP cameras also support device discovery using the Bonjour
protocol.
One additional use of CDP is device discovery. CiscoWorks Network Connectivity Monitor and other
third-party software packages can autodiscover a network topology by using both CDP and SNMP
access to routers and switches in the network. Because Cisco IP cameras support CDP and SNMP, these
endpoints can also be discovered by these network management tools.
This section assumes that the branch Cisco ISR router has an operational Cisco VMSS Network Module,
a Layer-2 switch capable of providing Power-over-Ethernet (or an external power injector, or power
supply is available) and a FastEthernet network connection on a VLAN dedicated to the cameras at the
branch office. In this example, a Cisco 3825 ISR router and a Cisco Catalyst 3750 Series Switch is used.
The router and the switch are connected by an 802.1q trunk. This toplogy is shown inFigure 5.
Media
Server
PoE
226341
Operations
802.1q Manager
trunk
Deployment Steps
The DHCP pool is used to allow the camera to initially obtain an IP address through DHCP. Once the
camera has been powered and booted, the DHCP assigned IP address is made a static IP address. The
VMSS network module refers to the static IP address when defining the camera.
These configuration commands enable the port as a Layer-2 access port and assigns the port to a separate
VLAN for IP cameras. The VLAN must match the VLAN configured on the router from the previous
step. Bridge Protocol Data Unit (BPDU) filters are enabled to prevent this control traffic from being sent
out the port. This command has the same effect as disabling spanning tree on the interface and can result
in spanning-tree loops. However, this port is intended to be used for the IP Camera and not for
connecting to another switch. The portfast feature is commonly used for end-stations and decreases the
time it takes for the port to begin forwarding traffic.
Port security is defined, allowing a single MAC address, the first MAC address seen on the port is
automatically entered into the configuration. If the IP Camera is unplugged from the port and another
device is attached, the port security feature marks the port as error-disabled and shutsdown the port
immediately. An SNMP trap is sent and a syslog message is logged. To bring the port back on-line issue
a shutdown and no shutdown interface configuration commands. As a best practice, the SNMP traps and
syslog messages should be monitored and alerts sent to an appropriate contact(s) within the physical
security organization to alert the operators when camera are being tampered with or removed from the
network.
Because the DSCP values of IP packets are set by the camera firmware, the Layer-3 QoS values are
trusted by the switch. The DSCP value of CS5 (40) is manually configured for both audio and video and
is shown in a later step.
Finally, the no shutdown command is issued on the port, which brings up the port and through the CDP
exchange, will negotiate and apply power to the camera.
Power Up Camera
In this example, it is assumed the camera is attached to interface gigabitEthernet 1/0/2 and is
administratively shutdown.
The macro is manually applied to the interface, specifying VLAN 208 as an argument to the macro. This
parameter is substituted as the macro executes. When the macro finishes executing, the link is brought
up and the camera powered from the switch.
3750-access(config)#interface gigabitEthernet 1/0/2
3750-access(config-if)#macro apply CIVS-IPC-2500 $VLAN 208
%Warning: portfast should only be enabled on ports connected to a single
To verify the interface configuration, a show run interface command can be executed. The MAC address
of the camera has been learned and is applied to the interface configuration.
Warning The running configuration is not automatically saved following macro completion, enter write
memory (copy running-config startup-config) to save the configuration changes.
The following command output shows that the IP camera is a class 3 device and the switch is supplying
9 Watts to the IP Camera.
3750-access#show power inline gigabitEthernet 1/0/2
Interface Admin Oper Power Device Class Max
(Watts)
--------- ------ ---------- ------- ------------------- ----- ----
Gi1/0/2 auto on 9.0 CIVS-IPC-2500 3 15.4
The IP camera, by default, will request a DHCP address. If the camera cannot obtain an IP address
through DCHP within 90 seconds, it uses a default IP address of 192.168.0.100. To determine what IP
address has been assigned to the IP Camera, a show ip dhcp binding can be issued from the branch router,
and the MAC address printed on the adhesive label attached to the camera body, can be use to identify
the IP address associated with the IP address of the Camera. The MAC address of the camera can also
be learned from the show mac address-table dynamic interface command on the switch. Alternately, the
IP address of the IP camera can be found from Cisco Discovery Protocol, as shown:
Version :
1.1.1
advertisement version: 2
Duplex: full
Power drawn: 9.000 Watts
Power request id: 57831, Power management id: 3
Power request levels are:9000 0 0 0 0
Management address(es):
IP address: 192.0.2.52
3750-access#
In this example, the camera has been assigned an IP address of 192.0.2.52. It can also be shown from the
DHCP table of the branch router.
vpn4-3800-6#show ip dhcp binding
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
The MAC address can be verified from the LAN switch as shown:
In this section it has been shown that the IP address and MAC address of the IP camera can be located
in several ways by issuing show commands on the router and switch.
Note The protocol is Hypertext Transfer Protocol over Secure Socket Layer or HTTPS.
After successfully connecting to the web server of the Cisco IP Camera, several configuration options
should be updated before defining the camera to the VMSS module. This checklist is provided to assist
in completing these tasks.
Warning Make sure the SAVE button is selected at the bottom of the screens when changing values.
In Devices - > IP Network Cameras -> Add a New IP/Network Camera, fill out the form to define
the new network camera. Suggested values are shown below:
Camera Information
Camera Feed
• *Server: -- VSMS_Site130
• *Media Type: M PEG -4
• *Format: N TSC
• *Resolution: D1 720 x 480
• *Transport: UDP
• Multicast Address:
• *Bitrate: -- Choose One -- 5000 4000 3000 2000 1500 1024 768 640 512 511 384 256 255 128 56
• *Quality: Defaults to 50^
• Camera requires authentication
• *Username:
• *Password:
• *Confirm Password:
Note • Only MPEG-4 is supported in early firmware releases, MJPEG is supported in latest code.
• The format can be NTSC or PAL, when selected, changes the options available for selection under
resolution
• Check the camera requires authentication and enter the userid and password from Table 7.
• The appropriate value for Bitrate is a function of desired image quality, available storage, and
bandwidth. A value of 1,024K or 2,000K is a good starting value for a standard definition camera.
Summary
By using the Smartport macro capability of the Cisco Catalyst 3750 Series Switches, the DHCP server
functions of the Cisco 3825 Integrated Services Router (ISR) and the Web server configuration utility of
the Cisco Video Surveillance 2500 Series IP Cameras, IP Video Surveillance cameras can be quickly
defined and deployed at a branch office or campus location. While the camera installation and wiring to
the LAN switch must be accomplished by a technican at the physical location of the camera, the
remainder of the configuration and installation can be completed from the network operations center
over the IP network.
CALL-SETUP
2 and 5%
Access Link
INTERNETWORK-CONTROL
(1.54 Mbps)
T1
22% TRANSACTIONAL-DATA
CBWFQ
Business Traffic
~33% Class-default
Class-default
227131
With the introduction of various video applications (Digital Media System (DMS), Telepresence, IP
Video Surveillance, and Multimedia Conferencing to the VoIP and data network), the offered load to the
network expands dramatically.
First, the total amount of bandwidth required for a branch location must be increased. Where VoIP and
data can be transported on a T1/E1 link, 50 to 100 Mbps is required. The driver for this increase in
bandwidth are the video applications provisioned on the links. Assuming similar branch requirements as
is illustrated in Figure 6. Figure 7 includes additional bandwidth classes to accommodate video with an
overall increase in the total amount of bandwidth.
Access Link
CBWFQ
TRANSACTIONAL-DATA
Video
30% Surveillance Broadcast Video
Bulk Data/Best
Effort/Scavenger
227132
(*) Less than 1%
While not all branches have a requirement for transporting Telepresence, Video Surveillance, or DMS
over the WAN, there is a possibility that one or more of these video applications exist or will in the future
and must be considered when provisioning WAN links.
Given the same number of VoIP calls, nine, from the 2004 bandwidth allocation, note that in terms of
the percentage of bandwidth for the priority queue for VoIP goes from 33 percent of the total bandwidth
to a fraction of a percent when the WAN link is a 100Mbps Metro Ethernet link. A single Telepresence
unit can consume 15 to 20Mbps of bandwidth and live viewing of 8 to 10 IP cameras at the branch from
a central command center can easily consume 10Mbps of bandwidth for a single viewing station. Digital
Media and Multimedia Conferencing also may be present at the branch and also consume bandwidth.
With these requirements, the next section provides a framework to map QoS DiffServ, the Diffserv
Codepoint (DSCP) values for these application classes. For those not familiar with the term DiffServ or
DSCP, these terms are for a revised definition of the IP type-of-service (ToS)-byte allocation in the IP
header. In the past, 3 bits of this field was used as IP precedence, providing for distinguishing traffic into
eight different categories. QoS DiffServ expands this quantification to 6 bits and adds new functionality
to the ToS byte. In order to use this relative priority indicator consistently from end-to-end on the
network, some consistent framework must be in place so that all routers and switches on the network
derive the same meaning from the marking.
VoIP Telephony EF Required Priority Queue (PQ) Cisco IP Phones (G.711, G.729)
Multimedia Conferencing AF4 Required BW Queue + DSCP WRED Cisco Unified Personal Communicator
Multimedia Streaming AF3 Recommended BW Queue + DSCP WRED Cisco Digital Media System (VoDs)
Bulk Data AF1 BW Queue + DSCP WRED Email, FTP, Backup Apps, Content Dist
227133
Best Effort
Scavenger DF
CS1 Best Effort
Min BW Queue (Deferential) BestBitTorent,
YouTube, iTunes, Effort Xbox Live
The applications listed under the Application Class and Examples column provides a description of the
applications which comprise each class. For IP Video Surveillance, the media, whether it be TCP-based
as is the case with Motion JPEG camera feeds, UDP/RTP-based for MPEG-4 and H.264 or TCP-based
web delivery, the recommendation is to mark this traffic as DSCP decimal value 40 or CS5. The control
plane traffic for video surveillance, such as RTSP, is recommended to be set at CS3 or decimal value 24.
As a best practice, IP cameras are recommended to be configured for NTP, SNMP and Syslog, and these
applications are suggested to be marked DSCP with decimal value 16 or CS2.
There is a very limited amount of network traffic in a video surveillance deployment for control plane
and network management applications compared to media streams. Because of this, some network
managers may find it both practical and expedient to mark media as CS5 and all other traffic from
cameras, clients and servers as either CS3 or CS2. The examples shown in this section use CS5 and CS3
to illustrate how to identify and select traffic through access control lists and mark accordingly. The
network managers can be as specific and detailed in marking as they desire.
The following configuration sample shows class-map names and the associated match statements that
can be used in router and switch configurations:
!
class-map match-all VOICE
match ip dscp ef
class-map match-all TELEPRESENCE
match ip dscp cs4
class-map match-all NETWORK-CONTROL
match ip dscp cs6
class-map match-any CALL-SIGNALING
match ip dscp cs3
class-map match-all OAM
Tip Entering user-supplied values in upper case (for example, SCAVENGER versus scavenger)
enhances readability of the configuration file.
IP
Media Server(s)
227134
Viewing
VSOM
Station
In the sample deployment shown in Figure 9, there are one or more Media Servers being controlled by
at least one Video Surveillance Operations Manager (VSOM) server. With a Cisco ISR router and the
Video Management and Storage System (VMSS) Network Module, these two software components
reside on the same logical interface. In a multiservice platform or standalone Unix implementation, they
could reside on the same chassis or separate chassis. One VSOM server can control more than one Media
Servers.
In this example, the assumption is that the IP camera is a Cisco IP camera or a camera from another
vendor, which can be configured to mark the video media stream with a DSCP value. This is an example
where the end-node is marking the IP packets with an appropriate DSCP value. For the viewing stations,
Media Server and VSOM, it is assumed that a network device, either the first router or switch, will need
to identify the traffic and mark it accordingly.
IP
Media Server(s)
TCP 443
HTTPS
TCP 554
RSTP
227135
UDP
RTP
In the implementation shown in Figure 10, the process flow is initiated by the Media Server. When a
scheduled archive or live feed is needed from an IP camera, the Media Server initiates a connection to
the IP camera to request the feed. Assuming the Cisco 2500 Series IP camera feed is MPEG-4, the Media
Server performs the following:
• Initiates a HTTPS session with the IP camera for authentication and control plane.
• Initiates a RTSP session with the IP camera for description, initiation or termination of the media
feed. Also control plane.
• The IP camera begins streaming the video feed as a UDP/RTP session on ports negotiated in the
RTSP exchange. This is the media (data) plane.
Of these exchanges, only the UDP/RTP session is marked by the Cisco 2500 Series camera with a DSCP
value. The HTTPS and RTSP packets originating from the camera have a DSCP value of 0 or best effort
(BE). Normally, the camera is configured for other network services such as NTP, syslog, SNMP, and
this traffic is also marked BE.
However, the majority of the network traffic, certainly approaching 100 percent to and from the IP
camera is the media stream. In this case, while the IP camera stack will set the DSCP value, there may
still be certain types of traffic from the camera that the network manager would consider marking by the
switch or router. One simple solution is to configure the switch to mark all IP packets from the camera
as DSCP value CS5.
TCP 80
Media Server(s) HTTP
TCP 80
HTTP
227136
Viewing
VSOM
Station
Given the initial premise that the viewing station and servers are not marking IP packets with DSCP
values, the later sections of this chapter will provide some examples of how an access switch can be
configured to mark traffic on the port servicing these devices. In the following section, an example is
provided that shows using the ISR router to mark on ingress from the logical interface when the Media
Server and VSOM resides on a VMSS network module. The example shows marking flows from the
Media Server (HTTP web server) port as CS5 and the remaining flows as CS3. Recall from the previous
section that the Media Server originates TCP sessions for HTTPS and RTSP to an IP camera to initiate
video feeds. The model assumes, therefore, that any flows that are not sources from TCP port 80 are
control plane traffic to an IP camera. These flows could be specifically identified by source port if the
network manager desires.
Tip If a backup Media Server is defined for a video archive, the network manager may wish to mark these
flows to the IP address of the backup Media Server as AF11 for inclusion in the
HIGH-THROUGHPUT-DATA class.
granularity is provided to various types of traffic. In many implementations, this is in the form of a
Layer-3 QoS value such as a DSCP decimal value. Figure 12 shows a screen snapshot from a Cisco 2500
Series camera where the QoS parameters are entered.
Table 8 is useful for selecting the correct decimal value to enter in the DSCP field.
Note The values CS2, CS3, and CS5 are highlighted in Table 8, because these values are
recommended for network management, control and media streams from the IP cameras.
Medianet Switches
The Cisco Catalyst 2960, 2975, 3560G, 3750G, 3560-E, and 3750-E family of switches are access-layer
switches that can be used for IP Video Surveillance deployments. These are considered medianet
switches, meaning that they include Gigabit-Ethernet interfaces and implement in hardware a strict
priority queue with at least three additional queues. The configuration examples are based on this family
of switches unless otherwise noted.
The macro is applied from interface configuration mode by specifying the name of the macro and any
parameters. In this sample, the only variable substitution is the VLAN ID.
macro apply CIVS-IPC-2500 $VLAN 208
After modifying the configuration, be sure to save the running configuration using the following
command:
write memory
Tip CSCsz45893 Layer-2 CoS (802.1Q/p) for 4000 Series IP Camera provides additional information.
The recommendation is not to implement Layer-2 CoS for the 4000 Series IP camera.
VSOM
227138
Media Server
The sample access switch configuration is shown below. An access-control list is configured to match
on traffic originating from TCP port 80. Packets matching this access-control list are predominately live
or archive video feeds from the Media Server to the client-viewing station. This is marked as DSCP value
CS5 and the remaining traffic is assumed to be primarily control plane and is marked CS3.
The service-policy is applied as an ingress policy.
hostname 3750-access
!
! System image file is "flash:c3750-advipservicesk9-mz.122-44.SE1.bin"
!
class-map match-all HTTP_acl
match access-group name HTTP
!
policy-map VSMS
class HTTP_acl
set dscp cs5
class class-default
set dscp cs3
!
ip access-list extended HTTP
permit tcp any eq www any
!
!
interface GigabitEthernet1/0/4
description Physical Security Multiservices Pfm
switchport access vlan 208
switchport mode access
priority-queue out
spanning-tree portfast
spanning-tree bpdufilter enable
service-policy input VSMS
!
end
Tip The show policy-map interface command can be used to verify the service policy is matching
and marking packets as intended.
The priority-queue out command is addressed in the “Egress Queueing for IP Cameras, Servers and
Viewing Stations” section on page 6-32.
Ingress Marking for Video Management and Storage System Network Module
The Cisco Video Management and Storage System Network Module (VMSS) is a logical interface in the
branch ISR router. This network module runs the Media Server and Video Surveillance Operation
Manager (VSOM) software. In a deployment where this software runs on a Physical Security
Multiservices Platform or stand-alone server, the QoS marking can be implemented on the LAN switch
port connecting the server to the network. Because the network module implementation is a logical
interface on the router, an ingress service policy is applied to the interface to mark media traffic and
control plane traffic as it exists the logical interface. The relevant QoS commands are highlighted in blue
in the following configuration sample.
!
interface Integrated-Service-Engine1/0
ip vrf forwarding IPVS
ip address 192.0.2.1 255.255.255.252
ip flow ingress
load-interval 30
service-module external ip address 192.168.111.2 255.255.255.0
service-module ip address 192.0.2.2 255.255.255.252
service-module ip default-gateway 192.0.2.1
no keepalive
service-policy input INGRESS_VMSS
!
class-map match-any VMSS
match access-group name HTTP
!
ip access-list extended HTTP
permit tcp host 192.0.2.2 eq www any
!
policy-map INGRESS_VMSS
class VMSS
set ip dscp cs5
class class-default
set ip dscp cs3
!
end
There are two primary types of traffic leaving this logical interface and entering the IP network.
• Web traffic with a source port of 80; this is the video feeds from the Media Server to a client-viewing
station.
• VSOM web traffic displaying the operator/administrator portal.
The Media Server also originates HTTP/HTTPS traffic to IP cameras for authentication and control of
Motion JPEG feeds as well as RTSP command and control to IP cameras.
The basic QoS policy, therefore, is to mark TCP packets (port 80) from the logical interface with a DSCP
value of CS5 (BROADCAST-VIDEO) and mark all other traffic originated from the module CS3
(CALL- SIGNALING).
The following show policy-map command was issued while a client-viewing station is watching the five
video camera feeds on the ISR router.
vpn1-2851-1#show policy-map interface integrated-Service-Engine 1/0
Integrated-Service-Engine1/0
Note In this example, the video camera feed for one client-viewing station is generating
approximately 8Mbps.
227139
Viewing Station
This sample configuration below is very similar to that shown in “Ingress Marking for Servers” section
on page 6-29. However, it specifically shows a sample of a matching on packets with a destination TCP
port 80 rather than a source port 80.
hostname 3750-access
!
! System image file is "flash:c3750-advipservicesk9-mz.122-44.SE1.bin"
!
class-map match-all HTTP_acl_client
match access-group name HTTP_client
!
policy-map Viewing_Station
class HTTP_acl_client
set dscp cs5
class class-default
set dscp cs3
!
ip access-list extended HTTP_client
permit tcp any any eq www
!
!
interface GigabitEthernet1/0/5
description Viewing Station
switchport access vlan 208
switchport mode access
priority-queue out
spanning-tree portfast
spanning-tree bpdufilter enable
service-policy input Viewing_Station
!
end
Tip The interface counters on this switch port will typically show the majority of the total bytes output to the
viewing station with a relatively small number of bytes input from this viewing station. The video feeds
are very unidirectional.
As a general best practice, it is recommended to enable egress priority-queueing on uplink ports and
trunk ports between switches. The Layer-2 priority queue (1P3Q3T) is enabled with the priority-queue
out interface command. Queue 1 is the priority queue, and it is serviced until empty before the other
queues are serviced. By default, packets with a DSCP value of CS5 (decimal 40) are mapped to queue
1. Because the video media streams are marked DSCP CS5, the video traffic is serviced by the priority
queue.
!
interface GigabitEthernet1/0/1
description Uplink port
switchport trunk encapsulation dot1q
switchport mode trunk
priority-queue out
mls qos trust dscp
!
For most IPVS deployments, enabling egress priority-queueing is sufficient with all other options
addressed by the default configuration values.
Topology
The configuration examples shown in this section are from the deployment topology from the
“Virtualization, Isolation and Encryption of IP Video Surveillance” section on page 6-87. The network
traffic is generated by a client-viewing station in the command center campus location. Labeled on the
drawing as IP address 192.0.2.142 in Figure 15. This workstation is viewing a six-pane operator screen
viewing five cameras at the branch location. Two cameras are IP cameras and three of the cameras are
analog cameras attached to an Analog Video Gateway (AVG) at the branch location.
The branch router is an ISR 2851 with a NME-VMSS network module in addition to the AVG network
module. The WAN interface is a Gigabit-Ethernet handoff into a service provider MAN network. There
are two point-to-point virtual circuits (IEEE 802.1q) VLANs through the service provider network, one
to each of the WAN aggregation routers at the central campus location.
There are two DMVPN tunnel interfaces, each sourced from one of the point-to-point links. Interface
Tunnel 128 (in VRF IPVS) is transported over VLAN 332, interface tunnel 192 (in VRF IVPS) is
transported over VLAN 331. The EIGRP configuration implements an offset-list in the EIGRP
configuration. When both tunnels are up and active, the preferred path is over tunnel128. Traffic is forced
over the backup path during testing by disabling ISAKMP (no crypto isakmp enable command) and
clearing the IPSec security associations, effectively clearing and disabling the crypto tunnel from that
WAN aggregation router. The topology is shown in Figure 15.
vrf
Tu 128 IPVS
vrf
IPVS
332
IP
IP Tu 192 Media
vrf Server
331 IPVS
Cisco 2851-1
Site 130 Global
Routing VSOM
192.0.2.2
Table
NME-VMSS NMS
192.0.2.142
227140
Viewing
Station
The output interface (GigabitEthernet0/1.332) is in the global routing table, while the DMVPN tunnel
interface sourced from the physical interface is transporting the packets.
vpn1-2851-1#show int tunnel 128 | include rate
Queueing strategy: fifo
5 minute input rate 371000 bits/sec, 679 packets/sec
5 minute output rate 7784000 bits/sec, 815 packets/sec
The show policy-map command can be used to verify that packets are matching the appropriate class
and also to report on the data rate of the applications in each class.
vpn1-2851-1#show policy-map interface gigabitEthernet 0/1.332
GigabitEthernet0/1.332
QoS Set
cos 6
Packets marked 338
bandwidth percent 4
class MULTIMEDIA-CONFERENCING
bandwidth percent 4
class SCAVENGER
bandwidth percent 1
class OAM
bandwidth percent 1
class NETWORK-CONTROL
bandwidth percent 1
class CALL-SIGNALING
bandwidth percent 1
class class-default
fair-queue
policy-map UPLINK_50M
class class-default
shape average 50000000
service-policy IPVS_BRANCH
Because the service provider is offering a SLA for the aggregate bandwidth of 50Mbps, the service
policy can be more granular at the interface level than was the case in the per-class shaper example
shown previously. In this example, the branch router is referencing nine of the twelve application classes
in the DiffServ QoS Recommendations.
!
class-map match-any LOW-LATENCY-DATA
match ip dscp af21 af22 af23
class-map match-any HIGH-THROUGHPUT-DATA
match ip dscp af11 af12 af13
class-map match-all BROADCAST-VIDEO
match ip dscp cs5
class-map match-all NETWORK-CONTROL
match ip dscp cs6
class-map match-any MULTIMEDIA-CONFERENCING
match ip dscp af41 af42 af43
class-map match-all OAM
match ip dscp cs2
class-map match-all VOICE
match ip dscp ef
class-map match-all SCAVENGER
match ip dscp cs1
class-map match-any CALL-SIGNALING
match ip dscp cs3
!
end
The show policy-map command can be used to verify packets are matching the correct class and provide
insight into the data rate of application in each class.
Service-policy : IPVS_BRANCH
Summary
All forms of video traffic on the enterprise network greatly increases the bandwidth requirements for
both LAN and WAN. The existing QoS policies must include new application classes to support the
various types of video traffic. For IP video surveillance, the recommended marking for the media streams
is the DSCP value of CS5. This can be set by end nodes, such as IP cameras, or by a switch or router.
While the majority of video traffic introduced by video surveillance are the media streams, the control
plane and network management traffic should also be marked appropriately as well.
scale from 2 to 96 Terabytes (TBs) of storage. Entry level systems that may support 1, 2, or 4 TB of raw
storage may range in price less than $5000 USD, but for systems that support up to 96 TB of storage,
the initial, minimal chassis investment may be $8,000 USD or more.
To provide some guidance on the amount of disk space required for a typical branch video surveillance
deployment, Table 1 shows the amount of space required for a one-hour archive. Various media types,
resolution, frame rate/target bit rates are shown for the Cisco 2500 Series IP camera as well as other
cameras.
Now that a baseline is provided for an archive of one-hour duration, the next section shows an estimate
of the total amount of storage required for multiple cameras based on a typical retention period.
2 GB per hour
4 24 hours = 48G
16 cameras = 768G/day
s
er a
10 days = 8 Terra Bytes
am
Tera Bytes
el C
2.5 480 MB per hour
pi x
24 hours = 11GB
on
ga
it i 16 cameras = 176G /day
Def in
Me dar d 10 days = 1.7 Terra Bytes
Stan
1
1 5 7 10 14
226342
Days of Retention
Retention periods vary from organization to organization and some cameras may have a longer retention
period than others. There may be multiple archives created from a single camera, with the longer
retention period having a lower frame rate while a higher frame rate may have a retention of only a few
days. Some archives are initiated only on triggered events. Additionally, the amount of storage for stored
clips (local BWM/X clip repository) and backup (backup repository) must also be considered. Capacity
for future camera installations as well as replacement of standard definition with high definition in the
future must also be considered.
Not all the listed hard disk space is available for archives, because the operating system files are
contained on the disk as well. To meet the video archive storage requirements of the branch location that
requires more storage is available on the network modules, attaching an Internet SCSI (iSCSI) appliance
to the VMSS network module external interface is the preferred solution.
The VMSS faceplate has an external Gigabit Ethernet port for physically connecting to a switch to
communicate with the iSCSI server. The location of the port is shown in Figure 17.
NME-VMSS-HP32
XXX-XXXXX-XX XX
226362
DISK SYS SUPPORTED
CF GigE USB
In testing three separate Buffalo TeraStation Pro II iSCSI Rackmount units are deployed on Cisco ISR
2851, 3825, and 3845 routers using the NME-VMSS-16, NME-VMSS-16HP and NME-VMSS-32
network modules. This brand of iSCSI server is used because of low initial cost, features, and
availability. It is not a product recommendation. This server is available in 1,2, and 4TB configurations.
In most customer deployments, servers with substantially higher storage capacity may be required.
Deployment Topology
A typical branch router deployment topology using iSCSI for local storage is shown in Figure 18.
iSCSI UPS
Server
UPS Power 192.0.2.96/27
192.168.11.150
(async) IP Cameras
Catalyst VLAN 210
Gigabit Ethernet 3560G IP
IP
VLAN 256
802.1q trunk
192.168.11.1
192.168.11.2 configuration
Workstation
Web Browser
Media 192.0.2.65
fault
Server
Operations Sysbg/SMTP
NME-VMSS-HP32 Manager
226343
The LAN switch in this deployment is a Cisco Catalyst 3560G-48TS. This switch supports 48 Ethernet
10/100/1000 ports and 4 SFP-based Gigabit Ethernet ports in a 1RU form factor. The Cisco ISR router
GigabitEthernet 0/1 interface is an 802.1q trunked interface. There is an isolated VLAN, 256, for the
iSCSI network. The GigabitEthernet port on the face place of the VMSS network module is connected
to a non-trunked switch port in VLAN 256. The Buffalo TeraStation Pro II iSCSI Rackmount
TS-RI1.0TGL/R5 server is also attached to a non-trunked port on VLAN 256.
This iSCSI server has a facility for SMTP email alerts, NTP, syslog, and has an imbedded web server for
configuration and management. To use these management functions and to access the server from the
central campus location, the default gateway of the server is configured with the IP address of the branch
router Gigabit Ethernet interface, 192.168.11.1. This network is advertised by the dynamic routing
protocol (EIGRP) configured on the branch router.
The IP addressing of the router, external interface of the VMSS module and the iSCSI server are shown
in Table 10.
Device IP Address
Branch router GigE VLAN 256 192.168.11.1
VMSS External Interface 192.168.11.2
iSCSI Server 192.168.11.150
VMSS-HP32 (VSOM/Media Server) 192.0.2.65
There are two interfaces connected to subnet 192.168.11.0/25 from the branch router; one through the
GigabitEthernet interface on the ISR router chassis, the second through the external interface of the
VMSS network module.
The screen shot in Figure 19 shows the VMSS network module’s external address listed as a client
connection at IP address 192.168.11.2. The IP address of the server is 192.168.11.150. The default
gateway is the ISR router at address 192.168.11.1. Default network access through the router allows the
iSCSI server to communicate with the corporate network devices through the ISR router while
maintaining a direct, LAN-based connection to the iSCSI client, the VMSS network module.
interface GigabitEthernet0/1.250
description INSIDE VLAN
encapsulation dot1Q 250
ip address 10.81.7.1 255.255.255.248
!
interface GigabitEthernet0/1.256
description iSCSI VLAN
encapsulation dot1Q 256
This is the default gateway IP address for the iSCSI server.
ip address 192.168.11.1 255.255.255.0
!
interface Integrated-Service-Engine3/0
description NME-VMSS-HP32
ip address 192.0.2.64 255.255.255.254
ip flow ingress
The VMSS operating system learns the external IP address from this configuration statement
service-module external ip address 192.168.11.2 255.255.255.0
service-module ip address 192.0.2.65 255.255.255.254
service-module ip default-gateway 192.0.2.64
no keepalive
!
router eigrp 64
network 10.0.0.0
network 192.0.2.64 0.0.0.63
A network statement for the iSCSI subnet is included to advertise this network to the intranet.
network 192.168.11.0
no auto-summary
eigrp stub connected
!
end
Tip Following the configuration of the external IP address, the network module must be reloaded for the
VMSS operating system to learn the configured address; for example, service-module in2/0 reload.
If the GigabitEthernet 0 and 1 interfaces are not configured with an IP address from the router, verify
the ISR router interface configuration and reload.
Verify/attach External Gig E port of the network module to the LAN switch as follows:
end storages-iscsi
end
To verify the detailed status of the volume, the show storages iscsi command can be entered.
Tip The status of ‘rw’read-write should be verified. If the status is ‘ro’, read-only, the volume cannot be
written to and archives will fail.
Summary
In practically all branch office video surveillance deployments, an external iSCSI device is needed to
provide sufficient disk space for storage of local video archives. The branch topology must be configured
to provide network connectivity for fault and configuration management of the iSCSI server. The
enterprise network management system must monitor the iSCSI server, router and VMSS network
modules to insure the operational health of the surveillance system at the branch location.
Topology
To illustrate how latency, loss, and jitter effect video feeds, we have set up a topology where the
originating video feeds are not directly attached to the LAN of the Media Server recording the video.
This allows test tools to introduce impairments in the network. The IP cameras are attached to a VLAN
on a separate router from the branch location where the Video Management and Storage System (VMSS)
network module resides. A WAN is simulated by injecting latency, loss, and jitter by a test appliance
connected to two VLANs separating these locations. The branch router is a Cisco 2851 ISR with a
NME-VMSS-16 network module. This topology is shown in Figure 21.
OER/PfR
Master Controller/
DMVPN Border Router
Viewing WAN
Station vpn-jk2-7206-1
LAN/MAN/WAN
VLAN 282
192.168.16.0/24
managed links
VLAN 262
IP
Master Controller/
Border Router 192.0.2.2 IP 192.168.16.32
Axis 223M
192.168.16.30 IP Camera
Cisco 2500
226346
IP Camera
Media
Server
Operations
Manager
Cisco 2851 ISR with
NME-VMSS-16
The PfR Master Controller and Border Router function are configured on the Cisco 2851 (IOS Release
12.4(15)T5) as well as the Cisco 7200 Series router at the campus location. The Cisco IP camera is
Firmware Version is 1.1.1.
DMVPN
Viewing WAN
Station
RTP (TCP)
RTP (UDP) 192.168.16.0/24
IP
Media 192.0.2.2
1
Server IP 192.168.16.32
Axis 223M
192.168.16.30 IP Camera
Cisco 2500
226347
IP Camera
2
Operations
Manager
In general, packet loss presents more of an impairment to video quality than latency and jitter in this
RTP/UDP deployment topology.
In VoIP deployments, latency impacts usability. As latency increases, the likelihood that two people
would talk at the same time increases. This is referred to as the Walkie-talkie effect. Latency does not
impact audio fidelity, it impacts usability. In VoIP, excessive jitter may be addressed by the de-jitter
buffer in the IP telephone, but in some instances packets with excessive jitter are dropped if they arrive
too late and must be dropped. Single packet loss for VoIP may not be noticed by the listener if packet
loss concealment is implemented.
Video requirements differ from VoIP deployments in that surveillance applications have no two-way,
real-time exchange of data. If the surveillance camera is a fixed camera, no Pan-Tilt-Zoom functions, the
only two-way communication is the authentication step and RTSP step to initiate a camera feed. While
latency in the network will slow down these packet flows, once the camera is initiating the RTP stream,
no two-way communication is necessary. This packet flow between Media Server and IP Camera is
described in more detail in the next section.
Loss for MPEG-4, however, cannot be recovered. There is no retransmission of lost packets. If the packet
loss occurs in a ‘key slice’, and this slice required 30 IP packets for transmission, this single packet loss
causes the ‘key slice’ to be incomplete. Packet loss degrades the MPEG-4 video quality.
The network characteristics to provide good video quality is different and, in some cases, more stringent
than for VoIP. In general, VoIP is more tolerant to packet loss than video, while video is more forgiving
to latency and jitter than VoIP.
192.0.2.65
IP
HTTPS
(TCP 443)
192.168.16.30
–40 pks Cisco 2500 IP Camera
Media 2,500ms
Server authenticate
Operations
Manager RSTP
(TCP 554)
–12 pks
370ms
describe, setup, play
RTP
(UDP 5002)
–12 pks Resolution 720x480
media stream
226343
In this test, the camera has a resolution of 720x480 (D1) with a target bit-rate of 1024Kbps. The resulting
RTP stream is observed at approximately 115 packets per second with an average of 1,054 bytes per
packet.
Warning The Cisco IP camera can be configured to set the DSCP value of the RTP stream. However, the HTTPS
or RTSP stream is not configurable and, unless set by a router or switch, is DSCP best effort.
Between the camera and Media Server there are two WAN links. Before PfR is enabled on the routers,
the link that is used by the camera feed is subject to latency (jitter is influenced by the randomness of
latency applied) and loss. The topology of the test is shown in Figure 24.
RTP (UDP)
Media
226349
192.0.2.2
Server IP
Operations
Manager
For each test, an archive is scheduled and retained for later viewing, with the WAN network simulator
configured for the following criteria.
Typical Latency—Low Loss
• Drop on-in 1,000 (1/10th 1%)
• Delay 30 to 40ms
High Latency—No Loss
• Drop off (no configured packet loss)
• Delay 120 to 150ms
The results of the three tests are described in the following sections.
The motion in the view of the camera is generally smooth. The subject is dropping packing peanuts in a
lab environment with racks of network equipment, allowing the fan exhaust to blow the peanuts across
the floor. Several peanuts are on the floor and to the left of the right knee of the subject, you can see
several peanuts falling.
There are some artifacts with quick motion, but they are not excessive. This is used as a baseline to
determine the difference in quality for the remaining tests.
A copy of this archive can be viewed at http://tools.cisco.com/cmn/jsp/index.jsp?id=84464
The image quality is very similar to the baseline test. Motion is smooth. There is the same degree of
video artifacts as the baseline test; artifacts are apparent when quick motion changes a large number of
pixels. However, latency in the 150ms range (one-way) does not produce substantially different video
quality than the baseline test.
A copy of this archive can be viewed at http://tools.cisco.com/cmn/jsp/index.jsp?id=84463
MPEG-4 has a high inter-frame dependency and artifacts become pronounced around 1 percent packet
loss. In this archive, the artifacts are more pronounced than both the baseline and the previous test. They
linger substantially longer. In many cases, the disruption of video quality is to such a degree that the
subject is not identifiable.
The white circle overlay on the snapshot calls out an area of the image from which the subject has
recently moved. His movement is from the right to left in the frame. What occurred in the video image
is commonly called microblocking, tiling , mosaicking, or pixelating. These are terms used to describe
a condition when the contents of a macroblock is missing or in error. Macroblocks are noticeable in an
image as square-areas in the picture do not have complete information. The macroblock could be seen
as a single color or a low-resolution block with noticeable edges.
Tip A macroblock represents a block of 16 by 16 pixels. The contents of the macroblock contains both
luminance (brightness) and chroma (color) definitions.
From this example, it is apparent that packet loss greatly impacts the video quality of this surveillance
image. To address this, PfR is configured to select the path with packet loss as the primary differentiator
between multiple links.
A copy of this video archive can be viewed at http://tools.cisco.com/cmn/jsp/index.jsp?id=84462
Topology
In the test topology, two links exist between the cameras and Media Server. These are FastEthernet links
with a delay and loss generation tool configured to introduce 5 percent packet loss on the VLAN 262
(upper) link with a RTT of approximately 71ms. The second link, the lower link shown, has no loss but
has the same 71ms round-trip delay. The MOS score of the link with the packet loss was 2.95 while the
other link was 4.06. The topology is shown in Figure 28.
vpn-jk2-7206-1
802.1x trunk
VLAN 262
Loss 192.168.16.0/24
192.0.2.2
VLAN 282
IP
IP 192.168.16.32
Axis 223M
192.168.16.30 IP Camera
Cisco 2500
226353
IP Camera
Without PfR enabled, both links are in the IP routing table and Cisco Express Forwarding (CEF) load
shares over the two links, based on source and destination IP address. In this example, both IP cameras
are routed over the link with loss. This can be seen with the show ip cef exact-route command.
vpn-jk2-7206-1#show ip cef exact-route 192.168.16.30 192.0.2.2
192.168.16.30 -> 192.0.2.2 : FastEthernet0/1.262 (next hop 192.168.12.2)
vpn-jk2-7206-1#show ip cef exact-route 192.168.16.32 192.0.2.2
192.168.16.32 -> 192.0.2.2 : FastEthernet0/1.262 (next hop 192.168.12.2)
CEF does not take into consideration link characteristics. It uses a hash to determine which link is used
for any one source and destination IP address pair. Based on the IP address of the source addresses, both
cameras happen to use the same link. CEF can provide a degree of load sharing as the number of
source/destination pairs increase, because statistically traffic will routed across both links. CEF can
provide a degree of load sharing, but not load balancing. It has no mechanism to select an alternate path
if the WAN performance is degraded due to latency or packet loss. At this point in the test, the OER
master controller was administratively shutdown.
PfR Configuration
In this configuration, both master controller and the border router exist on the same router: the Cisco
7200 Series at the campus location. A similar configuration is implemented on the branch router. PfR
has a requirement for at leas two external links (exit points) and one internal interface. These are shown
configured under the border router section of the configuration.
Also a requirement of PfR, two equal cost routes, or parent routes, are included in the routing table. They
are in the routing table from the two static routes defined in the configuration. In this example, they are
default routes (0.0.0.0 / 0.0.0.0), but any equal cost route to the destination subnet is sufficient.
The destination network is explicitly identified by a prefix-list definition, as referenced in the oer-map
named LOSS, which is invoked by the policy-rules command under the master controller definition.
Learn mode is configured, but these statements apply to traffic observed in the NetFlow cache, traffic
that is also on the network but not explicitly identified by the oer-map command.
The relevant configuration on the Cisco 7200 series router for PfR is shown below:
!
hostname vpn-jk2-7206-1
!
key chain PURPLE
key 10
key-string 7 xxxxxx
!
oer master
policy-rules LOSS
logging
!
border 192.168.16.1 key-chain PURPLE
interface FastEthernet0/1.282 external
interface FastEthernet0/1.262 external
interface FastEthernet0/1.216 internal
!
learn
throughput
delay
periodic-interval 0
monitor-period 1
expire after time 30
aggregation-type prefix-length 27
no max range receive
mode route control
mode select-exit best
!
!
oer border
local FastEthernet0/1.216
master 192.168.16.1 key-chain PURPLE
!
!
ip route 0.0.0.0 0.0.0.0 192.168.13.2 name OER_Parent
ip route 0.0.0.0 0.0.0.0 192.168.12.2 name OER_Parent
!
ip prefix-list SITE_130 seq 5 permit 192.0.2.0/27
!
oer-map LOSS 10
match traffic-class prefix-list SITE_130
set mode select-exit best
set mode route control
set mode monitor fast
set resolve loss priority 1 variance 10
set loss relative 100
set active-probe jitter 192.0.2.1 target-port 32000 codec g729a
set probe frequency 10
!
end
The oer-map command specifies that the ‘best’ exit is used, and the monitor mode fast command is
configured to provide for continuous probing of all exits at 10 seconds frequency. An explicitly
configured active jitter probe is enabled using the G729a codec. The IP address target of the probe is the
branch router VMSS network module logical interface IP address. On the branch router, the ip sla
responder command must be configured so that the probes are replied to by the branch router.
Enabling PfR
In this test, the video feeds are active and being archived. PfR is enabled by entering configuration mode
on the Cisco 7206 router at the campus location and initiating operation by issuing the no shutdown
command to the master controller. This function is shown as follows:
vpn-jk2-7206-1(config-oer-mc)#no shut
vpn-jk2-7206-1(config-oer-mc)#
Aug 12 11:04:48.110 edt: %OER_MC-5-NOTICE: System enabled
Aug 12 11:04:51.870 edt: %OER_MC-5-NOTICE: BR 192.168.16.1 UP
...
Aug 12 11:04:52.062 edt: %OER_MC-5-NOTICE: Uncontrol Prefix 192.0.2.0/27, Traffi
c Class in Fast Mode
Aug 12 11:05:18.306 edt: %OER_MC-5-NOTICE: Route changed Prefix 192.0.2.0/27, BR
192.168.16.1, i/f Fa0/1.282, Reason None, OOP Reason Timer Expired
From the timestamps in the syslog messages, the elapsed time from the startup of operations to a point
where PfR is managing the explicitly configured prefix is approximately 30 seconds. The exit chosen is
the path with the least amount of packet loss. To view the current state of the network prefix, issue the
show oer master prefix command. Sample output is shown below:
vpn-jk2-7206-1#show oer master prefix
OER Prefix Statistics:
Pas - Passive, Act - Active, S - Short term, L - Long term, Dly - Delay (ms),
P - Percentage below threshold, Jit - Jitter (ms),
MOS - Mean Opinion Score
Los - Packet Loss (packets-per-million), Un - Unreachable (flows-per-million),
E - Egress, I - Ingress, Bw - Bandwidth (kbps), N - Not applicable
U - unknown, * - uncontrolled, + - control more specific, @ - active probe all
# - Prefix monitor mode is Special, & - Blackholed Prefix
% - Force Next-Hop, ^ - Prefix is denied
U U 0 0 0 0
72 72 0 0 723 1
3 0 0 0
In the output above, there are several items of interest. First, the prefix is in HOLDDOWN state. This is
because the route for the prefix has recently changed. A prefix is placed in HOLDDOWN state to avoid
link flapping and resulting destabilization of the network-wide routing tables. The exit bandwidth (EBw)
and the input bandwidth (IBw) are shown. There is a great disparity between the two, although not
unexpected. The traffic flow is from cameras to Media Server and very little traffic is destined for these
cameras in this topology. Only control plane traffic would be sent to the cameras. The current exit
interface (Fa0/1.282) is shown and this can also be verified by viewing the routing table. The short-term
active delay and jitter is 72ms and 3ms, respectively.
Tip The show oer master prefix 192.0.2.0/27 detail command can be used to provide more verbose
information on this prefix.
In a production network with two links between camera and Media Server, 5 percent packet loss is
obviously an excessive amount of loss that should be identified by the enterprise network management
system (NMS) function. The link with this excessive amount of loss must be taken out-of-service and
corrected before being brought back online; however, PfR can circumvent the problem and take almost
immediate action to preserve the quality of the video. PfR therefore is an important tool to address
problems that may be a temporary disruption or need a short-term solution until a log-term fix can be
implemented.
Summary
Packet loss dramatically degrades video quality. Constant or sustained packet loss at levels of 1 percent
or more will decrease the usefulness of video images. Because of the forensic nature of IPVS,
minimizing packet loss is critical to this video application. Loss can be attributed to hardware or soft
failures that may not be identified by Layer-2 keepalives, static routes, or a Layer-3 Routing Protocol.
When multiple links exist between the source of the video image and the storage system, PfR is an
effective tool to select the best among several links between the video endpoints.
Feature Overview
WAAS implements both data compression and optimization of the TCP session across the WAN between
the branch (or edge) WAE and the core WAE. Two compression techniques are implemented: Persistent
Lempel-Ziv (LZ) compression and Data Redundancy Elimination (DRE). LZ compression can achieve
compression ratios in the order of 2:1, 5:1 or 100:1 if the data contains common strings or phrases. This
form of compression is helpful for data that has not been previously seen or suppressed by DRE. DRE
operates by maintaining a database of data that has been seen previously traversing the network. One
advantage of DRE is that it is application-independent, meaning the redundant data may be part of a
HTTP session or iSCSI archive and if commonalities exist, DRE can eliminate the redundant traffic.
DRE can eliminate up to 99 percent of redundant network traffic and provide up to 100:1 compression.
However, both Motion JPEG and MPEG4 / H.264 camera feeds are compressed by the encoding function
of the IP camera. Given this fact, the prospects of dramatic compression ratios by either LZ or DRE
compression is unlikely. The data in this section supports that assumption.
WAAS uses the transport flow optimization (TFO) features to optimize TCP traffic. The specific
techniques are as follows:
• Windows scaling (RFC 1323)
• TCP Initial Window Size Maximization RFC 3390
• Increased Buffering
• Selective Acknowledgement (SACK) (RFC 2018)
Note that a WAN transport with sufficient bandwidth to transport the video surveillance feeds are likely
based on some form of Metro Ethernet service or DS3. DS3 bandwidth is capable of speeds up to 45
Mbps and Metro Ethernet may range in one to 10Mbps increments, using a 10/100/1000 Mbps interface
handoff. Metro Ethernet services are usually policed by class or in aggregate by the service provider
according to the contracted service. In the lab testing environment, between 10 to 20Mbps of WAN
bandwidth was needed to transport the camera feeds for 1 to 4 cameras in the deployment. Given a
viewing station observing 4 feeds simultaneously, with each feed at a target bit rate of 1Mbps, would
therefore require approximately 4Mbps per viewing station. With these data rates as an example, it is
obvious that viewing or archiving the video surveillance data across the WAN requires more bandwidth
than a single T1 to the branch location.
Windows scaling and the enhanced buffering algorithm increase link utilization and take advantage of
the available bandwidth. While these techniques may be optimal in a T1 WAN environment, the sheer
amount of WAN bandwidth required for this deployment may render the advantages of these techniques
less effective. Selective Acknowledgement provides efficient packet loss recovery and retransmission. If
the WAN also transports UDP/RTP-based video, such as is the case with Telepresence and
H.264/MPEG-4-based IP Video Surveillance, the loss needs to be closely monitored and addressed to
preserve the video quality of these connectionless video feeds. Ideally, the WAN will exhibit very low
loss and minimalize the need for selective acknowledgement.
Key Concepts
Some basic concepts must be understood to better understand the nature of the traffic and applications
tested in this section. WAAS does not optimize traffic that is non-TCP (i.e., UDP or ICMP) traffic.
Because H.264/MPEG-4 is typically RTP/UDP encapsulated, there is no optimization if this traffic is
traversing the WAAS optimized WAN. Currently, all traffic between client viewing station and Media
Server is TCP-based. Both MPEG-4 and Motion JPEG camera feeds, live, or archived are encapsulated
in TCP. Motion JPEG camera feeds are typically TCP encapsulated. The Video Surveillance Media
Server (VSMS) version tested is 6.0.0 and the Video Surveillance Operations Manager (VSOM) is 4.0.0.
This version supports a Motion JPEG feed from the Axis 223M camera, TCP-based, and this camera was
installed in the campus location to provide a TCP-based feed across the WAN. Currently, the Cisco Video
Surveillance IP Camera (CIVS-IPC-2500) is not supported for MJPEG from VSMS 4.0.
Warning Future releases of the client viewing station code are slated to incorporate RTSP support that may
implement MPEG-4 streams between the media server and viewing station to UDP.
The WAAS tested version is 4.1.1c for the branch WAE, core WAE, and WAAS Central Manager. The
video component in this version relates to Windows Media live video broadcasts that use RTSP over
TCP. The video accelerator implemented by this feature eliminates duplicate video streams on the WAN
and creates multiple streams to serve multiple clients on the LAN. This video acceleration is not
applicable to IP Video Surveillance.
WAAS
PfR
WAN
WCCP WCCP
226355
In these tests, traffic is intercepted with Web Cache Communication Protocol version 2 (WCCP v2) and
redirected to the WAE. WCCP v2 supports any IP protocol (including any TCP or UDP). Intercepted
TCP traffic is optionally a candidate for optimization. The WAE adds information to the TCP header to
flag the next WAE that this traffic is being optimized. In the test lab, NetFlow is used to analyze the
extent of WAN bandwidth savings. From the analysis of that data, it is noted that the WAAS sets the
Explicit Congestion Notification (ECN) flag in the ToS byte. Because NetFlow v5 reports flows based
on source/destination IP address, port, protocol, and ToS byte, a flow with the ECN bits set and one
without is reported, even though they are actually part of the same flow if the ECN bits are ignored.
Topology
The tested topology is shown in Figure 31 discussed below.
Campus
WAAS-CM Core-WAE
vpn-jk2-7206-4
DMVPN
WAN
.8 .7
Branch
LAN/MAN/WAN 192.168.32.0
VLAN 293 VLAN 291
192.168.16.0/24
PfR
10.81.7.1 (250)
VLAN 294 VLAN 292
IP
IP 192.168.11.150 (256)
192.0.2.97 (210) 192.168.16.32
IP
Axis 223M
IP Camera
iSCSI 192.168.16.4
192.0.2.70
Viewing
226356
WCCP Server
192.0.2.65 Station
Media Server
NME-16ESW NME-VMSS-HP32
Site 140 Operations Manager
Cisco 3845 ISR
• The campus 7200 Series router has a VLANs for WAAS-CM and core WAE appliance
• A campus VLAN for viewing station and a Motion JPEG (Axis 223M) camera.
• The WAN is dual FastEthernet links with two delay generation devices to introduce loss, latency,
and jitter
PfR is implemented similarly on both the campus and branch router. WCCP is configured on the logical
interface of the NME-VMSS-HP32 and on the VLAN of the viewing station/IP camera at the campus.
Note that there is a Motion JPEG (Axis 223M) configured camera at the campus and transporting the
video to the branch. Typically, a video surveillance deployment would not transport a video feed from
the campus to a branch location for management and storage. It is not a recommended configuration, but
it was inserted into the topology to demonstrate that WAAS could intercept TCP-based camera feeds
across a WAN environment. Several customer deployments have been planned that require a single
remote IP camera at an isolated location with the Media Server role at a larger branch deployment or
campus location. This camera is included in the topology as a demonstration of that topology.
Once validated, the branch WAE device can be selected. The screen snapshot in Figure 32 provides an
idea of the GUI interface available to the network manager.
From the device dashboard screen shown above, the reports for the WAE can be viewed, the device can
be managed by Telnet or a WEB browser, and other pertinent information like software version, alarms,
IP address, and the MAC address can be displayed.
For the branch and core WAE to identify themselves to the CM, the configuration on the WAE must
include the address of the CM; in the following example, 192.168.32.8.
vpn1-3845-1-WAE#sh run
! WAAS version 4.1.1c
! (build b16 Nov 5 2008)
!
device mode application-accelerator
!
hostname vpn1-3845-1-WAE
!
… [lines removed]
!
central-manager address 192.168.32.8
cms enable
!
! End of WAAS configuration
Once that is configured and the WAE contacts the CM, the remote WAE devices can be managed from
the CM GUI interface.
Test Goals
The goal of this testing was to demonstrate PfR routing traffic over the WAN link that exhibits the best
path between branch and campus. Once PfR is operational in the WAN, WAAS is implemented to
optimize the TCP/HTTP traffic to and from the Video Management and Storage System (VMSS) logical
interface in the branch Cisco 3845 ISR.
The Cisco IOS Release tested at the branch is c3845-adventerprisek9-mz.124-15.T5 using the
NME-VMSS-HP-32 (version 4.0/6.0) network module and the NME-WAE-522-K9 network module
using WAAS version 4.1.1.c. To verify the bandwidth savings, both NetFlow and the WAAS CM Report
Effective WAN Capacity (bandwidth savings) data are used.
The approach is therefore to first describe the WAN characteristics, examine the PfR configuration, and
then enable WAAS on the topology. The PfR configuration in this section builds upon the configuration
in the previous section. In this testing, PfR is now managing both on packet loss and delay. Loss is the
first priority and delay is the second priority. In testing, path changes are triggered by both loss and delay.
WAN Characteristics
On the two WAN links, a latency and packet loss tool is used to introduce loss, latency, and jitter. The
values shown are applied in each direction. Both links have packet loss of one packet in every 10,000
packets, or 1/100th of 1 percent loss. Delay is in the range of 30 to 40 milliseconds on one link and 40
to 80 milliseconds on the other link. The variation in delay introduces jitter into the traffic. These values
are shown in Figure 33.
vpn-jk2-7206-4
* drop one-in 10000
* delay 30-40ms
Gi 0/1.292
PfR
Gi 0/1.294
* bidirectional-enabled
Cisco 3845 ISR incrementally during test
At the beginning of the test, neither WAN link had any appreciable loss or delay, the tool is enabled
during the test to simulate WAN links that are changing characteristics over a period of time.
PfR Configuration
The PfR configuration deployed in this testing uses the Fast Reroute feature. The Fast Reroute feature
probes all exits continuously. This allows PfR to have the current state of all managed links reflected in
its database. An explicitly configured active jitter probe (UDP jitter) is configured to characterize the
delay, loss, and jitter of all exits. This probe also provides voice statistics such as Mean Opinion Score
(MOS) although MOS is not, in this testing, used to make path selection determinations. PfR is selecting
the best path, rather than a path that simply meets the criteria. Loss is the first priority, then delay as the
second priority. The probe frequency is every 10 seconds.
The oer-map command that implements this configuration is shown as follows:
oer-map LOSS 10
sequence no. 8444249301975040, …
match ip prefix-lists: CAMPUS
backoff 300 3000 300
delay threshold 80
holddown 300
periodic 0
*probe frequency 10
*mode route control
*mode monitor fast
*mode select-exit best
*loss relative 100
jitter threshold 20
mos threshold 3.60 percent 30
unreachable relative 50
next-hop not set
forwarding interface not set
*resolve loss priority 1 variance 10
*resolve delay priority 2 variance 10
*resolve utilization priority 12 variance 20
This oer-map command is referenced in the configuration sample by the policy-rules statement shown
later in this document.
Given the low amount of loss in the test environment (1/100th of 1 percent) and that delay is incurred
for all traffic, it is not unexpected to occasionally observe route changes alternate between loss and
delay. In the Performance Routing (PfR) Integration chapter it was shown that PfR can manage links
based on loss, and there was a high amount of loss on one link verses the other. In this test, loss is very
minimal and the same on both links during the test, while the links have different delay characteristics.
The border router and master controller are both configured on this branch router, the key-chain of
PURPLE is not shown, but is a requirement of PfR.
oer border
local Loopback0
master 192.168.0.1 key-chain PURPLE
!
The WAN interfaces are VLAN 293 and 294, these VLANs attach to the delay and loss appliance.
interface GigabitEthernet0/1.293
description To vpn-jk2-7206-1 for PfR
encapsulation dot1Q 293
ip address 192.168.15.6 255.255.255.252
!
interface GigabitEthernet0/1.294
description To vpn-jk2-7206-1 for PfR
encapsulation dot1Q 294
ip address 192.168.15.2 255.255.255.252
!
!
interface Integrated-Service-Engine2/0
description NME-WAE-522-K9
...
ip wccp redirect exclude in
!
This interface is an internal interface for PfR and is configured for WCCP redirection; therefore,
traffic entering and leaving this interface are candidates for WAAS optimization.
interface Integrated-Service-Engine3/0
description NME-VMSS-HP32
ip address 192.0.2.64 255.255.255.254
ip wccp 61 redirect in
ip wccp 62 redirect out
...
PfR requires parent routes in the routing table. These routes identify the campus subnet of the
viewing station and IP camera. The corresponding prefix-list selects traffic for the oer-map.
!
ip route 192.168.16.0 255.255.240.0 192.168.15.1 name OER_Parent
ip route 192.168.16.0 255.255.240.0 192.168.15.5 name OER_Parent
Note The target of the active-probe defined above is the campus router with an IP address of
192.168.16.1. This router is also contains a similar PfR configuration. The UDP jitter probe
requires the ip sla responder command in the configuration.
PfR Verification
To verify PfR is managing the path to the campus network prefix where the viewing station and IP
camera resides, the output of the show oer master prefix detail command is shown.
vpn1-3845-1#show oer masert prefix detail
Prefix: 192.168.16.0/20
State: INPOLICY Time Remaining: @0
Policy: 10
…
In the above output, under Most recent data per exit, the active short and long-term delay values are 75
and 128 milliseconds. This is consistent with the WAN characteristics described previously. Also, the
active short-term jitter is 4 and 11 milliseconds, which is a result of the range of latency values
introduced by the test tool on each link.
WAAS Implementation
WAAS is also tested and documented in the V3PN large scale IPSec aggregation testbed and included
in the following document:
• Transport Diversity: Performance Routing (PfR) Design Guide
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/Transport_diversity/Tran
sport_Diversity_PfR.html.html
The traffic profile used in the PfR and WAAS testing consisted of VoIP and data. The testing referenced
here, WCCP enabled on the VMSS logical interface and therefore the target traffic for optimization is
the HTTP requests the Client Viewing Station (Internet Explorer) makes to the VSOM web server. The
nature of this traffic is video feeds displayed on the PC as well as the underlying web interface. Because
in this phase of testing the Axis 223M camera is also located on the campus subnet, the TCP session for
the Motion JPEG is also traversing the WAN to the Media Server IP address under the VMSS logical
interface. This traffic is therefore also a candidate for optimization.
Figure 34 illustrates these flows to and from the VMSS logical interface.
LAN/MAN/WAN
IP WCCP IP
192.0.2.98
UDP 192.168.16.32
IP 192.0.2.65 Axis 223M
192.0.2.99 NME-VMSS-HP32 IP Camera
WCCP 192.168.16.4
226359
Viewing
Station
The flow from the IP camera to the Media Server is Motion JPEG (MJPEG) is at 5 video frames per
second. The flows between VSOM and the Viewing Station are MJPEG/MPEG-4 (three cameras) along
with the the HTTP control traffic. To verify these flows are candidates for optimization, the accelerated
flows can be displayed on the branch WAE network module as shown in the following example:
vpn1-3845-1-WAE#show statistics connection all
D:DRE,L:LZ,T:TCP Optimization,
C:CIFS,E:EPM,G:GENERIC,H:HTTP,M:MAPI,N:NFS,V:VIDEO
There are a total of five TCP/HTTP flows being optimized by TFO and targeted for DRE and LZ
compression. This is signified by the THDL designation at the right of each connection detail line. The
two flows that are listed as ‘No Peer’ are the camera feeds on the branch LAN to the Media Server. These
are not optimized because there is no WAN transport of these feeds, the camera feeds are local to the
router.
Reduction % Reduction %
Bandwidth (include (Exclude Pass-through Traffic Application Traffic
Savings Bytes pass-through) Pass-through) (Bytes) (Bytes)
769,179,772 6 10 5,128,480,196 12,473,380,864
The WAN bandwidth savings is shown at less than 10 percent. As a point of reference, the test results in
the Transport Diversity: Performance Routing (PfR) Design Guide demonstrated compression ratios in
the range of 3:1 to over 40:1 for Web and File Transfer sessions generated by Chariot/IXIA. From this,
it can be concluded that data traffic is more compressible than the video traffic used in this test.
WCCP Configuration
This section includes the WCCP configurations on the campus and branch router.
Campus Router
The relevant WCCP configuration for the campus router is as follows:
hostname vpn-jk2-7206-1
!
ip wccp 61
ip wccp 62
ip cef
!
interface FastEthernet0/1.216
description CAMPUS with IP Cameras and PC
encapsulation dot1Q 216
ip address 192.168.16.1 255.255.240.0
ip wccp 61 redirect in
ip wccp 62 redirect out
!
interface FastEthernet0/1.232
description CAMPUS with WAAS CM and Core WAE
encapsulation dot1Q 232
ip address 192.168.32.1 255.255.240.0
ip wccp redirect exclude in
!
end
Branch Router
The relevant WCCP configuration for the branch routers is as follows:
hostname vpn1-3845-1
!
ip wccp 61
ip wccp 62
ip cef
!
interface Integrated-Service-Engine2/0
description NME-WAE-522-K9
ip address 192.0.2.69 255.255.255.252
ip wccp redirect exclude in
interface Integrated-Service-Engine3/0
description NME-VMSS-HP32
ip address 192.0.2.64 255.255.255.254
ip wccp 61 redirect in
ip wccp 62 redirect out
ip flow ingress
ip route-cache flow
service-module external ip address 192.168.11.2 255.255.255.0
service-module ip address 192.0.2.65 255.255.255.254
service-module ip default-gateway 192.0.2.64
no keepalive
!
Summary
Video feeds from IP Video Surveillance cameras to the Media Server are TCP-based when the camera is
configured for Motion JPEG. Additionally, viewing live or archived feeds through VSOM by a client
viewing stations is also TCP/HTTP based for feeds which are either MJPEG or MPEG-4. While
TCP-based traffic can be optimized and compressed by WAAS, for this video traffic the compression is
on the order of less than 10 percent. Video feeds are compressed by the encoder of the IP camera before
being transported over the IP network. Additional compression by WAAS does not provide as dramatic
savings as is the case with typical user data traffic.
However, both WAAS and PfR can be implemented effectively together and PfR is shown to manage
multiple WAN links and select the path with the least loss and lowest delay.
iSCSI Overview
The iSCSI operates over TCP port 3260 in this implementation. It does not require any dedicated
cabling, it uses existing LAN switches and the IP network. iSCSI operates as a clear text protocol, there
is no encryption inherent in the protcol. If it is transported over a public WAN or the nature of the video
feeds require the need for data privacy, IPSec encryption must be deployed to meet that requirement. The
TCP session between the NME-VMSS and iSCSI appliance is persistent, or long-lived. It is only
terminated or initiated to recover from a timeout or manual shutdown.
Topology
The test topology is very similar to the topology used to test WAAS and PfR between branch and campus.
The notable difference is the placement of the iSCSI appliance. Previously, it was attached to a LAN
Gigabit Ethernet switch in the branch location. Now, it is connected to the LAN switch in the campus
location. The IP address of the server has changed accordingly. There are four IP Video Surveillance
cameras in the topology; an Axis 223M (MJPEG), Axis 207 (MPEG-4), Axis 207MW (MJPEG), and a
Cisco 2500 series (MPEG4). Results are consistent across all cameras. The iSCSI server is a Buffalo
(www.buffalotech.com) TeraStation Pro™ II iSCSI Rackmount Storage System. Figure 35 illustrates the
topology.
Campus
WAAS-CM Core-WAE
vpn-jk2-7206-4
DMVPN
WAN
.8 .7
Branch
LAN/MAN/WAN 192.168.32.0
VLAN 293 VLAN 291
192.168.16.0/24
10.81.7.1 (250) iSCSI WCCP
tranport PMOD
IP
camera feed
IP Viewing
IP 192.0.2.97 (210) Station
IP 192.168.16.4
192.0.2.70 iSCSI Server
226360
192.168.11.150
192.0.2.65
Media Server
NME-16ESW NME-VMSS-HP32
Site 140 Operations Manager
Cisco 3845 ISR
The path of the camera video feeds, iSCSI transport and location of the iSCSI server in the topology are
shown for reference.
Configuration
The relevant portion of the branch router configuration is shown in this section. The WCCP
configuration on the router is not changed from what was documented in the previous chapter. Because
the iSCSI TCP session originates from the NME-VMSS-HP32 logical interface
(Integrated-Service_Engine 3/0) the iSCSI TCP session is intercepted by WCCP configured on that
interface.
!
hostname vpn1-3845-1
!
boot-start-marker
boot system flash
flash:c3845-adventerprisek9-mz.124-15.T5
!
!
interface GigabitEthernet0/1.210
description IP Camera VLAN
encapsulation dot1Q 210
ip address 192.0.2.97 255.255.255.224
!
!
interface Integrated-Service-Engine2/0
description NME-WAE-522-K9
ip address 192.0.2.69 255.255.255.252
ip wccp redirect exclude in
service-module ip address 192.0.2.70 255.255.255.252
service-module ip default-gateway 192.0.2.69
no keepalive
interface Integrated-Service-Engine3/0
description NME-VMSS-HP32
ip address 192.0.2.64 255.255.255.254
ip wccp 61 redirect in
ip wccp 62 redirect out
ip flow ingress
ip route-cache flow
! service-module external ip address 192.168.11.2 255.255.255.0
service-module ip address 192.0.2.65 255.255.255.254
service-module ip default-gateway 192.0.2.64
no keepalive
!
The external IP address which was in use as the iSCSI local subnet, 192.168.11.0/24, is commented out
of the configuration.
The steps to move the iSCSI server from the branch to the campus is to:
Following the above changes, the relevant portion of the VMSS network module configuration is shown
as follows:
hostname VMSS-SITE140
storages iSCSI media1
target-ip 192.168.16.150
target-ip 192.168.16.150 volumeName iqn.2004-08.jp.buffalo:TS-RIGLB1E-001D7326
2B1E:array1 LUN 0
end storages-iscsi
end
Verification
To verify WAAS has selected the iSCSI TCP session for optimization, connection statistics for the
remote WAE can be displayed with the show statistics connection command. Detailed output from the
connection specific to the iSCSI TCP session is shown below:
vpn1-3845-1-WAE#show statistics connection conn-id 29275
Note The above command was issued on Wed Jan 14 14:06:04 edt 2009 and the start time of the WAAS
optimization is 9 January, demonstrating the persistence of the iSCSI TCP session.
WAN Characteristics
In this test, the WAN link in use has a random delay averaging 60 milliseconds in each direction with
packet loss of 1 packet per 10,000 packets.
Optimization Validation
In the previous section, the WAAS Effective WAN capacity report is used to demonstrate the bandwidth
savings. In this section, NetFlow is used as a demonstration of another method of validating the WAN
bandwidth savings. Understanding how NetFlow reports the flows prior to de-compression by the WAE
as well as from WAE to the application server also provides a means of understanding how WAAS
interception functions. In this test, a NetFlow export is configured on the campus router to a unix server.
These Version 5 flows are captured and summarized.
The complete record layout for NetFlow Version 5 Flow Record Format is available on www.cisco.com.
The SNMP index of the input and output interface is part of the flow record. In order to associate these
Ifindex values with the interface name, the show snmp mib ifmib ifindex command is issued on the
campus router and portions of the output are as follows:
FastEthernet0/1.291: Ifindex = 31
Both the WAAS compressed and optimized and the original flows are reported by NetFlow in the
exported records. Because the source and destination IP address and port numbers are unchanged by
WAAS, the Ifindex values are needed to identify the flows seen input from the WAN interface, and then
the flow as it is observed following WCCP redirection.
NetFlow summarizes and reports the flow based on the source and destination IP address, port number,
protocol, and ToS byte. The ECN bits are part of the ToS byte. The ECN field is bits 6 and 7 in the IPv4
ToS octet.
The layout of the ToS byte from RFC 3168 is as follows:
0 1 2 3 4 5 6 7
+-----+-----+-----+-----+-----+-----+-----+-----+
| DS FIELD, DSCP | ECN FIELD |
+-----+-----+-----+-----+-----+-----+-----+-----+
DSCP: differentiated services codepoint
ECN: Explicit Congestion Notification
WAAS sets the ECN bits and because NetFlow v5 reports all eight bites of the ToS byte, the flow
observed from the WAN interface is reported as two flows; with and without the ECN bits set.
The Ifindex numbers displayed by the show snmp mib ifmib ifindex command are referenced on the
topology as follows:
• Ifindex 26 is VLAN 232—Core-WAE
• Ifindex 25 is VLAN 216—iSCSI Server
• Ifindex 31 is VLAN 291—WAN
• Ifindex 0 is the router chassis itself
These are shown in Figure 36.
Viewing
Station
192.168.16.4
iSCSI Server
226361
192.168.11.150
In testing, NetFlow v5 export is configured on the campus 7206 and summarized. The iSCSI traffic flows
are extracted from the summarized data and presented in Table 11. A single archive of one camera, an
Axis 207MW, is active during the data capture.
There is a single flow reported from the core WAE to the iSCSI server. This is the flow post WAE
processing. From the WAN to the core WAE, there are two flows reported: one flow with a ToS byte of
0 another with a ToS byte value of 2. The ToS byte value of 2 flow are packets in the WAN traffic with
the ECN field populated.
To compare the flows from the WAN to the core WAE and from the core WAE to the iSCSI server, we
must add the total bytes from WAN to core WAE (839,682 + 240762778) for a combined value of
242,602,460 bytes. The number of bytes for the core WAE to the iSCSI server is 245,092,552. By
comparing these two sets of values, the optimized verses the unoptimized traffic, the impact of WAAS
compression on the flows is less than two percent.
As a point of comparison and verification, the Media Server provides the details of that same data when
stored as an archive on the iSCSI disk. This output is shown as follows:
Archive History Details: 5MIN_207MW_only
This is a five-minute archive of a 1280 x 720 resolution Motion JPEG that on disk is 224,512 Kbytes.
The NetFlow export includes IP Layer-3 overhead which accounts for the higher number of bytes
reported by NetFlow.
Summary
Both Motion JPEG and MPEG4 or H.264 camera feeds are compressed by the encoding function of the
IP Camera. Persistent Lempel-Ziv (LZ) compression can achieve compression ratios in the order of 2:1,
5:1 or even up to 100:1 if the data contains common strings of characters. LZ compression can be
beneficial for data which has not been previously traversed the network and categorized by Data
Redundancy Elimination (DRE). DRE maintains a database of data that has been observed on the
network. DRE is application independent. DRE can eliminate up to 99 percent of redundant network
traffic and provide up to 100:1 compression.
Because the files being transported and archived to the iSCSI server are solely video feeds, and this data
has been compressed by the encoding function of the IP cameras, the iSCSI transport shows little
bandwidth savings. However, WAAS can be very instrumental in compressing application data to free
bandwidth for other uses, including network video traffic.
In the Virtualization, Isolation and Encryption of IP Video Surveillance chapter, a more detailed
discussion on implementing both policy-based and control plane access control is provided. Each
enterprise deployment must balance the need for access control to resources against the cost and
complexity. The next two chapters provide the network manager with a review of the techniques to
deploy very basic or very advanced access control techniques.
Site B
Site A 10.1.2.7.27
10.94.162.202 Access-List IN
Media Server
Operations Virtual Matrix
Router B
224652
Manager
Router A
OM Viewer VM Viewer
10.94.162.232 10.94.162.205
The following access lists shows simple ways to block traffic to these resources and control what devices
can receive video streams. The same examples can be used if a firewall is in place to protect video
streams.
The syntax may vary when using different IOS or firewall devices.
The following access list may be applied to Router B to allow traffic destined for the servers on Site B.
interface Multilink1
ip address 10.1.20.2 255.255.255.252
ip access-group ALLOW_VMS in
ppp multilink
ppp multilink group 1
!
!
ip access-list extended ALLOW_VSM_TRAFFIC
permit tcp any host 10.1.27.27 eq www
permit tcp any host 10.1.27.27 eq 1066
permit tcp any host 10.1.27.27 eq 8086
deny ip any any
The access-list is applied to the Multilink1 interface on the incoming direction and specifies what traffic
can reach the server Site B. This access list allows any hosts to reach the 10.1.27.27 server and blocks
all other types of traffic. Access lists have an implicit deny statement at the end of the list in order to
block traffic types that were not explicitly permitted with the access list.
The access-list only allows the following traffic types to reach the server with IP address 10.1.27.27:
• HTTP traffic. This traffic is required for all viewers to reach the Media Server and receive video
streams
• TCP port 1066, required by the VM monitor client to reach the Virtual Matrix server
• TCP port 8086, required by the Operations Manager to reach the Virtual Matrix server
The following example shows an access-list with more granular statements to allow traffic only from
specific hosts and block any other hosts from access video streams.
interface Multilink1
ip address 10.1.20.2 255.255.255.252
ip access-group ALLOW_VSM_HOSTS in
ppp multilink
ppp multilink group 1
!
!
ip access-list extended ALLOW_VSM_HOSTS
permit tcp host 10.94.162.202 host 10.1.27.27 eq 8086
permit tcp host 10.94.162.205 host 10.1.27.27 eq 1066
permit tcp host 10.94.162.232 host 10.1.27.27 eq www
permit tcp host 10.94.162.205 host 10.1.27.27 eq www
deny ip any any
This access list is also applied to the incoming traffic of Router B and only allows traffic from the hosts
on Site A to reach the server resources at 10.1.27.27. This example allows the network administrator to
ensure that video streams reach only the intended recipients.
The diagram in Figure 37 does not show IP Cameras or encoders but the traffic from those devices can
also be blocked or configured to reach only the intended Media Server acting as the direct proxy.
For MJPEG transmission, Media Servers communicate with edge devices using TCP port 80 (HTTP) but
in some cases a different transmission and protocol may be selected.
When using MPEG-4 video transmission, the Media Server communicates with cameras using unique
UDP port numbers. The ports listed in Table 12 show the UDP ports used by different manufacturers.
The network path must allow for the appropriate TCP and UDP ports to travel freely between edge
devices, application servers, and viewing stations. If access control lists (ACL) or firewalls are deployed
between the devices, they should be configuration to allow traffic between all video surveillance devices.
Type 0 Passwords
In Cisco IOS, type 0, or clear text passwords are stored without the benefit of any hash or encryption
algorithm. Here is an example of the configuration file with a clear text password.
no service password-encryption
username test password 0 w3nd0v3r
Passwords for the IP cameras defined to the VMSS network module are stored as .xml files with the
password, username, camera IP address, and other configuration information in clear text.
Type 7 Passwords
Type 7 passwords are obfuscated, not encrypted. These passwords can be displayed in clear text by
several publicly available scripts, as does the Cisco IOS show command ‘show key chain’. An example
username with the type 7 password is entered and then displayed.
service password-encryption
username test password 7 044C58080B715A1D1B
!
key chain decrypt
key 1
key-string 7 044C58080B715A1D1B
!
The Type 7 passwords are used for PAP configurations, as with PAP, passwords are sent over the circuit
"in the clear". Cisco IOS must have some means of recovering the original clear text from hashed value
of the type 7 password for PAP and other protocols.
Type 5 Passwords
Type 5 passwords are the most secure of the three. There is currently no known method for decrypting
a type 5 password, but can compromised by a initiating a brute-force or dictionary attack. An example
of a type 5 password from a Cisco IOS configuration file is as follows:
username wendover privilege 15 secret 5 $1$02OG$.fgh.mKdXD8hiVOUi6kb6/
IP Camera Passwords
These usernames and passwords are stored in the individual camera configuration files clear text and by
default, require no user authentication on the VMSS network module to view the files. This has been
identified by defect
CSCsu36435 ISR VMSS IP Camera passwords displayed in clear text without authenticat
While type 7 passwords obfuscation could be used for the camera username and password, which would
provide some degree of protection, the more pressing issue with the CSCsu36453 defect is the fact that
no authentication is required to see the .XML configuration files by default. The next section describes
one method of addressing this issue.
number assigned to the network module. To determine which port is used for the module, issue the
service-module command. The port number assigned is the TTY line plus 2000. In this example, the port
number for interface In2/0 is 2130.
To prevent unauthorized remote access to the network module, and to the camera configuration files,
several Cisco IOS hardening concepts should be implemented to limit exposure.
• Enable SSH on the Router—Enabling SSH first requires generating an RSA key for the router.
vpn-jk3-2651xm-1(config)#cry key generate rsa
The name for the keys will be: vpn-jk3-2651xm-1.ese.cisco.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
vpn-jk3-2651xm-1(config)#
Sep 12 15:15:57.562 edt: %SSH-5-ENABLED: SSH 1.99 has been enabled
• Disable Telnet access, enable SSH access —The router and VMSS network module should not be
network accessible through an insecure channel. Only allow SSH connections to the VTY ports of
the router.
line vty 0 4
• Permit access to the VMSS module from the host router— deny all other access. The forces the
use of SSH over the WAN. This example assumes the interface addressing as shown, with a TTY
line of 130 (TCP port 2130). The log option on the deny statement is optional, however is useful for
troubleshooting.
!
interface Integrated-Service-Engine2/0
ip address 192.0.2.33 255.255.255.252
service-module ip address 192.0.2.34 255.255.255.252
service-module ip default-gateway 192.0.2.33
!
!
ip access-list extended LOCAL_LOGIN
permit tcp host 192.0.2.33 any eq 2130
deny ip any any log
!
line 130
access-class LOCAL_LOGIN in vrf-also
login local
no activation-character
no exec
transport preferred none
transport input telnet
transport output none
!
!
line vty 0 4
transport input ssh
login local
!
In the above configuration example, remote access is SSH only, Telnet has been disabled, and the login
is locally authenticated. Access to the network module is only permitted from the IP address of the
logical interface and is also re-authenticated.
C i s c o S y s t e m s
|| ||
|| || Cisco Systems, Inc.
|||| |||| IT-Transport
.:|||||||:.......:|||||||:..
US, Asia & Americas support: + 1 408 526 8888
EMEA support: + 31 020 342 3888
UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.
You must have explicit permission to access or configure this
device. All activities performed on this device are logged and
violations of this policy may result in disciplinary action.
Username: wendover
Password:
Password OK
SITE150>
SITE150>
To verify that access to the VMSS network module is blocked without first logging on the host router,
initiate a telnet to port 2130 of the host router. The connection must fail and the logging option on the
access-list has identified the source IP address of the PC nictitating the Telnet session.
vpn4-3800-6#
Sep 12 15:12:44.150 edt: %SEC-6-IPACCESSLOGP: list LOCAL_LOGIN denied tcp
10.81.7.78(4223) -> 0.0.0.0(2130), 1 packet
This demonstrates that access to the configuration files of the VMSS network module can be secured
over the WAN by requiring SSH to access the host router, and to require multiple userid and password
checks before an administrator can access the network module.
References
Additional tools and techniques to protect and secure Cisco routers can be found in the Cisco Guide to
Harden Cisco IOS Devices - Document ID: 13608 at the following URL:
http://www.cisco.com/en/US/tech/tk648/tk361/technologies_tech_note09186a0080120f48.shtml
Additional security related documentation is available at www.cisco.com.
this technique and is synonymous with the term isolation. In layman’s terms, network virtualization is a
general concept, while path isolation is specific to maintaining a separation of the isolated network
partitions between two points in the topology.
Historically, the physical security manager and the network manager had little interaction between their
respective responsibilities. The physical security manager relied on a network infrastructure of coaxial
cable (COAX) between camera, matrix switch, CCTV monitor, and networked digital video recorder
(NDVR). Twisted pair (RS-485) is deployed for Pan Tilt Zoom control of analog cameras. The key
requirement of any video surveillance implementation is the three Rs: resolution, retention, and
reliability. Resolution in analog deployments is typically ‘4CIF/30’, meaning 704x576 pixels at 30
frames per second. Retention is based on the number of days and is either regulated by a government
agency, such as the State of Nevada Gaming Control board, a corporate policy, or the necessities of costs
and the available disk space. Reliability is accomplished through a combination of the separate physical
cable plant and human controls verifying the usefulness of the video images.
In many cases the physical security manager is going to be more confident in his ability to address the
surveillance needs of the enterprise with a reliable, physically separate, cable plant for which he has total
control.
Historically neither the physical security manager of value added resellers (VARs) are experts in IP
networking. Therefore, the idea of transporting video over the enterprise IP network, with cameras
sharing the same network with end-user workstations, servers, voice over IP (VoIP), and Internet traffic
is an unknown, a cause for concern for the physical security manager. The physical security manager
now must rely on the network manager for some degree of success and this is a barrier to acceptance.
Policy-Based
Policy-based network virtualization restricts the forwarding of traffic to a specific destination based on
some rule or administrative policy. These policies are independent of the control plane, meaning the
destination is reachable and it may be listed in the routing table, but it is administratively prohibited. The
most common implementation example is an access control list (ACL) on a router or firewall.
To implement policy-based controls, the router or firewall examines IP packets entering an interface and
either forwards or drops packets based on matching fields in the IP header, transport header, or in more
advanced implementations, some character string or fields in the payload of the packet. Firewalls also
implement general policy-based matches on the security level of the source and destination interface of
the packets. By default, firewalls permit packets to flow from a higher (more trusted) interface to a lower
(less trusted) interface and the return path of that session is dynamically permitted. Packets that must be
permitted from the less to more trusted interface must be explicitly defined and permitted.
Control Plane-Based
Control plane-based network virtualization is implemented by restricting the propagation of routing
information. In other words, the routing tables are virtualized. The IP networks are segregated by their
respective virtual routing table, or VPN routing and forwarding (VRF ) table. VRF-Lite is one method
of segmenting the routing tables, by creating virtual routing domains. These domains may reuse the same
IP network addresses, they need not be globally unique. The can use separate address spaces from the
remainder of the enterprise network or private address spaces based on RFC 1918 addressing. However,
to aid in troubleshooting, it may be easier for the enterprise network manager to allocate unique IP
addressing to each VRF domain. Allocating address space that facilitates summarization is as applicable
to a VRF as is the case with routes in the global routing table.
Both policy-based and control plane-based techniques can be implemented in a synergistic approach to
segment the network. The topology implemented in this sample deployment demonstrates both
techniques. A firewall is implemented to connect the global routing table and the IP video surveillance
domain ( IPVS VRF ) to allow a controlled and restricted access between the two domains.
IPSec Encryption
IPSec encryption provides privacy of the data, voice, and video on an IP network. Digital signatures is
an important component of any IPSec implementation, providing authenticity (verifying the identity of
the peer) and hashing techniques provide integrity (verifying packets have not been manipulated in
transit).
In many encryption implementations, a logical tunnel interface joins two or more crypto peers, which in
itself facilitates path isolation. Dynamic Multipoint VPN (DMVPN), generic routing encapsulation
(GRE) over IP Security (IPSec) , IPSec/GRE, and Static Virtual Tunnel Interfaces (SVTI) are all
examples of logical tunnel implementations. Group Encrypted Transport VPN (GET VPN) and Secure
Sockets Layer virtual private network (SSL/VPN) are examples of payload encryption that have no
logical tunnel interface. An IPSec implementation based on logical tunnels is more applicable to path
isolation than payload encryption, because the logical tunnel endpoints can be in the global routing table
with the tunnel itself residing in a VRF.
Multiple logical tunnels may be transported over a single physical path, providing an effective means of
path isolation without the additional costs of a separate physical circuit. Alternately Layer-2 virtual
circuit such as is implemented by ATM, 802.1Q trunking or Frame Relay could also be used, but there
is no inherent privacy, authentication, or integrity component as with IPSec.
Inter
Preamble Dest MAC Source MAC EtherType Payload CRC/FCS Frame
Gap
Inter
227072
Preamble Dest MAC Source MAC 802.1Q Header EtherType Payload CRC/FCS Frame
Gap
The 802.1Q header contains two fields of interest to the network manager: the VLAN identifier and the
priority code point, or IEEE 802.1p class-of-service (CoS). The CoS field may be used to mark packets
for the purpose of Layer-2 prioritization. The Cisco 4000 Series IP cameras can mark both CoS (Layer-2
QoS) and DSCP (Layer-3 QoS). Many LAN switches can prioritize frames based on the Layer-3 DSCP
value so the use of Layer-2 QoS marking may be of less importance than the VLAN identifier associated
with a tagged frame.
Note CSCsz45893 Layer-2 CoS (802.1Q/p) for 4000 Series IP Camera provides more information on
the switch port configuration to support this feature.
In the topology demonstrated in this section, IP cameras are attached to switch ports that are configured
as access ports associated with the appropriate VLAN, and the branch ISR routers are connected to the
switch over an IEEE 802.1Q trunk link. This configuration allows both corporate end-users to share the
same switch chassis as the IP video surveillance cameras, while maintaining isolation through unique
VLANS and IP addressing.
IP IP
tp-isp-7600-1
192.0.2.19 192.0.2.18
PoE
VLAN
206 Media
vs-rm150a Server
Cisco 7606
MPLS
Catalyst vrn-isp-core2 vrn-isp-core1
3560 192.0.2.2/30
vrn-isp-rm150 Operations
Manager
Catalyst Catalyst
4948 Catalyst Catalyst 2948
6506 6506 192.0.2.17/28
Pseudo
Wire VLAN
206
227073
Branch MAN/WAN Branch/Campus
One practical application of this topology is a deployment where no corporate user-access is required
and a single camera is sufficient for the business needs at the remote location. However, because the
video feed is transmitted across the MPLS pseudowire WAN before being archived on the Media Server,
packet loss must be managed by the service provider SLA and QoS marking, shaping, and queueing by
both the enterprise and service provider. Costs in this deployment must also be considered, because the
access circuit will likely be a dedicated T1/E1 that could be cost prohibitive. Single camera deployments
may be better served by a teleworker class router, such as a Cisco 880 Series and a business class
broadband access circuit.
While this topology may be implemented, the recommended solution is to store video locally, as close
to the camera generating the feed as practical, and only transport across the WAN for occasional viewing
or off-hours backup.
Implementing Virtualization
In this section the configuration of the switches, routers, and firewalls are discussed and the relevant
configuration commands are shown to implement network virtualization and path isolation to segment
the IP video surveillance devices and end-points from the global routing table. This segmentation of the
network is accomplished by isolation of the control plane and network address space at the branch
locations and campus command center by the use of VRF-Lite to create virtual routing tables. IP
networks are comprised of both Layer-3 (routed) and Layer-2 (switched) domains. VRF-lite (VRFs
without MPLS) is used in this enterprise network example to implement a virtual routing protocol
instance. To provide end-to-end segmentation, both Layer-2 and Layer-3 are virtualized and mapped to
each other accordingly.
Topology Diagram
The testing topology used is shown in Figure 40.
Corporate
Network to
Internet
Site 150
Cisco 3825-6 vrf
Tu 128 IPVS
352 vrf
IPVS
331
192.0.2.32/27 351
Tu 192 Media
vrf Server
331 IPVS
Cisco 2851-1
192.0.2.0/27 Global
Site 130 343 VSOM
Routing
Table
342 340 341 NMS
Corporate
Network to
Internet
192.0.2.64/27 Viewing
227074
Cisco 3845-1 Stations(s)
Site 140
In Figure 40, there are three branch locations each with a single Cisco ISR router. Both blue and grey
router icons are shown to represent virtualization of the routing table. The blue icons represent the global
routing table and the grey router icons represent the IPVS virtual routing table. The WAN aggregation
routers shown in the center of the diagram terminate the branch locations and connect to the corporate
network and Internet through separate DMVPN tunnels. These aggregation routers therefore are tunnel
aggregation routers for the branches in the topology, and are spoke routers for connectivity to the
corporate network. The aggregation routers are configured with HSRP on both the global routing table
interface to the firewall as well as the IPVS interface.
Topology Description
In Figure 40, the Video Management and Storage System (VMSS) and Analog Video Gateway (AVG)
network modules are logical interfaces. They, along with the DMVPN tunnel interfaces, are mapped to
a Layer-3 domain: the VRF. The tunnel source and destination IP address are in the global routing table
while the logical tunnel interface itself is in the video surveillance VRF. This separate VRF is named
IPVS (for IP Video Surveillance). The iSCSI appliances, IP cameras, and viewing stations reside on a
VLAN separate from the underlying corporate IP network and is in the IPVS VRF.
There are three branches shown in this topology example. Two branches demonstrate the deployment of
DMVPN and one branch uses multiple virtual circuits (simulating MetroE MAN/WAN) for path
isolation. At the branch locations, the iSCSI servers and IP cameras are in their own unique VLANs,
which are dedicated to their respective function. Separate VLANS exist for the normal end-user traffic
at the branch location and access to these devices are accomplished through the existing global routing
table.
To demonstrate policy-based access control, a Cisco ASA5510 firewall is deployed at the command
center location. This firewall includes two external interfaces, one in the global routing table and a
second in the IPVS VRF. The inside, or most secure interface, is connected to a LAN switch and a VLAN
to support the command center Media Server, VSOM, cameras, storage servers and viewing stations are
deployed. This inside interface uses a subnet of the IP network address space allocated to the IPVS VRF.
Access to the command center VLAN is controlled by firewall policy and static IP routes on the core
routers and firewall. The NAT/pNAT configuration on firewall as well as the security levels and
access-list permits communication from the IPVS VRF to the global routing table, provided that the
session is initiated from the command center VLAN. There is no inbound global routing table access
permitted to the IPVS VRF; only the return path to established sessions are permitted. Next, controlled
inbound access is implemented by deploying a VPN concentrator.
The VPN concentrator (Cisco VPN 3000 Series) is added to the topology to allow access for selected
users in the global routing table to the command center VLAN. The Cisco VPN client on the
workstations connects to the VPN concentrator to authenticate the end-user and create a private and
secured access to view live or archived video feeds. Adding the concentrator demonstrates a technique
by which an external agency, such as a law enforcement department, can be provided with secured and
authenticated access over the Internet/extranet.
Because the VPN concentrator allocates an IP address from the IPVS VRF address space, no NAT/pNAT
exists inside the crypto tunnel. There are issues with access to a VSOM/Media Server web addresses and
ports when these devices are behind a NAT/pNAT device. This is discussed in a separate section.
Address Table
Details of the IP addressing scheme in use for the following topology examples is shown in Table 3.
Implementation Overview
In the following sections, sample configuration files are shown to demonstrate the techniques used in
creating a virtualized network for IP Video Surveillance. These steps include:
• Defining the VRF and Mapping Logical Interfaces
• Mapping Layer-2 (VLAN) to Layer-3 (VRF)
• Configuring VRF-Aware Routing Protocol
• Configuring DMVPN Tunnel Interface
• Configuring WAN Aggregation Router
• Configuring Firewall Interface
• Configuring Firewall Management Interface and Software Version
• Configuring Firewall Routes, Access-lists and NAT/pNAT
• Configuring Policy-based Features of Cisco IP Surveillance Cameras
attached to access ports in VLAN 208 with an IEEE 802.1Q trunk port connecting the switch and the
ISR router. The IPVS iSCSI server is on VLAN 258. The end-user workstations are in the global routing
table. The topology is shown in Figure 41.
VLAN 258
iSCSI Server
VLAN 208
IP
IP
IP
227075
IP Cameras
The following sample configuration shows the router sub-interface for VLAN 208 and 258. They are
associated with the IPVS VRF.
vpn4-3800-6#
!
interface GigabitEthernet0/0.208
description inside interface for ip cameras
encapsulation dot1Q 208
ip vrf forwarding IPVS
ip address 192.0.2.49 255.255.255.240
!
interface GigabitEthernet0/0.258
description iSCSI Management Subnet
encapsulation dot1Q 258
ip vrf forwarding IPVS
ip address 192.168.211.1 255.255.255.0
!
From the switch configuration, the uplink port to the ISR router and the access port for the IP camera is
shown. The port for the iSCSI server would be similarly configured as the camera, but in VLAN 258.
The following is a sample configuration:
!
interface GigabitEthernet1/0/1
description trunk to vpn4-3800-6
switchport trunk encapsulation dot1q
switchport mode trunk
load-interval 60
priority-queue out
mls qos trust dscp
!
interface GigabitEthernet1/0/2
description CIVS-IPC-2500
switchport access vlan 208
switchport mode access
end
The mapping of the VLAN to VRF is the responsibility of the supporting router, as the VLAN ID and
the VRF name are associated with each other, because both references share the router sub-interface
configuration.
In the following section, the DMVPN tunnel interface configuration is shown for Tunnel 128. Tunnel
192 is configured similarly but not shown.
vpn-jk2-7206-1
28
Tu 1
Tu 1
92
227076
vpn-jk2-7206-2
This branch router has a point-to-point Metro-Ethernet MAN link to the primary headend router,
vpn-jk2-7206-1. This interface is in the global routing table and is VLAN 332 through the service
provider network.
!
interface GigabitEthernet0/1.332
encapsulation dot1Q 332
ip address 192.168.15.46 255.255.255.252
!
The logical tunnel interface is in the IPVS VRF, the tunnel source is the above interface in the global
routing table and the destination is Loopback 0 interface on vpn-jk2-7206-1, which is also in the global
routing table.
!
interface Tunnel128
ip vrf forwarding IPVS
ip address 192.168.15.130 255.255.255.192
ip mtu 1400
ip nhrp authentication FOO
ip nhrp map 192.168.15.129 192.168.15.40
ip nhrp map multicast 192.168.15.40
ip nhrp network-id 128
ip nhrp nhs 192.168.15.129
ip summary-address eigrp 65 192.0.2.0 255.255.255.224 5
tunnel source GigabitEthernet0/1.332
tunnel destination 192.168.15.40
tunnel key 128
tunnel protection ipsec profile IPVS_Branches_ipsec_profile
!
ip route 192.168.15.40 255.255.255.255 192.168.15.45 name vpn-jk2-7206-1_Loopback_0
!
end
A static route to the tunnel destination is included so that this tunnel interface has an affinity to the
physical interface; Tunnel 128 traffic is always transported over VLAN 332.
Corporate
Network to
Internet
vpn-jk2-7206-1
91
vrf
IPVS
Media
Server
Global
Routing
90
Table 220 VSOM
Corporate NMS
Network to
Internet
Viewing
Stations(s)
227077
192.0.2.128/27
The WAN aggregation router vpn-jk2-7206-1 has interfaces in both the global routing table and in the
IPVS VRF. For clarity, the interfaces in the global routing table are shown in blue in the following
sample configuration. The IPVS interfaces are shown in black text. The tunnel’s logical interface is in
the IPVS VRF while the tunnel source/destination IP addresses are in the global routing table.
vpn-jk2-7206-1#sh run b | beg interface Loopback0
interface Loopback0
description Loopback for Global RT
ip address 192.168.15.40 255.255.255.255
!
interface Tunnel128
description DMVPN tunnel/cloud to Branches
ip vrf forwarding IPVS
ip address 192.168.15.129 255.255.255.192
no ip redirects
ip mtu 1400
ip nhrp authentication FOO
ip nhrp map multicast dynamic
ip nhrp map multicast 192.168.15.40
ip nhrp network-id 128
ip nhrp nhs 192.168.15.129
ip nhrp server-only
ip route-cache flow
no ip split-horizon eigrp 65
ip summary-address eigrp 65 192.0.2.0 255.255.255.0 5
tunnel source Loopback0
tunnel mode gre multipoint
tunnel key 128
tunnel protection ipsec profile IPVS_Branches_ipsec_profile
!
interface Tunnel300
description DMVPN Tunnel to Enterprise/Internet
The Cisco ASA 5510 firewall is connected to the two WAN aggregation routers and there are
FastEthernet interfaces in both the global and IPVS VRF to the firewall. Two of the three branch routers
in this topology are cryptography-enabled and have a single MAN link between the branch and each
aggregation router. One branch, vpn1-3845-1 (Site 140), router demonstrates a branch without crypto on
the MAN, and to implement path isolation, there are two physical links, one in the global routing table
and one in the IPVS VRF.
Connectivity from this central command center location to the remainder of the corporate network and
to the Internet is provided by way of Tunnel300 in the global routing table.
In this topology, the firewall is functioning as a policy-based network virtual device and there are no
interface configuration commands that make the ASA 5510 VRF-aware. The interface named
Campus_IPVS is attached to VLAN 220 on the campus switch. Access to this address space from the
global routing table and branch locations in the IPVS VRF is policy-based. The firewall configuration
controls the access between the three interfaces.
Tip In this example, the IP subnets for the iSCSI management networks are not allocated from
contiguous address space. Had that been done, these three routes could have been consolidated
into a single route, as is the case with the 192.0.2.0 network. Address allocation that allows
summarization is an aid to reducing the size and complexity of configurations.
Lastly, the NAT/pNAT configuration implements the policy that the command center address space is
port address translated (PAT) to the global interface IP address. No address or port translation takes place
between the IPVS VRF address space at the branch locations and the command center.
global (DMZ_Global) 1 interface
nat (Campus_IPVS) 1 192.0.2.128 255.255.255.224
static (Campus_IPVS,DMZ_IPVS) 192.0.2.128 192.0.2.128 netmask 255.255.255.224
The advantage of selecting an address scheme that can be consolidated in this manner provides a simple
configuration on all IP cameras in the network, yet provides a reasonable level of access control that does
not require frequent updates.
Tip Both 192.0.2.0/24 and 192.168.0.0/16 are RFC3330 special use IPv4 addresses. 192.0.2.0/24 is assigned
as TEST-NET and used in documentation and example code. 192.168.0.0/16 is used in private networks
and is documented in RFC1918. Neither address block should appear, or be routed, on the public
Internet.
Summary
This section addressed the need for implementing a logically separate IP network infrastructure to
support an IP based video surveillance deployment in an existing enterprise network. Both control plane
virtualization as well as policy-based techniques are deployed. IPSec encryption is also implemented to
leverage the inherent path isolation of a logical tunnel as well as to make private the video feeds as they
traverse the MAN/WAN. Access to resources outside the IPVS VRF must be initiated from hosts on the
command center in order for the firewall to permit inbound packets. Because the IP addressing in use is
based on addresses that are not routed on the public Internet, the firewall implements NAT/pNAT of these
sessions from the IPVS VRF to the Internet or other enterprise address space.
In this next section, the configuration is enhanced to permit workstations external to the IPVS address
space to view video feeds.
Topology Description
To accomplish this, a VPN concentrator, a Cisco VPN 3080, is deployed on the remaining unused
interface on the Cisco ASA 5510 firewall. Client PCs connect to the VPN concentrator by installing the
VPN 3000 client software from www.cisco.com. Access to the VPN concentrator is authenticated on a
group name and key, as well as a userid and password. In these examples, the group/key and
userid/password are stored locally on the VPN concentrator and can be administered by the command
center security operations manager, or based on enterprise security policies, can be in an external
database. The external authentication server database option improves scalability and manageability.
Because the VPN concentrator uses IPSec encryption, the video feeds that are leaving IPVS VRF
through the command center VLAN are encrypted and hashed. In testing 3DES/HMAC-MD5 is used. To
limit outside access to the VPN concentrator, the firewall is configured to permit inbound access to the
outside interface of the VPN concentrator to only.
• UPD 500 (IKE)
• UDP 4500 (IKE/IPSEC with NAT-T)
• Protocol ESP (Protocol ‘50’)
• ICMP (for troubleshooting and verification of connectivity)
This firewall configuration, therefore, rejects all other packets that are not required for transporting the
IKE/IPSec tunnels and ICMP (ping). This, in addition to deploying a group/key and userid/password to
authenticate the end-users, is a commonly deployed best practice.
Other than the obvious differences associated with available bandwidth to the remote user, there is no
difference in the presentation of the video feed for a remote user connected through the VPN
concentrator versus a PC attached to the LAN in the command center.
Topology Diagram
The VPN concentrator consists of a public and private interface configuration. The public, or outside,
interface is attached to the remaining unused interface on the ASA5510. The private (or inside) interface
is attached to the LAN switch on VLAN 220, the command center VLAN. The security level of the ASA
interface connecting to the VPN concentrator is 20. Because this value is numerically higher than the
firewall outside interface with security-level 10, access-control lists are created on the firewall to allow
the port numbers and protocols permitted to reach the VPN concentrator.
Figure 45 illustrates where in the topology the VPN concentrator is located.
security-level 70
Command
Center
vrf IPVS
security-level 10
Media NMS
Server security-
level 20
Global Routing Table
Viewing
Stations(s) NAT/pNAT
VSOM
Firewall VPN
Branches
vrf IPVS Outside
security-level 50
192.0.2.0/24
227079
Inside
The revised interface configuration of the ASA 5510 and the IP addressing for the VPN concentrator is
shown in the following subsections.
Implementation Overview
To show how the VPN concentrator is deployed in the topology, the following configuration steps are
implemented or updated from the previous sections.
• Configuring VPN Concentrator Interface and Address
• Configuring Firewall Interface
• Configuring WAN Aggregation Routing
• Configuring Firewall NAT/pNAT and Routing
• Configuring Firewall Access-lists
• Configuring VPN Concentrator User/Group/Proposals
The remote clients are allocated an IP address from the configured pool. This assigned address is used
to identify the remote PC inside the IPSec tunnel interface. The address pool list used in this
configuration is five IP addresses from the 192.168.15.64/29 subnet. If more concurrent remote sessions
are required, a larger IP address pool must be allocated. Allocate as a large a pool as required, but not
more than necessary.
vpn2-3080-1: Address -> 2
The IP routing configuration on the VPN concentrator is straight forward. A default route is configured
to the firewall IP address and a network route is configured to 192.0.2.0/24. As discussed in the previous
sections, note the iSCSI devices and the WAN interfaces in the IPVS VRF are allocated from the
192.168.0.0/16 address space; therefore, with this configuration, the remote users can only reach IP
hosts on the 192.0.2.0/24 subnet: the VSOM and Media Servers. The IP cameras are on the 192.0.2.0/24
subnet, but access-control lists prevent any connectivity from source IP address in the address pool
192.168.15.64/29.
vpn2-3080-1: Routing -> 1
Static Routes
-------------
Destination Mask Metric Destination
------------------------------------------------------------
0.0.0.0 0.0.0.0 8 10.81.7.58
172.26.0.0 255.255.0.0 1 172.26.156.1
192.0.2.0 255.255.255.0 8 192.0.2.129
Note The 172.26.0.0 network is lab FlashNet for management of the device.
nameif Campus_IPVS
security-level 70
ip address 192.0.2.129 255.255.255.224
!
interface Ethernet0/1
description DMZ_IPVS VLAN 91
nameif DMZ_IPVS
security-level 50
ip address 192.168.15.99 255.255.255.248
!
interface Ethernet0/2
description DMZ_Global VLAN 90
nameif DMZ_Global
security-level 10
ip address 10.81.7.163 255.255.255.248
!
interface Ethernet0/3
description DMZ for VPN3080
nameif DMZ_VPN3080
security-level 20
ip address 10.81.7.58 255.255.255.252
!
There is no NAT/pNAT address translation between Ethernet 0/2 and Ethernet 0/3. The WAN
aggregation routers must have a route to the VPN concentrator IP address, 10.81.7.57.
The second route is included in the IPVS VRF, and is also redistributed to the dynamic routing protocol
to inform the branch routers of this route.
ip route vrf IPVS 192.168.15.64 255.255.255.248 192.168.15.99 name VPN3080_pool
!
The remainder of the WAN aggregation routers configuration addresses defining these two networks in
the appropriate prefix-list and route-map and then redistributing these networks under the appropriate
autonomous system (AS) number and VRF.
ip prefix-list ASA5510_VPN3080 seq 5 permit 10.81.7.56/30
!
route-map ASA5510_VPN3080 permit 10
match ip address prefix-list ASA5510_VPN3080
!
ip prefix-list COMMAND_CENTER seq 100 permit 192.0.2.128/25
ip prefix-list COMMAND_CENTER seq 101 permit 10.81.7.0/24
ip prefix-list COMMAND_CENTER seq 102 permit 192.168.15.64/29
!
route-map COMMAND_CENTER permit 10
match ip address prefix-list COMMAND_CENTER
Note EIGRP AS 64 is used to connect to the enterprise address space. EIGRP AS 65 is used to connect
to the branch networks for both the global routing table and the IPVS VRF.
Internal groups are configured on the VPN 3000 Concentrator's Internal Database.
ESP-3DES-MD5 with IKE Keepalive - Tunnel Type is Remote Access - Authentication Internal
IPSec UDP (allow NAT-T)
Current Users
-------------------------------------------------------------------------------
| 1. aprilmay | |
-------------------------------------------------------------------------------
User(s) arein group 'foo', IPSEC and WebVPN are selected as the tunneling protocol with a
30 minute idle timeout, Simultaneous Logins (5000) ESP-3DES-MD5 and store password
on client is permitted (when using the software client, authenticating user is prompted by
the VPN software client on the PC)
In testing the userid of aprilmay, the configured password is entered when prompted for this information
by the Cisco VPN client. The group name foo and group key are configured in the client software along
with the destination IP address of the concentrator, 10.81.7.57 and IPSec/UDP is defined as the transport.
Summary
This section addresses the need to provide secure, authenticated, network access from the enterprise
network and the public Internet to the video surveillance VRF for real-time viewing of surveillance
feeds. One method of accomplishing this is through the use of a VPN concentrator that can be accessed
by appropriately configured workstations. This technique extends access to the segemented and logically
isolated video surveillance deployment from any location with sufficient bandwidth to view the video
feed.
References
The concepts in this chapter are intended to be focused on a targeted deployment for implementing IP
video surveillance at the branch and central command center campus with controlled access from the
enterprise network. For additional deployment information and a more thorough discussion of these
concepts, refer to the following documents:
• Network Virtualization—Path Isolation Design Guide Network Virtualization 3.0 - CVD
http://www.cisco.com/en/US/docs/solutions/Enterprise/Network_Virtualization/PathIsol.html
• Ethernet Access for Next Gen Metro and Wide Area Networks
http://www.cisco.com/en/US/docs/solutions/Enterprise/WAN_and_MAN/Ethernet_Access_for_N
G_MAN_WAN_V3.1_external.html
• Other relevant Cisco Validated Design (CVD) design guides, refer to the following URL:
www.cisco.com/go/designzone
This chapter contains a topology diagram and the associated router, firewall, and switch configuration
files for the devices in this sample implementation. See Figure 1.
Corporate
Network to
Internet
Site 150
Cisco 3825-6 vrf
Tu 128 IPVS
352 vrf
IPVS
331
192.0.2.32/27 351
Tu 192 Media
vrf Server
331 IPVS
Cisco 2851-1
192.0.2.0/27 Global
Site 130 343 VSOM
Routing
Table
342 340 341 NMS
Corporate
Network to
Internet
192.0.2.64/27 Viewing
227074
Cisco 3845-1 Stations(s)
Site 140
vpn-jk2-7206-1
This configuration is for the upper WAN aggregation router shown in the topology diagram.
!
! Last configuration change at 13:06:43 edt Tue Aug 4 2009
! NVRAM config last updated at 13:07:50 edt Tue Aug 4 2009
!
upgrade fpd auto
version 12.4
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
!
hostname vpn-jk2-7206-1
!
boot-start-marker
boot system flash disk0:c7200-adventerprisek9-mz.124-15.T5
boot-end-marker
!
logging buffered 2000000
enable secret 5 [removed]
!
no aaa new-model
clock timezone est -5
clock summer-time edt recurring
ip wccp 61
ip wccp 62
ip cef
!
!
no ip dhcp use vrf connected
!
!
!
ip vrf IPVS
rd 100:10
route-target export 100:10
route-target import 100:10
!
no ip domain lookup
ip domain name cisco.com
ip host rtp5-esevpn-ios-ca 10.81.0.27
ip multicast-routing
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
multilink bundle-name authenticated
!
!
!
crypto pki trustpoint rtp5-esevpn-ios-ca
enrollment url http://rtp5-esevpn-ios-ca:80
revocation-check none
!
!
crypto pki certificate chain rtp5-esevpn-ios-ca
certificate 0D
3082023A 308201A3 A0030201 0202010D 300D0609 2A864886 F70D0101 04050030
6B310C30 0A060355 04081303 204E4331 11300F06 03550407 13082052 616C6569
419A9E33 E84ABC15 FCCFB1CC EBC1AE94 F07752CC 22A803C7 99AE4097 BA2D
quit
certificate ca 01
308202AF 30820218 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
47DC2CE3 BC3F5F40 32409535 C9E0E6C0 F29D4E
quit
archive
log config
hidekeys
!
!
crypto isakmp policy 100
encr 3des
group 2
crypto isakmp keepalive 10
crypto isakmp nat keepalive 10
crypto isakmp profile IPVS_Branches_isakmp_profile
description IPVS_Branches_isakmp_profile
self-identity address
ca trust-point rtp5-esevpn-ios-ca
match identity host domain ese.cisco.com
crypto isakmp profile DMVPN_IKE_PROFILE
description DMVPN Profile
self-identity fqdn
ca trust-point rtp5-esevpn-ios-ca
match identity address 64.102.223.24 255.255.255.255
keepalive 10 retry 2
!
!
crypto ipsec transform-set 3DES_SHA_TUNNEL esp-3des esp-sha-hmac
crypto ipsec transform-set 3DES_SHA_TRANSPORT esp-3des esp-sha-hmac
mode transport
!
crypto ipsec profile DMVPN_IPSEC_PROFILE
set transform-set 3DES_SHA_TRANSPORT
set isakmp-profile DMVPN_IKE_PROFILE
!
crypto ipsec profile IPVS_Branches_ipsec_profile
description IPVS_Branches_ipsec_profile
set transform-set 3DES_SHA_TRANSPORT 3DES_SHA_TUNNEL
set isakmp-profile IPVS_Branches_isakmp_profile
!
!
controller ISA 5/1
!
!
class-map match-any LOW-LATENCY-DATA
match ip dscp af21 af22 af23
class-map match-any HIGH-THROUGHPUT-DATA
match ip dscp af11 af12 af13
class-map match-all BROADCAST-VIDEO
match ip dscp cs5
class-map match-all NETWORK-CONTROL
match ip dscp cs6
class-map match-any MULTIMEDIA-CONFERENCING
match ip dscp af41 af42 af43
class-map match-all OAM
match ip dscp cs2
class-map match-all VOICE
match ip dscp ef
class-map match-all SCAVENGER
match ip dscp cs1
class-map match-any CALL-SIGNALING
match ip dscp cs3
!
!
policy-map IPVS_BRANCH
class BROADCAST-VIDEO
bandwidth percent 40
class VOICE
priority percent 10
class LOW-LATENCY-DATA
bandwidth percent 4
class HIGH-THROUGHPUT-DATA
bandwidth percent 4
class MULTIMEDIA-CONFERENCING
bandwidth percent 4
class SCAVENGER
bandwidth percent 1
class OAM
bandwidth percent 1
class NETWORK-CONTROL
bandwidth percent 1
class CALL-SIGNALING
bandwidth percent 1
class class-default
fair-queue
policy-map 30M
class class-default
shape average 30000000
service-policy IPVS_BRANCH
!
!
!
!
!
interface Loopback0
description Loopback for Global RT
ip address 192.168.15.40 255.255.255.255
!
interface Tunnel128
description DMVPN tunnel/cloud to Branches
ip vrf forwarding IPVS
ip address 192.168.15.129 255.255.255.192
no ip redirects
ip mtu 1400
ip nhrp authentication FOO
ip nhrp map multicast dynamic
ip nhrp map multicast 192.168.15.40
ip nhrp network-id 128
ip nhrp nhs 192.168.15.129
ip nhrp server-only
ip route-cache flow
no ip split-horizon eigrp 65
ip summary-address eigrp 65 192.0.2.0 255.255.255.0 5
tunnel source Loopback0
tunnel mode gre multipoint
tunnel key 128
tunnel protection ipsec profile IPVS_Branches_ipsec_profile
!
interface Tunnel300
description DMVPN Tunnel to Enterprise/Internet
ip address 10.81.7.254 255.255.255.240
ip mtu 1400
ip pim sparse-mode
ip nhrp authentication BAR
ip nhrp map multicast dynamic
ip nhrp map 10.81.7.241 64.102.223.24
ip nhrp map multicast 64.102.223.24
ip nhrp network-id 22341
!
line con 0
exec-timeout 0 0
stopbits 1
line aux 0
stopbits 1
line vty 0 4
exec-timeout 0 0
password 7 [removed]
login
!
ntp master 12
ntp update-calendar
ntp server 10.81.254.202
ntp server 10.81.254.131
!
end
vpn-jk2-7206-2
This configuration is for the bottomWAN aggregation router shown in the topology diagram.
!
! Last configuration change at 13:10:14 edt Tue Aug 4 2009
! NVRAM config last updated at 13:11:17 edt Tue Aug 4 2009
!
upgrade fpd auto
version 12.4
no service pad
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
!
hostname vpn-jk2-7206-2
!
boot-start-marker
boot system disk0:c7200-adventerprisek9-mz.124-15.T5
boot-end-marker
!
enable secret 5 [removed]
!
no aaa new-model
clock timezone est -5
clock summer-time edt recurring
ip cef
!
!
!
!
ip vrf IPVS
rd 100:10
route-target export 100:10
route-target import 100:10
!
no ip domain lookup
ip domain name cisco.com
ip host rtp5-esevpn-ios-ca 10.81.0.27
ip multicast-routing
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
multilink bundle-name authenticated
!
!
crypto pki trustpoint rtp5-esevpn-ios-ca
enrollment url http://rtp5-esevpn-ios-ca:80
revocation-check none
!
!
crypto pki certificate chain rtp5-esevpn-ios-ca
certificate 12
3082023A 308201A3 A0030201 02020112 300D0609 2A864886 F70D0101 04050030
D2993DBF 32824A8C 420DC983 C5BF7E17 28D1406E 0D937B7D 152C6FB3 D581
quit
certificate ca 01
308202AF 30820218 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
47DC2CE3 BC3F5F40 32409535 C9E0E6C0 F29D4E
quit
archive
log config
hidekeys
!
!
crypto isakmp policy 100
encr 3des
group 2
crypto isakmp keepalive 10
crypto isakmp nat keepalive 10
crypto isakmp profile IPVS_Branches_isakmp_profile
description IPVS_Branches_isakmp_profile
self-identity address
ca trust-point rtp5-esevpn-ios-ca
match identity host domain ese.cisco.com
!
!
crypto ipsec transform-set 3DES_SHA_TUNNEL esp-3des esp-sha-hmac
crypto ipsec transform-set 3DES_SHA_TRANSPORT esp-3des esp-sha-hmac
mode transport
crypto ipsec transform-set AES_SHA_TUNNEL esp-aes esp-sha-hmac
crypto ipsec transform-set AES_SHA_TRANSPORT esp-aes esp-sha-hmac
mode transport
!
crypto ipsec profile IPVS_Branches_ipsec_profile
description IPVS_Branches_ipsec_profile
set transform-set 3DES_SHA_TRANSPORT 3DES_SHA_TUNNEL
set isakmp-profile IPVS_Branches_isakmp_profile
!
!
controller ISA 5/1
!
!
class-map match-any LOW-LATENCY-DATA
match ip dscp af21 af22 af23
class-map match-any HIGH-THROUGHPUT-DATA
match ip dscp af11 af12 af13
class-map match-all BROADCAST-VIDEO
match ip dscp cs5
class-map match-all NETWORK-CONTROL
match ip dscp cs6
class-map match-any MULTIMEDIA-CONFERENCING
match ip dscp af41 af42 af43
class-map match-all OAM
match ip dscp cs2
class-map match-all VOICE
match ip dscp ef
class-map match-all SCAVENGER
match ip dscp cs1
class-map match-any CALL-SIGNALING
match ip dscp cs3
!
!
policy-map IPVS_BRANCH
class BROADCAST-VIDEO
bandwidth percent 40
class VOICE
priority percent 10
class LOW-LATENCY-DATA
bandwidth percent 4
class HIGH-THROUGHPUT-DATA
bandwidth percent 4
class MULTIMEDIA-CONFERENCING
bandwidth percent 4
class SCAVENGER
bandwidth percent 1
class OAM
bandwidth percent 1
class NETWORK-CONTROL
bandwidth percent 1
class CALL-SIGNALING
bandwidth percent 1
class class-default
fair-queue
policy-map 30M
class class-default
shape average 30000000
service-policy IPVS_BRANCH
!
!
interface Loopback0
description Loopback for Global RT
ip address 192.168.15.41 255.255.255.255
!
interface Tunnel192
ip vrf forwarding IPVS
ip address 192.168.15.193 255.255.255.192
no ip redirects
ip mtu 1400
ip nhrp authentication FOO
ip nhrp map multicast dynamic
ip nhrp map multicast 192.168.15.41
ip nhrp network-id 192
ip nhrp nhs 192.168.15.193
ip nhrp server-only
ip route-cache flow
no ip split-horizon eigrp 65
ip summary-address eigrp 65 192.0.2.0 255.255.255.0 5
tunnel source Loopback0
tunnel mode gre multipoint
tunnel key 192
tunnel protection ipsec profile IPVS_Branches_ipsec_profile
!
interface FastEthernet0/0
ip address 172.26.157.4 255.255.254.0
no ip proxy-arp
ip route-cache flow
duplex full
speed 100
!
interface FastEthernet0/1
description MAN/WAN to Branches
no ip address
ip route-cache flow
duplex full
speed 100
!
interface FastEthernet0/1.90
!
!
line con 0
transport output all
stopbits 1
line aux 0
transport output all
stopbits 1
line vty 0 4
password 7 [removed]
login
transport input all
transport output all
!
ntp clock-period 17179966
ntp master 12
ntp update-calendar
ntp server 10.81.254.202
ntp server 10.81.254.131
!
end
vpn-jk2-asa5510-1
This configuration is for the firewall shown in the topology diagram
: Saved
: Written by enable_15 at 13:55:41.021 edt Tue Aug 4 2009
!
ASA Version 8.0(4)
!
hostname vpn-jk2-asa5510-1
domain-name ese.cisco.com
enable password 2KFQnbNIdI.2KYOU encrypted
passwd [removed] encrypted
names
dns-guard
!
interface Ethernet0/0
description Campus_IPVS VLAN 220
speed 100
duplex full
nameif Campus_IPVS
security-level 70
ip address 192.0.2.129 255.255.255.224
!
interface Ethernet0/1
description DMZ_IPVS VLAN 91
speed 100
duplex full
nameif DMZ_IPVS
security-level 50
ip address 192.168.15.99 255.255.255.248
!
interface Ethernet0/2
description DMZ_Global VLAN 90
speed 100
duplex full
nameif DMZ_Global
security-level 10
ip address 10.81.7.163 255.255.255.248
!
interface Ethernet0/3
description DMZ for VPN3080
speed 100
duplex full
nameif DMZ_VPN3080
security-level 20
ip address 10.81.7.58 255.255.255.252
!
interface Management0/0
description FlashNET
speed 100
duplex full
nameif FlashNET
security-level 0
ip address 172.26.156.3 255.255.254.0
!
boot system disk0:/asa804-k8.bin
ftp mode passive
clock timezone est -5
clock summer-time edt recurring
dns server-group DefaultDNS
domain-name ese.cisco.com
access-list MANAGEMENT extended permit tcp 10.81.7.0 255.255.255.0 interface FlashNET
access-list IPVS-CC extended permit udp any 192.0.2.128 255.255.255.224 eq syslog
access-list IPVS-CC extended permit udp any host 192.0.2.139 eq snmptrap
access-list IPVS-CC extended permit udp any host 192.0.2.139 eq 7777
access-list IPVS-CC extended permit tcp 192.0.2.0 255.255.255.0 any eq www
access-list INBOUND extended permit esp any host 10.81.7.57
access-list INBOUND extended permit udp any host 10.81.7.57 eq isakmp
access-list INBOUND extended permit udp any host 10.81.7.57 eq 4500
access-list INBOUND extended permit icmp any host 10.81.7.57
pager lines 24
logging enable
logging buffered debugging
logging asdm debugging
mtu Campus_IPVS 1500
mtu DMZ_IPVS 1500
mtu DMZ_Global 1500
mtu DMZ_VPN3080 1500
mtu FlashNET 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
icmp permit any Campus_IPVS
icmp permit any DMZ_IPVS
icmp permit any DMZ_Global
icmp permit any DMZ_VPN3080
asdm image disk0:/asdm-61551.bin
no asdm history enable
arp timeout 14400
global (DMZ_Global) 1 interface
nat (Campus_IPVS) 1 192.0.2.128 255.255.255.224
static (DMZ_VPN3080,DMZ_Global) 192.168.15.56 192.168.15.56 netmask 255.255.255.252
static (Campus_IPVS,DMZ_IPVS) 192.0.2.128 192.0.2.128 netmask 255.255.255.224
static (Campus_IPVS,DMZ_IPVS) 192.168.15.64 192.168.15.64 netmask 255.255.255.248
access-group IPVS-CC in interface DMZ_IPVS
access-group INBOUND in interface DMZ_Global
access-group MANAGEMENT in interface FlashNET control-plane
route DMZ_Global 0.0.0.0 0.0.0.0 10.81.7.166 1
route FlashNET 172.16.0.0 255.240.0.0 172.26.156.1 1
route DMZ_IPVS 192.0.2.0 255.255.255.0 192.168.15.102 1
route DMZ_IPVS 192.168.11.0 255.255.255.0 192.168.15.102 1
route Campus_IPVS 192.168.15.64 255.255.255.248 192.0.2.136 1
route DMZ_IPVS 192.168.111.0 255.255.255.0 192.168.15.102 1
Cryptochecksum:3d4d4e2f06d5a11ff2dd5d5643e862f5
: end
vpn1-2851-1
This configuration is for the branch 2851 model router shown in the topology diagram
!
! Last configuration change at 13:26:29 edt Tue Aug 4 2009
! NVRAM config last updated at 13:27:56 edt Tue Aug 4 2009
!
version 12.4
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service udp-small-servers
service tcp-small-servers
!
hostname vpn1-2851-1
!
boot-start-marker
boot-end-marker
!
logging buffered 8192
enable secret 5 [removed]
!
no aaa new-model
clock timezone est -5
clock summer-time edt recurring
!
crypto pki trustpoint rtp5-esevpn-ios-ca
enrollment url http://rtp5-esevpn-ios-ca:80
revocation-check none
source interface Vlan1
!
!
crypto pki certificate chain rtp5-esevpn-ios-ca
certificate 0F
3082023B 308201A4 A0030201 0202010F 300D0609 2A864886 F70D0101 04050030
32C8325C 8DF24E4B D16823BA AF45A2F8 A6AA3C9C 8E33E400 CBAE2184 09F267
quit
certificate ca 01
308202AF 30820218 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
47DC2CE3 BC3F5F40 32409535 C9E0E6C0 F29D4E
quit
dot11 syslog
!
!
ip cef
ip dhcp use vrf connected
ip dhcp excluded-address 192.168.111.1 192.168.111.149
ip dhcp excluded-address 192.0.2.17 192.0.2.19
!
ip dhcp pool CAMERAS
vrf IPVS
network 192.0.2.16 255.255.255.240
default-router 192.0.2.17
dns-server 64.102.6.247 171.68.226.120
domain-name cisco.com
!
ip dhcp pool iSCSI-temp
!
!
ip finger
!
class-map match-any GOLD
match ip dscp cs2 cs3 cs6 cs7
match ip dscp af41 af42 af43
match ip dscp af31 af32 af33
class-map match-all TELEPRESENCE
match ip dscp cs4
class-map match-any LOW-LATENCY-DATA
match ip dscp af21 af22 af23
class-map match-any BRONZE
match ip dscp af11 af12 af13
match ip dscp cs1
class-map match-any HIGH-THROUGHPUT-DATA
match ip dscp af11 af12 af13
class-map match-any VMSS
match access-group name HTTP
class-map match-all BROADCAST-VIDEO
match ip dscp cs5
class-map match-all NETWORK-CONTROL
match ip dscp cs6
class-map match-any MULTIMEDIA-CONFERENCING
match ip dscp af41 af42 af43
class-map match-all OAM
match ip dscp cs2
class-map match-all FOO
class-map match-any REAL_TIME
match ip dscp cs5
match ip dscp cs4
match ip dscp ef
class-map match-all VOICE
match ip dscp ef
class-map match-all SCAVENGER
match ip dscp cs1
class-map match-any CALL-SIGNALING
match ip dscp cs3
class-map match-any MULTIMEDIA-STREAMING
match ip dscp af31 af32 af33
!
!
policy-map IPVS_BRANCH
class BROADCAST-VIDEO
bandwidth percent 40
class VOICE
priority percent 10
class LOW-LATENCY-DATA
bandwidth percent 4
class HIGH-THROUGHPUT-DATA
bandwidth percent 4
class MULTIMEDIA-CONFERENCING
bandwidth percent 4
class SCAVENGER
bandwidth percent 1
class OAM
bandwidth percent 1
class NETWORK-CONTROL
bandwidth percent 1
class CALL-SIGNALING
bandwidth percent 1
class class-default
fair-queue
policy-map UPLINK_50M
class class-default
shape average 50000000
service-policy IPVS_BRANCH
policy-map INGRESS_VMSS
class VMSS
set ip dscp cs5
class class-default
set ip dscp cs3
policy-map PER_CLASS_SHAPING
class REAL_TIME
set cos 5
police 40000000 conform-action transmit exceed-action transmit
class GOLD
shape average 2500000
set cos 6
class BRONZE
shape average 2500000
set cos 1
class class-default
set cos 0
shape average 5000000
policy-map 30M
class class-default
shape average 30000000
service-policy IPVS_BRANCH
!
!
interface Tunnel128
ip vrf forwarding IPVS
ip address 192.168.15.130 255.255.255.192
ip mtu 1400
ip nhrp authentication FOO
ip nhrp map 192.168.15.129 192.168.15.40
ip nhrp map multicast 192.168.15.40
ip nhrp network-id 128
ip nhrp nhs 192.168.15.129
ip summary-address eigrp 65 192.0.2.0 255.255.255.224 5
tunnel source GigabitEthernet0/1.332
tunnel destination 192.168.15.40
tunnel key 128
tunnel protection ipsec profile IPVS_Branches_ipsec_profile
!
interface Tunnel192
ip vrf forwarding IPVS
ip address 192.168.15.194 255.255.255.192
ip mtu 1400
ip nhrp authentication FOO
ip nhrp map multicast 192.168.15.41
ip nhrp map 192.168.15.193 192.168.15.41
ip nhrp network-id 192
ip nhrp nhs 192.168.15.193
ip summary-address eigrp 65 192.0.2.0 255.255.255.224 5
tunnel source GigabitEthernet0/1.331
tunnel destination 192.168.15.41
tunnel key 192
tunnel protection ipsec profile IPVS_Branches_ipsec_profile_2
!
interface GigabitEthernet0/0
description Inside
no ip address
ip flow ingress
load-interval 30
duplex auto
speed auto
!
interface GigabitEthernet0/0.204
description Inside
encapsulation dot1Q 204
ip address 10.81.7.153 255.255.255.248
ip flow ingress
!
interface GigabitEthernet0/0.206
description VLAN 206 for IP Cameras
encapsulation dot1Q 206
ip vrf forwarding IPVS
ip address 192.0.2.17 255.255.255.240
ip flow ingress
!
interface GigabitEthernet0/1
description Outside
no ip address
load-interval 30
duplex auto
speed auto
!
interface GigabitEthernet0/1.130
description To vpn-jk3-2651xm-4 Primary WAN
bandwidth 30000
encapsulation dot1Q 130
ip address dhcp
!
interface GigabitEthernet0/1.254
description iSCSI Management Subnet
encapsulation dot1Q 254
ip vrf forwarding IPVS
ip address 192.168.111.1 255.255.255.0
!
interface GigabitEthernet0/1.331
encapsulation dot1Q 331
ip address 192.168.15.22 255.255.255.252
service-policy output 30M
!
interface GigabitEthernet0/1.332
encapsulation dot1Q 332
ip address 192.168.15.46 255.255.255.252
service-policy output PER_CLASS_SHAPING
!
interface FastEthernet0/3/0
duplex full
speed 100
!
interface FastEthernet0/3/1
!
interface FastEthernet0/3/2
!
interface FastEthernet0/3/3
!
interface Integrated-Service-Engine1/0
ip vrf forwarding IPVS
ip address 192.0.2.1 255.255.255.252
ip flow ingress
load-interval 30
service-module external ip address 192.168.111.2 255.255.255.0
service-module ip address 192.0.2.2 255.255.255.252
service-module ip default-gateway 192.0.2.1
no keepalive
service-policy input INGRESS_VMSS
!
interface Video-Service-Engine2/0
ip vrf forwarding IPVS
ip address 192.0.2.5 255.255.255.252
ip flow ingress
service-module ip address 192.0.2.6 255.255.255.252
service-module ip default-gateway 192.0.2.5
no keepalive
!
interface Vlan1
description Flashnet
ip address 172.26.156.51 255.255.254.0
no ip proxy-arp
!
router eigrp 65
network 10.81.7.152 0.0.0.7
network 192.168.15.0 0.0.0.63
no auto-summary
!
address-family ipv4 vrf IPVS
network 192.0.2.0 0.0.0.31
network 192.168.15.128 0.0.0.63
network 192.168.15.192 0.0.0.63
network 192.168.111.0
no auto-summary
autonomous-system 65
exit-address-family
!
ip forward-protocol nd
ip route 10.81.0.27 255.255.255.255 172.26.156.1 name rtp5-esevpn-ios-ca
ip route 172.26.0.0 255.255.0.0 172.26.156.1 name Miles
ip route 192.168.15.40 255.255.255.255 192.168.15.45 name vpn-jk2-7206-1_Loopback_0
ip route 192.168.15.41 255.255.255.255 192.168.15.21 name vpn-jk2-7206-2_Loopback_0
ip route 64.102.223.16 255.255.255.240 dhcp
ip route 192.5.41.40 255.255.255.254 dhcp
!
ip flow-cache timeout active 1
ip flow-export version 5
ip flow-export destination 172.26.157.11 7777
!
ip http server
ip http secure-server
no ip pim dm-fallback
ip pim autorp listener
!
ip access-list extended HTTP
permit tcp host 192.0.2.2 eq www any
ip access-list extended VSOM
permit tcp host 192.0.2.2 eq www 192.168.16.0 0.0.15.255
permit tcp host 192.0.2.2 eq 443 192.168.16.0 0.0.15.255
!
!
ip prefix-list CAMPUS seq 5 permit 192.168.16.0/20
ip sla responder
ip sla 219
icmp-echo 192.0.2.19
tos 192
threshold 50
vrf IPVS
owner networkmgr
tag ipvs - design guide
frequency 64
history lives-kept 1
history buckets-kept 60
history filter failures
C i s c o S y s t e m s
|| ||
|| || Cisco Systems, Inc.
|||| |||| IT-Transport
.:|||||||:.......:|||||||:..
US, Asia & Americas support: + 1 408 526 8888
EMEA support: + 31 020 342 3888
UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.
You must have explicit permission to access or configure this
device. All activities performed on this device are logged and
violations of this policy may result in disciplinary action.
Questions regarding this device should be directed to
xxxxxxx
banner motd
=
==
=== Site 130 === vpn1-2851-1
==
=
vpn1-3845-1
This configuration is for the branch 3845 model router shown in the topology diagram
!
! Last configuration change at 13:21:52 edt Tue Aug 4 2009
! NVRAM config last updated at 13:23:50 edt Tue Aug 4 2009
!
version 12.4
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
no service password-encryption
service udp-small-servers
service tcp-small-servers
!
hostname vpn1-3845-1
!
boot-start-marker
boot system flash flash:c3845-adventerprisek9-mz.124-15.T5
boot system flash flash:c3845-adventerprisek9-mz.124-22.T
boot-end-marker
!
logging buffered 2000000
enable secret 5 [removed]
!
no aaa new-model
clock timezone est -5
clock summer-time edt recurring
dot11 syslog
ip wccp 61
ip wccp 62
ip cef
!
!
ip dhcp use vrf connected
ip dhcp excluded-address 192.0.2.97 192.0.2.102
!
ip dhcp pool ENTERPRISE
network 10.81.7.0 255.255.255.248
default-router 10.81.7.1
dns-server 64.102.6.247 171.68.226.120
domain-name ese.cisco.com
netbios-name-server 171.68.235.228 171.68.235.229
!
ip dhcp pool CAMERAS
vrf IPVS
network 192.0.2.96 255.255.255.224
default-router 192.0.2.97
dns-server 64.102.6.247 171.68.226.120
domain-name ese.cisco.com
!
!
ip vrf IPVS
rd 100:10
route-target export 100:10
route-target import 100:10
!
no ip domain lookup
ip domain name ese.cisco.com
ip host rtp5-esevpn-ios-ca 10.81.0.27
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
ip dhcp-client default-router distance 239
!
multilink bundle-name authenticated
!
voice-card 0
no dspfarm
!
!
!
key chain PURPLE
key 10
key-string 7 00[removed]00
!
!
!
oer master
policy-rules LOSS
shutdown
logging
!
border 192.168.0.1 key-chain PURPLE
interface GigabitEthernet0/1.250 internal
interface GigabitEthernet0/1.210 internal
interface GigabitEthernet0/1.294 external
interface GigabitEthernet0/1.293 external
interface Integrated-Service-Engine3/0 internal
!
learn
throughput
delay
periodic-interval 0
monitor-period 1
expire after time 30
aggregation-type prefix-length 29
no max range receive
delay threshold 80
mode route control
mode select-exit best
!
oer border
local Loopback0
master 192.168.0.1 key-chain PURPLE
!
crypto pki trustpoint rtp5-esevpn-ios-ca
enrollment url http://rtp5-esevpn-ios-ca:80
revocation-check none
source interface Vlan1
!
!
crypto pki certificate chain rtp5-esevpn-ios-ca
certificate 0E
3082023B 308201A4 A0030201 0202010E 300D0609 2A864886 F70D0101 04050030
DE5E201F F1A6CB47 D57C7260 70BE64AD 78656E15 A2EB7E43 9D969FB5 C4233B
quit
certificate ca 01
308202AF 30820218 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
47DC2CE3 BC3F5F40 32409535 C9E0E6C0 F29D4E
quit
!
!
username joeking privilege 15 secret 5 [removed]
archive
log config
hidekeys
!
!
crypto isakmp policy 100
encr 3des
group 2
crypto isakmp keepalive 10
crypto isakmp nat keepalive 10
crypto isakmp profile DMVPN_IKE_PROFILE
description DMVPN Profile
self-identity fqdn
ca trust-point rtp5-esevpn-ios-ca
match identity address 64.102.223.24 255.255.255.255
keepalive 10 retry 2
crypto isakmp profile DMVPN_IKE_PROFILE_2
description DMVPN Profile
self-identity fqdn
ca trust-point rtp5-esevpn-ios-ca
match identity address 64.102.223.25 255.255.255.255
keepalive 10 retry 2
!
!
crypto ipsec transform-set 3DES_SHA_TUNNEL esp-3des esp-sha-hmac
crypto ipsec transform-set 3DES_SHA_TRANSPORT esp-3des esp-sha-hmac
mode transport
!
crypto ipsec profile DMVPN_IPSEC_PROFILE
set transform-set 3DES_SHA_TRANSPORT
set isakmp-profile DMVPN_IKE_PROFILE
!
crypto ipsec profile DMVPN_IPSEC_PROFILE_2
set transform-set 3DES_SHA_TRANSPORT
set isakmp-profile DMVPN_IKE_PROFILE_2
!
ip finger
!
class-map match-any LOW-LATENCY-DATA
match ip dscp af21 af22 af23
class-map match-any HIGH-THROUGHPUT-DATA
match ip dscp af11 af12 af13
class-map match-all BROADCAST-VIDEO
match ip dscp cs5
class-map match-all NETWORK-CONTROL
match ip dscp cs6
class-map match-any MULTIMEDIA-CONFERENCING
match ip dscp af41 af42 af43
class-map match-all OAM
match ip dscp cs2
class-map match-all VOICE
match ip dscp ef
class-map match-all SCAVENGER
match ip dscp cs1
class-map match-any CALL-SIGNALING
match ip dscp cs3
!
!
policy-map DATA
class class-default
fair-queue
random-detect
policy-map IPVS_BRANCH
class BROADCAST-VIDEO
bandwidth percent 40
class VOICE
priority percent 10
class LOW-LATENCY-DATA
bandwidth percent 4
class HIGH-THROUGHPUT-DATA
bandwidth percent 4
class MULTIMEDIA-CONFERENCING
bandwidth percent 4
class SCAVENGER
bandwidth percent 1
class OAM
bandwidth percent 1
class NETWORK-CONTROL
bandwidth percent 1
class CALL-SIGNALING
bandwidth percent 1
class class-default
fair-queue
policy-map 30M
class class-default
shape average 30000000
service-policy IPVS_BRANCH
!
policy-map 2M
class class-default
shape average 2000000
service-policy DATA
!
!
interface Loopback0
description for OER peering
ip address 192.168.0.1 255.255.255.255
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex full
speed 100
media-type rj45
!
interface GigabitEthernet0/1
description Trunk
no ip address
ip route-cache flow
load-interval 30
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1.140
description WAN
encapsulation dot1Q 140
ip address dhcp
!
interface GigabitEthernet0/1.210
description IP Camera VLAN
encapsulation dot1Q 210
ip vrf forwarding IPVS
ip address 192.0.2.97 255.255.255.224
!
interface GigabitEthernet0/1.250
description INSIDE VLAN
encapsulation dot1Q 250
ip address 10.81.7.1 255.255.255.248
!
interface GigabitEthernet0/1.256
description management interface for iSCSI
encapsulation dot1Q 256
ip vrf forwarding IPVS
ip address 192.168.11.1 255.255.255.0
!
interface GigabitEthernet0/1.293
description To vpn-jk2-7206-1 for PfR
encapsulation dot1Q 293
ip address 192.168.15.6 255.255.255.252
shutdown
!
interface GigabitEthernet0/1.294
description To vpn-jk2-7206-1 for PfR
encapsulation dot1Q 294
ip address 192.168.15.2 255.255.255.252
shutdown
!
interface GigabitEthernet0/1.340
encapsulation dot1Q 340
ip address 192.168.15.14 255.255.255.252
service-policy output 2M
!
interface GigabitEthernet0/1.341
encapsulation dot1Q 341
ip address 192.168.15.26 255.255.255.252
service-policy output 2M
!
interface GigabitEthernet0/1.342
encapsulation dot1Q 342
ip vrf forwarding IPVS
ip address 192.168.15.78 255.255.255.252
ip summary-address eigrp 65 192.0.2.64 255.255.255.192 5
service-policy output 30M
!
interface GigabitEthernet0/1.343
encapsulation dot1Q 343
ip vrf forwarding IPVS
ip address 192.168.15.90 255.255.255.252
ip summary-address eigrp 65 192.0.2.64 255.255.255.192 5
service-policy output 30M
!
interface FastEthernet1/0
description connection to Flashnet
duplex full
speed 100
!
interface FastEthernet1/1
!
interface FastEthernet1/2
!
interface FastEthernet1/3
!
interface FastEthernet1/4
!
interface FastEthernet1/5
!
interface FastEthernet1/6
!
interface FastEthernet1/7
!
interface FastEthernet1/8
!
interface FastEthernet1/9
!
interface FastEthernet1/10
!
interface FastEthernet1/11
!
interface FastEthernet1/12
!
interface FastEthernet1/13
!
interface FastEthernet1/14
!
interface FastEthernet1/15
!
interface GigabitEthernet1/0
shutdown
!
interface Integrated-Service-Engine2/0
description NME-WAE-522-K9
ip address 192.0.2.69 255.255.255.252
ip wccp redirect exclude in
service-module ip address 192.0.2.70 255.255.255.252
service-module ip default-gateway 192.0.2.69
no keepalive
!
interface Integrated-Service-Engine3/0
description NME-VMSS-HP32 ip wccp 61 red in 62 red out
ip vrf forwarding IPVS
ip address 192.0.2.64 255.255.255.254
ip nbar protocol-discovery
ip flow ingress
ip route-cache flow
load-interval 30
service-module external ip address 192.168.11.2 255.255.255.0
service-module ip address 192.0.2.65 255.255.255.254
service-module ip default-gateway 192.0.2.64
no keepalive
!
interface Vlan1
ip address 172.26.156.53 255.255.254.0
no ip proxy-arp
!
router eigrp 65
network 10.81.7.0 0.0.0.7
network 192.168.15.0 0.0.0.63
no auto-summary
!
address-family ipv4 vrf IPVS
network 192.0.2.64 0.0.0.63
network 192.168.11.0
network 192.168.15.64 0.0.0.63
no auto-summary
autonomous-system 65
exit-address-family
!
ip forward-protocol nd
ip route 192.168.16.0 255.255.240.0 192.168.15.1 230 name OER_Parent
ip route 192.168.16.0 255.255.240.0 192.168.15.5 230 name OER_Parent
ip route 192.168.32.0 255.255.224.0 192.168.15.1 230 name OER_Parent
ip route 192.168.32.0 255.255.224.0 192.168.15.5 230 name OER_Parent
ip route 64.102.223.16 255.255.255.240 dhcp
!
ip flow-cache timeout active 1
ip flow-export source Integrated-Service-Engine3/0
ip flow-export version 5
vpn4-3800-6
This configuration is for the branch 3825 model router shown in the topology diagram
!
!
!
ip finger
!
class-map match-any LOW-LATENCY-DATA
match ip dscp af21 af22 af23
class-map match-any HIGH-THROUGHPUT-DATA
match ip dscp af11 af12 af13
class-map match-all BROADCAST-VIDEO
match ip dscp cs5
class-map match-all NETWORK-CONTROL
match ip dscp cs6
class-map match-any MULTIMEDIA-CONFERENCING
match ip dscp af41 af42 af43
class-map match-all OAM
match ip dscp cs2
class-map match-all VOICE
match ip dscp ef
class-map match-all SCAVENGER
match ip dscp cs1
class-map match-any CALL-SIGNALING
match ip dscp cs3
!
!
policy-map IPVS_BRANCH
class BROADCAST-VIDEO
bandwidth percent 40
class VOICE
priority percent 10
class LOW-LATENCY-DATA
bandwidth percent 4
class HIGH-THROUGHPUT-DATA
bandwidth percent 4
class MULTIMEDIA-CONFERENCING
bandwidth percent 4
class SCAVENGER
bandwidth percent 1
class OAM
bandwidth percent 1
class NETWORK-CONTROL
bandwidth percent 1
class CALL-SIGNALING
bandwidth percent 1
class class-default
fair-queue
policy-map 30M
class class-default
shape average 30000000
service-policy IPVS_BRANCH
!
!
interface Tunnel128
ip vrf forwarding IPVS
ip address 192.168.15.131 255.255.255.192
ip mtu 1400
ip nhrp authentication FOO
ip nhrp map 192.168.15.129 192.168.15.40
ip nhrp map multicast 192.168.15.40
ip nhrp network-id 128
ip nhrp nhs 192.168.15.129
ip summary-address eigrp 65 192.0.2.32 255.255.255.224 5
tunnel source GigabitEthernet0/0.352
tunnel destination 192.168.15.40
duplex auto
speed auto
media-type rj45
!
interface FastEthernet0/2/0
description Flashnet
duplex full
speed 100
!
interface FastEthernet0/2/1
!
interface FastEthernet0/2/2
!
interface FastEthernet0/2/3
!
interface Video-Service-Engine1/0
ip vrf forwarding IPVS
ip address 192.0.2.37 255.255.255.252
ip route-cache flow
service-module ip address 192.0.2.38 255.255.255.252
service-module ip default-gateway 192.0.2.37
no keepalive
!
interface Integrated-Service-Engine2/0
ip vrf forwarding IPVS
ip address 192.0.2.33 255.255.255.252
ip route-cache flow
service-module external ip address 192.168.211.2 255.255.255.0
service-module ip address 192.0.2.34 255.255.255.252
service-module ip default-gateway 192.0.2.33
no keepalive
!
interface Vlan1
description FlashNet
ip address 172.26.156.105 255.255.254.0
no ip proxy-arp
!
router eigrp 65
network 10.81.7.88 0.0.0.7
network 192.168.15.0 0.0.0.63
no auto-summary
!
address-family ipv4 vrf IPVS
network 192.0.2.32 0.0.0.31
network 192.168.15.128 0.0.0.127
network 192.168.211.0
no auto-summary
autonomous-system 65
exit-address-family
!
ip forward-protocol nd
ip route 10.81.0.27 255.255.255.255 172.26.156.1 name IOS-CA
ip route 192.168.15.40 255.255.255.255 192.168.15.49 name vpn-jk2-7206-1_Loopback_0
ip route 192.168.15.41 255.255.255.255 192.168.15.29 name vpn-jk2-7206-2_Loopback_0
ip route 64.102.223.16 255.255.255.240 dhcp
ip route 192.5.41.40 255.255.255.254 dhcp
!
ip flow-cache timeout active 1
ip flow-export version 5
ip flow-export destination 172.26.157.11 7777
!
ip http server
no ip http secure-server
!
banner motd
C i s c o S y s t e m s
|| ||
|| || Cisco Systems, Inc.
|||| |||| IT-Transport
.:|||||||:.......:|||||||:..
US, Asia & Americas support: + 1 408 526 8888
EMEA support: + 31 020 342 3888
UNAUTHORIZED ACCESS TO THIS NETWORK DEVICE IS PROHIBITED.
You must have explicit permission to access or configure this
device. All activities performed on this device are logged and
violations of this policy may result in disciplinary action.
!
line con 0
exec-timeout 0 0
line aux 0
line 66
no activation-character
no exec
transport preferred none
transport input all
transport output lat pad telnet rlogin lapb-ta mop udptn v120 ssh
line 130
access-class LOCAL_LOGIN in vrf-also
login local
no activation-character
no exec
transport preferred none
transport input telnet
transport output none
line vty 0 4
exec-timeout 0 0
login local
!
scheduler allocate 20000 1000
ntp clock-period 17178750
ntp source Integrated-Service-Engine2/0
ntp master 12
ntp server 192.168.6.1 source GigabitEthernet0/0.150
ntp server 10.81.254.202 source Vlan1
ntp server 10.81.254.131 source Vlan1
!
end
3750-access
This configuration is for an access-layer switch not explicitly shown in the topology diagram. It is a
cisco WS-C3750G-24PS model.
#Set maximum allowed secured MAC entry to 1. Default value, but with macro it wi
ll override manual setting.
switchport port-security maximum 1
#Set port security violation action to shutdown physical port. Default setting,
but will macro it will override manual setting.
switchport port-security violation shutdown
#Enable QoS on Cisco Camera port and trust incoming DSCP value.
#Disable transmitting and receiving STP BPDU frame on Cisco Camera port
spanning-tree bpdufilter enable
@
macro name CIVS-IPC-2500
description Cisco Video Surveillance 2500 Series IP Camera
switchport mode access
switchport access vlan $VLAN
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
mls qos trust dscp
spanning-tree portfast
spanning-tree bpdufilter enable
load-interval 60
no shutdown
@
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 10,208,220-221
!
!
class-map match-all HTTP
match protocol http
class-map match-all HTTP_acl
match access-group name HTTP
class-map match-all HTTP_acl_client
match access-group name HTTP_client
!
!
policy-map VSMS
class HTTP_acl
set dscp cs5
class class-default
set dscp cs3
policy-map Viewing_Station
class HTTP_acl_client
set dscp cs5
class class-default
set dscp cs3
!
!
!
!
interface GigabitEthernet1/0/1
description trunk to vpn1-2851-1 [vpn-jk2-2948-1]
switchport trunk encapsulation dot1q
switchport mode trunk
load-interval 60
priority-queue out
mls qos trust dscp
!
interface GigabitEthernet1/0/2
description Cisco Video Surveillance 2500 Series IP Camera
switchport access vlan 208
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security mac-address sticky 001d.e5ea.79d3
load-interval 60
mls qos trust dscp
macro description CIVS-IPC-2500
spanning-tree portfast
spanning-tree bpdufilter enable
!
interface GigabitEthernet1/0/3
description 4300 IP camera 0021.1bfd.df85
switchport access vlan 220
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security mac-address sticky 0021.1bfd.df85
load-interval 60
mls qos trust dscp
spanning-tree portfast
spanning-tree bpdufilter enable
!
interface GigabitEthernet1/0/4
description 4300 IP camera 0021.1bfd.df62
switchport access vlan 220
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security mac-address sticky 0021.1bfd.df62
load-interval 60
mls qos trust dscp
spanning-tree portfast
spanning-tree bpdufilter enable
!
interface GigabitEthernet1/0/5
description Viewing Station
switchport access vlan 208
switchport mode access
priority-queue out
spanning-tree portfast
spanning-tree bpdufilter enable
service-policy input Viewing_Station
!
interface GigabitEthernet1/0/6
!
interface GigabitEthernet1/0/7
!
interface GigabitEthernet1/0/8
!
interface GigabitEthernet1/0/9
!
interface GigabitEthernet1/0/10
!
interface GigabitEthernet1/0/11
description CIVS-IPC-4500-1
switchport access vlan 220
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security mac-address sticky 001e.bdfc.19d6
load-interval 60
mls qos trust dscp
spanning-tree portfast
spanning-tree bpdufilter enable
!
interface GigabitEthernet1/0/12
description CIVS-IPC-4500-2
switchport access vlan 220
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security mac-address sticky 0021.1bfd.dfc1
load-interval 60
mls qos trust dscp
spanning-tree portfast
spanning-tree bpdufilter enable
!
interface GigabitEthernet1/0/13
description CIVS-IPC-4500-3
switchport access vlan 220
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security mac-address sticky 001b.53ff.6cb9
load-interval 60
mls qos trust dscp
spanning-tree portfast
spanning-tree bpdufilter enable
!
interface GigabitEthernet1/0/14
description CIVS-IPC-4500-4
switchport access vlan 220
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security mac-address sticky 001e.bdfc.19c9
load-interval 60
mls qos trust dscp
spanning-tree portfast
spanning-tree bpdufilter enable
!
interface GigabitEthernet1/0/15
!
interface GigabitEthernet1/0/16
!
interface GigabitEthernet1/0/17
!
interface GigabitEthernet1/0/18
!
interface GigabitEthernet1/0/19
!
interface GigabitEthernet1/0/20
!
interface GigabitEthernet1/0/21
!
interface GigabitEthernet1/0/22
!
interface GigabitEthernet1/0/23
!
interface GigabitEthernet1/0/24
!
interface GigabitEthernet1/0/25
!
interface GigabitEthernet1/0/26
!
interface GigabitEthernet1/0/27
!
interface GigabitEthernet1/0/28
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip http server
ip http secure-server
!
!
ip access-list extended HTTP
permit tcp any eq www any
ip access-list extended HTTP_client
permit tcp any any eq www
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
line vty 0 4
login
line vty 5 15
login
!
!
end
Least
7 6 5 4 3 2 1 0 Signifi-
cant Bit
IP Precedence Priority
D SC P ToS B yte
ToS
IP P recedence C lass-m ap N am e DSCP Binary
H ex D ecim al
E0 224 7 N etw ork C ontrol 56 C S 7 11100000
C0 192 6 Internetw ork C ontrol N ETW O R K -C O N TR O L 48 C S 6 11000000
B8 184 V O IC E 46 EF 10111000
A0 160 5 C ritical B R O A D C A S T-V ID EO 40 C S 5 10100000
88 136 34 AF41 10001000
80 128 4 Flash O verride 32 C S 4 10000000
68 104 26 AF31 01101000
60 96 3 Flash C A LL-S IG N A LIN G 24 C S 3 01100000
48 72 18 AF21 0101000
40 64 2 Im m ediate OAM 16 C S 2 01000000
20 32 1 P riority 8 CS1 00100000
00 0 0 R outine 0 D flt 00000000
Tip Reported MOS score values of 4 or above should be expected to provide a baseline for serviceable video
quality.
The round trip time (RTT) is approximately 30ms with jitter of approximately 2ms. No loss was
detected, however, this probe only generates 50 sample packets.
no ip sla 22
ip sla 22
udp-jitter 192.0.2.1 16000 codec g729a codec-numpackets 50
tos 160
timeout 500
threshold 100
owner VideoSurveillance
tag IPVS_test_probe
vrf IPVS
ip sla schedule 22 start now life 7200
Tip Historically, the minimum interval between clock interrupts in Cisco IOS has been 4ms. Reporting
values between 0 and 4ms may not be precise.
Determine Interface
Determine which interface a particular camera is attached by specifying the last four digits of the MAC
address of the camera as a filter to the show cdp neighbors command. The MAC address is printed on
the exterior label of the camera. In this example, the last four digits are ‘79D3’. The entire MAC address
can be specified, but usually the last four digits are unique in the small population of cameras attached
to an individual switch.
3750-access#show cdp neighbors detail | begin 79D3
Device ID: 001DE5EA79D3
Entry address(es):
IP address: 192.0.2.52
Platform: CIVS-IPC-2500, Capabilities: Host
From the output above, the video feed of the camera is transmitting approximately 1Mbps at 107 packets
per second over the time period of the last minute. The load-interval interface command has overridden
the default value of 5 minutes to 1 minute in this example.
The show interfaces command can also be issued with the summary keyword and this method provides
useful information on transmitted and received data rates as well as queue drops.
3750-access#show interfaces g1/0/2 summary
*: interface is up
IHQ: pkts in input hold queue IQD: pkts dropped from input queue
OHQ: pkts in output hold queue OQD: pkts dropped from output queue
RXBS: rx rate (bits/sec) RXPS: rx rate (pkts/sec)
TXBS: tx rate (bits/sec) TXPS: tx rate (pkts/sec)
TRTL: throttle count
Interface IHQ IQD OHQ OQD RXBS RXPS TXBS TXPS TRTL
-------------------------------------------------------------------------
* GigabitEthernet1/0/2 0 0 0 0 1097000 108 0 0 0
Tip The asymmetrical bandwidth consumption of IP video surveillance is evident in the above display. The
sample camera is configured with a resolution of D1 at a constant bit rate (CBR) of 1Mbps using
MPEG-4 as the codec. The switch is receiving approximately 1Mbps from the camera, but transmitting
zero (0) Mbps to the camera.
Interface Configuration
The interface configuration for the sample camera is shown below.
=
==
=== Site 130 === vpn1-2851-1
==
=
SITE130-VSM>
=
==
=== Site 130 === vpn1-2851-1
==
=
SITE130-Analog-Gateway>
IP Multicast
In IP multicast transmissions, a host sends one copy of each packet to a special address that can be used
by several hosts interested in receiving the packets. Those hosts are members of a designated multicast
group and can be located anywhere on the network. Using IP multicast to transmit video traffic reduces
the overall network load and minimizes the impact on the source of the video from unnecessary
replication of a common data stream.
By using multicast protocols, the hosts that want to receive traffic from a multicast group can join and
leave the group dynamically. Hosts can be members of more than one group and must explicitly join a
group before receiving content. Since IP multicast traffic relies on UDP, which, unlike TCP, has no
built-in reliability mechanism such as flow control or error recovery mechanisms, tools such as QoS can
improve the reliability of a multicast transmission.
Some edge devices may communicate with the Media Server using unicast or multicast communications.
The use of IP Multicast offers some benefits when a video stream is to be archived by several Media
Servers, since only a single stream is required from the IP camera or encoder.
Figure A-2 shows an example where a single multicast stream is generated by an IP camera and archived
by two Media Servers. The Media Servers propagate the video streams to the viewers using IP Unicast
transmission. Using multicast protocols, Cisco routers and switches replicate the video stream to only
the segments and hosts that require it, using approximately 8 Mbps of bandwidth throughout the
network.
Router Router
1 Mbps 1 Mbps
IP
Router
1 Mbps
IP
1 Mbps 1 Mbps
OM Viewer
Video
Stream 1 Mbps
224657
Media Server
Note The Media Server only supports IP unicast between the Media Server and the viewers, but it can
communicate through IP multicast with edge devices that support IP multicast.
Multicast Addressing
IP multicast uses the class D range of IP addresses, from 224.0.0.0 through 239.255.255.255. Within this
range, several addresses are reserved by the Internet Assigned Numbers Authority (IANA):
• 224.0.0.0 through 224.0.0.255—Link-Local addresses that are used by network protocols only in a
local segment.
• 224.0.1.0 through 238.255.255.255—Globally scoped addresses that can be routed across the
Internet or any organization. They are unique and globally significant.
• 239.0.0.0 through 239.255.255.255—Used in private domains and not routed between domains.
Similar to the IP address range from RFC1918.
IGMP PIM
IGMP IGMP
Snooping Snooping
224658
• PIM is the multicast routing protocol that is responsible for building multicast delivery trees and for
enabling multicast packet forwarding.
• IGMP is used by hosts to dynamically register to multicast groups. The communication occurs
between the router and the host.
• IGMP snooping is used to prevent multicast flows from flooding all ports on a VLAN by monitoring
the Layer 3 IGMP packets.
Proxy Processes
Proxy processes allow for the replication of individual video feeds at different frame rates for multiple
users or system processes. When a video feed is first registered with the Media Server, the server creates
a proxy or process to manage connections and video streams from video sources into the Media Server.
The Media Server can support a large number of proxy processes on a single server or an architecture
with distributed proxy processes on multiple Media Servers.
There are two types of proxy processes:
• Direct Proxy
• Parent-Child Proxies
Direct Proxy
A direct proxy is the process created on the Media Server to maintain connectivity with the edge device
(IP camera or encoder). The proxy is capable of requesting video from the edge device with different
video configurations such as frame rate and video resolution. One direct proxy exists for a given video
stream.
In the example in Figure A-4, the Media Server maintains connectivity and receives video from four
different IP cameras. The Media server is responsible for replicating the video feeds to four different
viewers.
Media Server
IP
A A D
IP C
11 Video
4 Video
B Streams OM Viewer 1
Streams
IP
A
B
C IP B C
IP
OM Viewer 2
D
B
A
A C
224653
OM Viewer 3 OM Viewer 4
Table A-1 shows the active processes from Figure A-4. The four OM viewers are viewing live video from
different cameras; each of the viewers is receiving the video feeds directly from the Media Server. The
Media Server is receiving four unique video streams, replicating them a total of 11 times.
Parent-Child Proxies
Video feeds can originate from the direct proxy or from a different Media Server. A proxy video feed
can be the parent to another video feed served by a different Media Server. Parent proxies may be from
remote or local hosts and may be nested in a hierarchy with inheritance rights.
A direct proxy becomes a parent when a child proxy is created. A child proxy receives its video directly
from a parent proxy. A child proxy has the same resolution, quality, and media type of its parent, but in
the case of MJPEG video streams, a lower frame rate may be configured for the child feed.
Parent-child proxies allow for more efficient network utilization by distributing video feeds closer to the
viewers. This is very important in environments with remote branch offices or with limited bandwidth
available for video delivery. By replicating a single video feed to a location with several viewers, the
bandwidth requirements throughout the network are reduced.
In order to conserve bandwidth, the child process connects to the parent source only when video
streaming is requested by a viewer.
In Figure A-5, Media Server MS1 is acting as the parent for two feeds that are served by Media Server
MS2. Video feeds from cameras A and B are replicated to Media Server MS2, which in turn can be
served to a large number of users or other child feeds.
The environment in Figure A-5 has generated a total of six proxy processes:
• Media Server MS1 is the direct proxy to four edge devices but also replicates eleven different video
streams to other viewers or child feeds.
• Media Server MS2 has created two child proxy feeds, Child A and Child B. These feeds can be
propagated to any viewers locally on Site B, reducing the bandwidth requirements across the wide
area connections.
Site A
A, C, D
IP Media
Server
A A, B, B, C
MS1
IP A D
Parent A
Parent B C
B
IP
OM Viewer 1
4 Video
C Streams
A
B
IP B C
D
OM Viewer 2
IP
Site B
D D
cA cB
D cA D
Child A
OM Viewer 3 Child B OM Viewer 4
Child A
Media Child A
Server Child B
MS2 224654
Table A-2 shows the different streams required to distribute the video feeds from Figure A-5.
Since Media Servers do not provide transcoding features, the video quality and resolution remain the
same for all child feeds. When using MJPEG streams, the frame rate can be lowered to reduce the
bandwidth utilization by child feeds. Figure A-6 shows an example of how frame rates can be lowered
between parent and child feeds. The original video feed for all cameras is 30 fps, but is reduced to 15
fps by child feeds A and B in order to conserve bandwidth.
The example in Figure A-6 also shows how video feeds can be replicated indefinitely between Media
Servers. In this example, Media Server MS1 is the direct proxy to three IP camera feeds. In turn, two of
the feeds are parents for feeds going into Media Server MS2.
IP
Media Server
A 30 fps MS1
A
IP
C
B Parent A Viewer 1
Parent B
IP
C 15 fps
Child A
Child B
child child
A B
224655
Note The frame rate of a MJPEG child feed can only be equal to or lower than the parent feed.
Glossary
A
Alarm The action or event that triggers an alarm for which an event profile is logged. Events can be
caused by an encoder with serial contact closures, a motion detected above defined thresholds, or
another application using the soft-trigger command API.
Alarm Trigger The action or event that triggers an alarm for which an event profile is logged. Events can be
caused by an encoder with serial contact closures, a motion detected above defined thresholds,
another application using the soft-trigger command API, or a window or door opening/closing.
Alert The action or event that triggers an alarm for which an event profile is logged. Events can be
caused by an encoder with serial contact closures, a motion detected above defined thresholds, or
another application using the soft-trigger command API.
API Application Programming Interface
Archive A place in which records or historical documents are stored and/or preserved. An archive is a
collection of video data from any given proxy source. This enables a feed from a camera-encoder
to be stored in multiple locations and formats to be viewed at a later time. There are three types
of archives: Regular, where the archive recording terminates after a pre-set time duration lapses
and is stored for the duration of its Days-to-Live. Loop, where the archive continuously records
until the archive is stopped. Loop archives reuse the space (first-in-first-out) allocated after every
completion of the specified loop time. Clip, the source of the archive is extracted from one of the
previous two types and is stored for the duration of its Days-to-Live.
Archive Clip The source of the archive that is extracted from one of the other two types and stored for the
duration of its Days-to-Live.
Archive Server Programs which receive incoming video streams or loops, interprets them, and takes the
applicable action.
Archiver An application that manages off-line storage of video/audio onto back-up tapes, floppy disks,
optical disks, etc.
C
Camera Controls Permits users to change the camera lens direction and field view depth. Panning a camera moves
its field of view back and forth along a horizontal axis. Tilting commands move it up and down
the vertical axis. Zooming a camera moves objects closer to or further from the field of view.
Many of these cameras also include focus and iris control. A camera may have a subset of these
features such as zoom, pan, or tilt only.
Camera Drivers Responsible for converting standardized URL commands supported by the module into binary
control protocols read by a specific camera model.
Child Proxy An agent, process, or function that acts as a substitute or stand-in for another. A proxy is a process
that is started on a host acting as a source for a camera and encoder. This enables a single
camera-encoder source to be viewed and recorded by hundreds of clients. There are three types of
proxies:
A “direct” proxy is the initial or direct connection between the edge camera-encoder source. By
definition at least one direct proxy exists for a given video source.
A “parent” proxy is the source of a nested or child proxy. Parent proxies may be from remote or
local hosts. Proxies are nested in a hierarchy with inheritance rights.
A “child” proxy is the result of a nested or parent proxy. Child proxies run on the local host.
Proxies are nested in a hierarchy with inheritance rights. A child proxy has the same resolution,
quality, and media type of its parent, but can have a lower framerate for motion JPEG.
Clip A place in which records or historical documents are stored and/or preserved. An archive is a
collection of video data from any given proxy source. This enables a feed from a camera-encoder
to be stored in multiple locations and formats to be viewed at a later time. There are three types
of archives:
Regular: where the archive recording terminates after a pre-set time duration lapses and is stored
for the duration of its Days-to-Live.
Loop: where the archive continuously records until the archive is stopped. Loop archives reuse the
space (first-in-first-out) allocated after every completion of the specified loop time.
Clip: the source of the archive is extracted from one of the previous two types and is stored for
the duration of its Days-to-Live.
D
Direct Proxy An agent, process, or function that acts as a substitute or stand-in for another. A proxy is a process
that is started on a host acting as a source for a camera and encoder. This enables a single
camera-encoder source to be viewed and recorded by hundreds of clients. There are three types of
proxies: A “direct” proxy is the initial or direct connection between the edge camera-encoder
source. By definition at least one direct proxy exists for a given video source. A “parent” proxy
is the source of a nested or child proxy. Parent proxies may be from remote or local hosts. Proxies
are nested in a hierarchy with inheritance rights. A “child” proxy is the result of a nested or parent
proxy. Child proxies run on the local host. Proxies are nested in a hierarchy with inheritance
rights. A child proxy has the same resolution, quality, and media type of its parent, but can have
a lower frame rate for motion JPEG.
DVR Digital Video Recorder/Recording: broadcasts on a hard disk drive which can then be played back
at a later time
E
Encoder Driver Sends the output of a camera driver to the encoder to which the camera is attached (via the network
protocol supported by a particular type of encoder).
ES Cisco Video Surveillance Encoding Server
Event When an incident or event occurs, it is captured by a device or application and is tagged. An event
is a collection of information about an incident, including name, associated video sources, and a
timestamp. If the event setup includes triggered clips, an event will have trigger tracking or video
data associated directly with it. Users will need to use the event log to refer to times within a
referenced archive, typically a master loop. By using the API to seek to a specific UTC timestamp,
events can be used to look up occurrences in an archive that were not necessarily associated with
the original event.
Event Setup A collection of processes and configurations designed to track and notify when alarms or alerts
are triggered. Types of event profiles includes event trigger tracking only, event triggers with
archive clips, and motion detection. When an event profile includes a trigger from an encoder, part
of the profile includes scripts copied to the encoder which release an event notification. When an
event profile includes event triggered clips, a pre-post buffer archive is started from the proxies
associated with the event profile. Once a trigger occurs, a clip is extracted from the pre-post buffer.
F
Feed The transmission of a video signal from point to point.
FPS Frames Per Second
Frame Rate The rate at which the source is being recorded. For motion JPEG sources, the play rate is the
number of frames-per-second or fps. For MPEG sources, the play rate is the number of
megabits-per-second or Mbps and kilobits per second or Kbps.
H
HTTP Hypertext Transfer Protocol
J
J2EE Java 2 Enterprise Edition
JPEG JPEG (pronounced “jay-peg”) stands for Joint Photographic Experts Group, the original name of
the committee that wrote the standard. JPEG is designed for compressing full color or gray-scale
images of natural, real-world scenes. JPEG is “lossy,” meaning that the decompressed image is
not exactly the same as the original. A useful property of JPEG is that the degree of lossiness can
be varied by adjusting compression parameters. This means that the image maker can trade off file
size against output image quality. The play rate is the number of frames-per-second or fps.
K
Kbps The rate at which the source is being recorded. For motion JPEG sources, the play rate is the
number of frames-per-second or fps. For MPEG sources, the play rate is the number of
megabits-per-second or Mbps and kilobits per second or Kbps.
L
Layout The geometric description of one or more video panes.
LDAP Lightweight Directory Access Protocol
Loop A loop is a hardware or software device which feeds the incoming signal or data back to the
sender. It is used to aid in debugging physical connection problems.
M
Mbps The rate at which the source is being recorded. For motion JPEG sources, the play rate is the
number of frames-per-second or fps. For MPEG sources, the play rate is the number of
megabits-per-second or Mbps and kilobits per second or Kbps.
Media Server A device that processes multimedia applications.
MPEG MPEG (pronounced “em-peg”) stands for Moving Picture Experts Group and is the name of
family of standards used for the compression of digital video and audio sequences. MPEG files
are smaller for and use very sophisticated compression techniques. The play rate is the number of
megabits-per-second or Mbps and kilobits per second or Kbps.
N
NTSC National Television System Committee
P
Pan-Tilt-Zoom Controls Permits users to change the camera lens direction and field view depth. Panning a camera moves
its field of view back and forth along a horizontal axis. Tilting commands move it up and down
the vertical axis. Zooming a camera moves objects closer to or further from the field of view.
Many of these cameras also include focus and iris control. A camera may have a subset of these
features such as zoom, pan, or tilt only.
Parent proxy An agent, process, or function that acts as a substitute or stand-in for another. A proxy is a process
that is started on a host acting as a source for a camera and encoder. This enables a single
camera-encoder source to be viewed and recorded by hundreds of clients. There are three types of
proxies: A “direct” proxy is the initial or direct connection between the edge camera-encoder
source. By definition at least one direct proxy exists for a given video source. A “parent” proxy
is the source of a nested or child proxy. Parent proxies may be from remote or local hosts. Proxies
are nested in a hierarchy with inheritance rights. A “child” proxy is the result of a nested or parent
proxy. Child proxies run on the local host. Proxies are nested in a hierarchy with inheritance
rights. A child proxy has the same resolution, quality, and media type of its parent, but can have
a lower frame rate for motion JPEG.
Proxy An agent, process, or function that acts as a substitute or stand-in for another. A proxy is a process
that is started on a host acting as a source for a camera and encoder. This enables a single
camera-encoder source to be viewed and recorded by hundreds of clients. There are three types of
proxies: A “direct” proxy is the initial or direct connection between the edge camera-encoder
source. By definition at least one direct proxy exists for a given video source. A “parent” proxy
is the source of a nested or child proxy. Parent proxies may be from remote or local hosts. Proxies
are nested in a hierarchy with inheritance rights. A “child” proxy is the result of a nested or parent
proxy. Child proxies run on the local host. Proxies are nested in a hierarchy with inheritance
rights. A child proxy has the same resolution, quality, and media type of its parent, but can have
a lower frame rate for motion JPEG.
Proxy Command A URL-based API that is neither application-platform nor programming language specific.
Commands are sent to dynamically loaded modules (e.g. info.bwt, command.bwt, event.bwt, &c.)
using arguments in the form of name-value pairs.
Proxy Server An agent, process, or function that acts as a substitute or stand-in for another. A proxy is a process
that is started on a host acting as a source for a camera and encoder. This enables a single
camera-encoder source to be viewed and recorded by hundreds of clients. There are three types of
proxies: A “direct” proxy is the initial or direct connection between the edge camera-encoder
source. By definition at least one direct proxy exists for a given video source. A “parent” proxy
is the source of a nested or child proxy. Parent proxies may be from remote or local hosts. Proxies
are nested in a hierarchy with inheritance rights. A “child” proxy is the result of a nested or parent
proxy. Child proxies run on the local host. Proxies are nested in a hierarchy with inheritance
rights. A child proxy has the same resolution, quality, and media type of its parent, but can have
a lower frame rate for motion JPEG.
Proxy Source An agent, process, or function that acts as a substitute or stand-in for another. A proxy is a process
that is started on a host acting as a source for a camera and encoder. This enables a single
camera-encoder source to be viewed and recorded by hundreds of clients. There are three types of
proxies: A “direct” proxy is the initial or direct connection between the edge camera-encoder
source. By definition at least one direct proxy exists for a given video source. A “parent” proxy
is the source of a nested or child proxy. Parent proxies may be from remote or local hosts. Proxies
are nested in a hierarchy with inheritance rights. A “child” proxy is the result of a nested or parent
proxy. Child proxies run on the local host. Proxies are nested in a hierarchy with inheritance
rights. A child proxy has the same resolution, quality, and media type of its parent, but can have
a lower frame rate for motion JPEG.
PTZ: Pan Tilt Zoom Permits users to change the camera lens direction and field view depth. Panning a camera moves
its field of view back and forth along a horizontal axis. Tilting commands move it up and down
the vertical axis. Zooming a camera moves objects closer to or further from the field of view.
Many of these cameras also include focus and iris control. A camera may have a subset of these
features such as zoom, pan, or tilt only.
R
Rate The rate at which the source is being recorded. For motion JPEG sources, the play rate is the
number of frames-per-second or fps. For MPEG sources, the play rate is the number of
megabits-per-second or Mbps and kilobits per second or Kbps.
Record Rate The rate at which the source is being recorded. For motion JPEG sources, the play rate is the
number of frames-per-second or fps. For MPEG sources, the play rate is the number of
megabits-per-second or Mbps and kilobits per second or Kbps.
Recording A place in which records or historical documents are stored and/or preserved. An archive is a
collection of video data from any given proxy source. This enables a feed from a camera-encoder
to be stored in multiple locations and formats to be viewed at a later time. There are three types
of archives: Regular, where the archive recording terminates after a pre-set time duration lapses
and is stored for the duration of its Days-to-Live. Loop, where the archive continuously records
until the archive is stopped. Loop archives reuse the space (first-in-first-out) allocated after every
completion of the specified loop time. Clip, the source of the archive is extracted from one of the
previous two types and is stored for the duration of its Days-to-Live.
Recording Archive An archive whose state is running/recording. A running regular archive gathers additional data
and increases in size. A running loop archive gathers more data and reuses its allocated space.
Regular archives that have not reached their duration and loops that are still recording are running.
Running archives have a Days-to-Live value of v”-1” which does not update until they have
stopped.
Repository A central place where data is stored and maintained. A repository can be a place where multiple
databases or files are located for distribution over a network, or a repository can be a location that
is directly accessible to the user without having to travel across a network.
S
Stopped Archive An archive whose state is stopped. A shelved archive does not gather additional data or increase
in size. Regular archives, clips, recordings, and loops that have reached their duration are
considered shelved. Shelved archives are stored for the duration of their Days-to-Live.
Stored Archive An archive whose state is stopped. A shelved archive does not gather additional data or increase
in size. Regular archives, clips, recordings, and loops that have reached their duration are
considered shelved. Shelved archives are stored for the duration of their Days-to-Live.
Stream Any data transmission that occurs in a continuous flow.
T
Tagged Event When an incident or event occurs, it is captured by a device or application and is tagged. An event
is a collection of information about an incident, including name, associated video sources, and a
timestamp. If the event setup includes triggered clips, an event will have trigger tracking or video
data associated directly with it. Users will need to use the event log to refer to times within a
referenced archive, typically a master loop. By using the API to seek to a specific timestamp,
events can be used to look up occurrences in an archive that were not necessarily associated with
the original event.
Time stamp An international and universal time system. Representation of time used by computers and many
programming languages are most often accurate down to the millisecond. UTC values are used to
track archive date/time values and records when events are triggered.
Trap Used to report alerts or other asynchronous event s pertaining to a managed subsystem.
Trigger The action or event that triggers an alarm for which an event profile is logged. Events can be
caused by an encoder with serial contact closures, a motion detected above defined thresholds, or
another application using the soft-trigger command API.
U
UI User Interface
Update Proxy Changes the registered information for a proxy source so that the proxy process will serve
multiple videos as required. Once a proxy has been updated, all requests for that proxy will be
served via the new feed. All clients requesting the feeds will be switched. Proxies are not
trans-coded meaning some attributes may not be changed once registered.
V
Video Feed The transmission of a video signal from point to point. View: A layout, dwell time, and media
sources. VM: Cisco Video Surveillance Virtual Matrix Client VMR: Video Mixing Renderer
W
Window All or a portion of the camera view. The display can contain multiple windows either by stacking
(only the top one is entirely visible) or tiling (all are visible) or a combination of both.
WMV Windows Media Video
References
• Physical Security Products:
http://www.cisco.com/en/US/products/ps6918/Products_Sub_Category_Home.html
• Design Guides:
– Cisco Validated Designs
http://www.cisco.com/go/cvd
– Cisco Design Zone
http://www.cisco.com/go/designzone
– Designing a Campus Network for High Availability
http://www.cisco.com/en/US/docs/solutions/Enterprise/Campus/HA_campus_DG/hacampusd
g.html
– HA Campus Recovery Analysis
http://www.cisco.com/en/US/docs/solutions/Enterprise/Campus/HA_recovery_DG/campusRe
covery.html
• At-a Glance
– Cisco Enterprise Campus and Branch Network Architecture for IP Video Surveillance -
At-a-Glance
– Cisco IP Video Surveillance Solution Offering - At-a-Glance Document
• Primers
– Cisco IP Video Surveillance Solution Components - A technical Primer
• White Papers