<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5960655149658546137</id><updated>2026-06-09T04:14:00.502-07:00</updated><category term="Cisco IOS XR"/><category term="Kernel"/><category term="System Manager"/><category term="Distributed Services"/><category term="Infrastructure"/><category term="Algorithms"/><category term="Architecture"/><category term="Bulk Content Downloader"/><category term="CLI"/><category term="Carrier-Grade"/><category term="Characteristics of IPC Mechanisms"/><category term="GSP"/><category term="Group service protocol"/><category term="NOS"/><category term="Operating System Concepts"/><category term="Platforms"/><category term="Process Attributes"/><category term="Process Placement"/><category term="Processes"/><category term="Qnet"/><category term="Requirements"/><category term="Scheduling"/><category term="Services"/><category term="Synchronization"/><category term="Threads"/><category term="overview"/><title type='text'>Cisco IOS XR</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-1904280359149268626</id><published>2012-05-15T02:42:00.000-07:00</published><updated>2012-05-15T02:42:00.535-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS XR"/><category scheme="http://www.blogger.com/atom/ns#" term="Infrastructure"/><category scheme="http://www.blogger.com/atom/ns#" term="Process Placement"/><title type='text'>Process Placement</title><content type='html'>&lt;br /&gt;
&lt;h2 class=&quot;first-section-title&quot; id=&quot;annotationlabel-first&quot; style=&quot;background-color: white; color: navy; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.5em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;41&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: x-small; text-align: left;&quot;&gt;&lt;a href=&quot;&quot; id=&quot;138&quot; name=&quot;138&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-41&quot; name=&quot;IDX-41&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: x-small; text-align: left;&quot;&gt;&lt;/span&gt;&lt;div class=&quot;para&quot; id=&quot;138-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;42&quot;&gt;&lt;a href=&quot;&quot; id=&quot;139&quot; name=&quot;139&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-42&quot; name=&quot;IDX-42&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;In Cisco CRS-1 and Cisco XR12000 series routers, additional route processors can be added to the system in addition to the active and standby RPs. The additional route processors can be used to offload processes from the main RP (or RP pairs), effectively increasing the overall processing capacity of the system. The additional route processors can be paired to form active and standby RPs. The process of moving processes from one RP to another is known as&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;process placement&lt;/i&gt;.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;139-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
In the case of CRS-1, the Distributed Route Processor (DRP) card provides additional flexibility and horsepower. The main route processors are placed in dedicated slots.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;139-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
In the case of XR12000, the PRP used as the main processor can be used as a DRP to provide additional horsepower. The PRP can be placed in any line card slot.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;139-3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Process placement allows offloading of resource-intensive processes to the DRP from the main RP, resulting in system performance improvement. The DRP does not perform any of the shelf-designated functions normally performed by the RP. Only the main RP can be the designated shelf controller (DSC) in a single or multishelf system.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;139-4&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
The process called&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;placed&lt;/i&gt;&amp;nbsp;(place daemon) manages the process placement feature. There is one placed process per secure domain router. Process placement provides a better distribution of system resources and increases availability.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;139-5&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Configuring process placement requires few commands and an understanding of affinities.&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;Affinity&lt;/i&gt;&amp;nbsp;can be described as the force of attraction between two heterogeneous objects. Configuring an affinity value essentially sets a degree of preference that determines whether a process would be attracted or repulsed to a particular RP. Process placement can be a triggered event or manually set by an operator. Process placement can also be configured to trigger when a memory threshold is reached and to avoid instability, a resource intensive process’s affinity is set to be attractive to another node, or repulse on the existing (D)RP.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;139-6&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Cisco documentation provides details on four affinities that are configurable to influence process placement. The following affinities are referenced from CCO Process Placement on IOS XR software.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;139-7&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
The configurable affinities are as follows:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;139-8&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Affinity location set&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;139-9&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Affinity location type&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;139-10&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Affinity program&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;139-11&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Affinity self&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;para&quot; id=&quot;139-12&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;i class=&quot;emphasis&quot;&gt;Affinity location set&lt;/i&gt;&amp;nbsp;specifies a preference for a process to run on a specific node pair. A&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;node pair&lt;/i&gt;&amp;nbsp;is either an active and standby pair of nodes (hosted on RPs or DRPs), or a single active node on an RP or DRP that does not have a redundant standby node.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;139-13&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;43&quot;&gt;&lt;a href=&quot;&quot; id=&quot;140&quot; name=&quot;140&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-43&quot; name=&quot;IDX-43&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;i class=&quot;emphasis&quot;&gt;Affinity location type&lt;/i&gt;&amp;nbsp;specifies a preference for a process to run on a particular location type. Available location types are as follows:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.EAFD58DD-8CE4-4CEA-BE28-57210B7C01AC&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Paired:&lt;/b&gt;&amp;nbsp;RP nodes that have an associated standby node&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.8F50E6D5-EB49-499F-A530-BBBC40F438A3&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Primary:&lt;/b&gt;&amp;nbsp;Primary RP node for the SDR (also known as the&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;designated secure domain router system controller&lt;/i&gt;&amp;nbsp;or&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;DSDRSC&lt;/i&gt;)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.FA9D398F-7AA0-4740-B262-075FD64DE929&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Current:&lt;/b&gt;&amp;nbsp;Current node. A process’s affinity to its current node characterizes its preference to remain on the same node where possible.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;para&quot; id=&quot;140-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
You configure the placement policy to allow certain processes to stay where they are (current) or move them by specifying various affinity values.&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;The higher the value of an affinity, the stronger the requirement that the process run at a particular location&lt;/i&gt;. A low or zero point value indicates a weaker requirement (or no preference) that a process run at a location.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;140-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;i class=&quot;emphasis&quot;&gt;Affinity program&lt;/i&gt;&amp;nbsp;specifies a preference for a process to run on the same node as another process or to run on a different node than another process. You would want to use this affinity in a case where certain processes perform better when they are running together on the same node (attract) or on different nodes, apart from each other (repulse).&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;140-3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;i class=&quot;emphasis&quot;&gt;Affinity self&lt;/i&gt;&amp;nbsp;adjusts placement decisions when multiple instances of a process are started. An attract (positive) affinity indicates a preference to have all instances of a process run on the same node, whereas a repulse (negative) affinity indicates a preference to have each instance of a process run on different nodes.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;140-4&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
The command&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;show placement program all&lt;/b&gt;&amp;nbsp;provides a detailed output showing on which node each process or thread resides. Manually moving a process on a router from the default location of an RP to the DRP is done through manipulation of affinities or attractiveness to a node. In&amp;nbsp;Example 1, the BGP process has been manually placed on a DRP located in Slot 2 of router 1 (CRS1-1).&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex13&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 1em; text-align: left;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;140-5&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 1:&amp;nbsp;&lt;/span&gt;Output of the&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;show placement program all&lt;/i&gt;&amp;nbsp;Command&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;141&quot; name=&quot;141&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex13&quot; name=&quot;ch02ex13&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex13&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;141-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS1-1#&lt;b class=&quot;bold&quot;&gt;show placement program all&lt;/b&gt;

If a program is shown as having &#39;rejected locations&#39; (i.e., locations on which
it cannot be placed), the locations in question can been seen using the &quot;show
placement policy program&quot; command.

If a program has been placed but not yet started, the amount of time elapsed
since the program was placed is shown in the &#39;waiting to start&#39; field.

Parentheses around the node indicate that the node has not yet fully booted.
  This will be true of standby nodes.
Program                       Placed at location            # rejected  Waiting
                                                            locations   to start
———————————————————————————————————————————————————————————————————————————————
li_mgr                        0/RP0/CPU0 (0/RP1/CPU0)
statsd_manager                0/RP0/CPU0 (0/RP1/CPU0)
ipv4_rib                      0/2/CPU0
ipv6_rib                      0/2/CPU0
policy_repository             0/RP0/CPU0 (0/RP1/CPU0)
ipv4_arm                      0/RP0/CPU0 (0/RP1/CPU0)
ipv6_arm                      0/RP0/CPU0 (0/RP1/CPU0)
ipv4_mpa                      0/RP0/CPU0 (0/RP1/CPU0)
ipv6_mpa                      0/RP0/CPU0 (0/RP1/CPU0)
bfd                           0/RP0/CPU0 (0/RP1/CPU0)
domain_services               0/RP0/CPU0 (0/RP1/CPU0)
ftp_fs                        0/RP0/CPU0 (0/RP1/CPU0)
rcp_fs                        0/RP0/CPU0 (0/RP1/CPU0)
tftp_fs                       0/RP0/CPU0 (0/RP1/CPU0)
ipv4_connected                0/2/CPU0
ipv4_local                    0/2/CPU0
ipv4_rump                     0/2/CPU0
ipv6_connected                0/2/CPU0
ipv6_local                    0/2/CPU0
ipv6_rump                     0/2/CPU0
eem_metric_dir                0/RP0/CPU0 (0/RP1/CPU0)
l2tp_mgr                      0/RP0/CPU0 (0/RP1/CPU0)
l2vpn_mgr                     0/RP0/CPU0 (0/RP1/CPU0)
mpls_vpn_mib                  0/RP0/CPU0 (0/RP1/CPU0)
rt_check_mgr                  0/RP0/CPU0 (0/RP1/CPU0)
cdp_mgr                       0/RP0/CPU0 (0/RP1/CPU0)
ip_expl_paths_daemon          0/RP0/CPU0 (0/RP1/CPU0)
policymgr                     0/RP0/CPU0 (0/RP1/CPU0)
nfmgr                         0/RP0/CPU0 (0/RP1/CPU0)
rsvp                          0/RP0/CPU0 (0/RP1/CPU0)
mpls_ldp                      0/RP0/CPU0 (0/RP1/CPU0)
ipv4_mfwd_ma                  0/RP0/CPU0 (0/RP1/CPU0)
ospf instance 1               0/RP0/CPU0 (0/RP1/CPU0)
ospf_uv                       0/RP0/CPU0 (0/RP1/CPU0)
ospf instance 10396           0/RP0/CPU0 (0/RP1/CPU0)
bpm                           0/RP0/CPU0 (0/RP1/CPU0)
ipv4_static                   0/2/CPU0
brib instance 81              0/2/CPU0
brib instance 83              0/2/CPU0
bgp instance 1                0/2/CPU0
bgp instance 2                0/2/CPU0
banner_config                 0/RP0/CPU0 (0/RP1/CPU0)
RP/0/RP0/CPU0:CRS1-1#&lt;span class=&quot;beginpage&quot; pagenum=&quot;44&quot;&gt;&lt;a href=&quot;&quot; id=&quot;142&quot; name=&quot;142&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-44&quot; name=&quot;IDX-44&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;div class=&quot;blankspace&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;142-1&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;45&quot;&gt;&lt;a href=&quot;&quot; id=&quot;143&quot; name=&quot;143&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-45&quot; name=&quot;IDX-45&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Let us look at a different router (CRS1-4) and view the default placement policy for the BGP process. The command&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;show placement policy program&lt;/b&gt;&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;&amp;lt;process-name&amp;gt;&lt;/i&gt;&lt;b class=&quot;bold&quot;&gt;instance&lt;/b&gt;&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;[x]&lt;/i&gt;&amp;nbsp;provides the default or configured placement policy for a program (process). It is recommended that you include an instance number in this scenario because more than one instance can be present. The output in&amp;nbsp;Example 2&amp;nbsp;shows placement policy for the BGP process. The affinity location-type attract value of 600 has a default location to the route processor.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex14&quot; style=&quot;margin-top: 1em;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;143-1&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 2:&amp;nbsp;&lt;/span&gt;Output of the&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;show placement policy program bgp instance 1&lt;/i&gt;&amp;nbsp;Command&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;144&quot; name=&quot;144&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex14&quot; name=&quot;ch02ex14&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex14&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;144-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS1-4#&lt;b class=&quot;bold&quot;&gt;show placement policy program bgp instance 1&lt;/b&gt;
Program: bgp instance 1                           : source
———————————————————————————————————————————————————————————————————————————————
  Assumed mem:                 1 MB               : system [default]
  Slow migration interval:    1 second            : system [default]

  affinity location-type current attract 600      : system bgp
  affinity location-type paired attract 50        : system bgp
  affinity location-type primary repulse 50       : system bgp
  affinity self repulse 160                       : system bgp
  affinity program ipv6_rib attract 250           : system bgp
  affinity program ipv4_rib attract 250           : system bgp&lt;/pre&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;div class=&quot;blankspace&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;144-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
In&amp;nbsp;Example 3, router CRS1-1 is configured to attract BGP process to a DRP located in slot 2.&amp;nbsp;Example 3&amp;nbsp;shows the configuration and output displayed to demonstrate how the BGP process is attracted to the DRP. An affinity location-set is used to specify the node in the chassis. An attract value is configured greater than the default (600) to lure the process.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex15&quot; style=&quot;margin-top: 1em;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;144-3&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 3:&amp;nbsp;&lt;/span&gt;Configuration of BGP Process Placement&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;145&quot; name=&quot;145&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex15&quot; name=&quot;ch02ex15&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex15&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;145-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS1-1#&lt;b class=&quot;bold&quot;&gt;show running-config placement program bgp instance 1&lt;/b&gt;
placement program bgp instance 1
 affinity location-set 0/2/CPU0 attract 100000

RP/0/RP0/CPU0:CRS1-1##show placement program bgp instance 1
.
.
. &amp;lt;snip&amp;gt;
Program                         Placed at location            # rejected  Waiting
                                                              locations   to start
———————————————————————————————————————————————————————————————————————————————
bgp instance 1                 0/2/CPU0
RP/0/RP0/CPU0:CRS1-1#&lt;/pre&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;div class=&quot;blankspace&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;145-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;46&quot;&gt;&lt;a href=&quot;&quot; id=&quot;146&quot; name=&quot;146&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-46&quot; name=&quot;IDX-46&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;In&amp;nbsp;Example 3, the BGP process resides on the DRP. Because we have an attract value of 600 on the route process (that is, a value less than what is configured on the DRP), the value of 600 is still significant. If there is a failure or service interruption with the DRP, the BGP process will fail back to the RP. As processes are placed and restarted on new locations, you might see traffic loss with BGP peers, depending on what high-availability features are configured.&lt;/div&gt;
&lt;div class=&quot;last-para&quot; id=&quot;146-1&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
The&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;placement reoptimize&lt;/b&gt;&amp;nbsp;command is important when manipulating affinities in a router. When this command is issued, the system will compare all affinities and execute necessary changes to process placements. One cannot assume the reoptimization will take place every time after this command has been committed in a Cisco IOS XR operating system. If an operator has not made configuration changes, it is not necessary to invoke this command. Instead, allow the IOS XR operating system to optimize based on triggered thresholds.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/1904280359149268626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/05/process-placement.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/1904280359149268626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/1904280359149268626'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/05/process-placement.html' title='Process Placement'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-7298074383164634722</id><published>2012-05-11T00:19:00.000-07:00</published><updated>2012-05-11T00:19:00.124-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bulk Content Downloader"/><category scheme="http://www.blogger.com/atom/ns#" term="Distributed Services"/><title type='text'>Bulk Content Downloader | Distributed Services</title><content type='html'>&lt;br /&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;133-2&quot; style=&quot;background-color: white; color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em; text-align: left;&quot;&gt;

&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;134-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;40&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;135&quot; name=&quot;135&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;IDX-40&quot; name=&quot;IDX-40&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Bulk Content Downloader (BCDL) is used to download large data tables using GSP. It is primarily used to download routing tables and MPLS label bindings to line cards and FGID tables to fabric cards. It uses the producer/consumer model. Routing information base (RIB) and label switch database (LSD) on the RP are examples of producers. FIB manager processes on the line cards and RP are consumers of the data generated by the producer processes.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;135-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
BCDL uses GSP to multicast tables over the fabric or control Ethernet to multiple nodes. The following are the services provided by BCDL:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;135-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Downloads data using GSP. BCDL multicasts routing tables and label bindings to line cards over the fabric, and FGID tables to fabric cards over the Control Ethernet. FGID is used on the CRS-1 system because it uses a three-stage switch fabric. FGID is not used on XR12K or ASR9000 systems.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;135-3&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Handles card insertion or reload. If a line card or fabric card is inserted or reloaded, it needs to receive RIB or FGID tables. Because all other line cards and/or fabric cards have already received the tables, BCDL uses unicast to download tables to the inserted or reloaded line card.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;135-4&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Handles process restart in a similar way as LC reload.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;135-5&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Supports multiple tables in RIB to support multiple virtual routing and forwarding tables (VRF). Each table can be sent to a specific set of line cards.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;para&quot; id=&quot;135-6&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Example 1&amp;nbsp;shows all BCDL consumers on the router. For each BCDL group, the output shows GSP GID, location of producer, number of consumers, location and PID of consumers, and corresponding stats. For example, FGID_BCDL_Srv0 is produced on RP0, uses GSP GID=18, and has four consumers; that is, one consumer (sfe_drvr) on each fabric card (0/SM0/SP, 0/SM1/SP, 0/SM2/SP, 0/SM3/SP).&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex12&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 1em; text-align: left;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;135-7&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 1:&amp;nbsp;&lt;/span&gt;BCDL Consumers&lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;136&quot; name=&quot;136&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch02ex12&quot; name=&quot;ch02ex12&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex12&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;136-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS1-1#&lt;b class=&quot;bold&quot;&gt;show bcdl consumers&lt;/b&gt;
group FGID_BCDL_Svr0, gsp gid 18, 4 consumers, agent jid 111, node 0/RP0/CPU0
(expected 4 consumers to reply, received 4 replies)
      pid        node asg csg  lwg sus  messages       bytes  errs name
    45100   0/SM3/SP    0   0   19   N        460       12472     0 sfe_drvr
    45100   0/SM0/SP    0   0   19   N        460       12472     0 sfe_drvr
    45100   0/SM2/SP    0   0   19   N        460       12472     0 sfe_drvr
    45100   0/SM1/SP    0   0   19   N        460       12040     0 sfe_drvr
group ipv4_mrib, gsp gid 2080, 4 consumers, agent jid 117, node 0/RP0/CPU0
(expected 4 consumers to reply, received 4 replies)
      pid        node asg csg  lwg sus  messages       bytes  errs name
   434426 0/RP0/CPU0   0   0 2081   N         12        1660     0 ipv4_mfwd_partne
   278761 0/RP1/CPU0   0   0 2081   N         12        1712     0 ipv4_mfwd_partne
   110711   0/0/CPU0   0   0 2081   N         12        1676     0 ipv4_mfwd_partne
   110720   0/7/CPU0   0   0 2081   N         12        1676     0 ipv4_mfwd_partne

group ipv4_rib, gsp gid 2052, 4 consumers, agent jid 110, node 0/2/CPU0
(expected 4 consumers to reply, received 4 replies)
      pid        node asg csg  lwg sus  messages       bytes  errs name
   254081 0/RP1/CPU0   0   0 2053   N         47       47700     0 fib_mgr
    86101   0/0/CPU0   0   0 2053   N         47       47700     0 fib_mgr
    82006   0/7/CPU0   0   0 2053   N         47       47700     0 fib_mgr
   389249 0/RP0/CPU0   0   0 2053   N         47       47700     0 fib_mgr

group ipv6_rib, gsp gid 2055, 4 consumers, agent jid 111, node 0/2/CPU0
(expected 4 consumers to reply, received 4 replies)
      pid        node asg csg  lwg sus  messages       bytes  errs name
   254081 0/RP1/CPU0   0   0 2056   N          1          28     0 fib_mgr
   389249 0/RP0/CPU0   0   0 2056   N          1          28     0 fib_mgr
    82006   0/7/CPU0   0   0 2056   N          1          28     0 fib_mgr
    86101   0/0/CPU0   0   0 2056   N          1          28     0 fib_mgr

group mpls_lsd_v4, gsp gid 2062, 4 consumers, agent jid 115, node 0/RP0/CPU0
(expected 4 consumers to reply, received 4 replies)
      pid        node asg csg  lwg sus  messages      bytes   errs name
   389249 0/RP0/CPU0   0   0 2063   N       3578      806444     0 fib_mgr
   254081 0/RP1/CPU0   0   0 2063   N       3578      806444     0 fib_mgr
    86101   0/0/CPU0   0   0 2063   N       3578      806444     0 fib_mgr
    82006   0/7/CPU0   0   0 2063   N       3578      806444     0 fib_mgr

group mpls_lsd_v6, gsp gid 2064, 0 consumers, agent jid 116, node 0/RP0/CPU0

group pa_ff, gsp gid 2029, 4 consumers, agent jid 112, node 0/RP0/CPU0
(expected 4 consumers to reply, received 4 replies)
      pid        node asg csg  lwg sus  messages       bytes  errs name
   401557 0/RP0/CPU0   0   0 2030   N        428       73876     0 pifibm_server
    86113   0/0/CPU0   0   0 2030   N        428       73876     0 pifibm_server
    82020   0/7/CPU0   0   0 2030   N        428       73876     0 pifibm_server
   266396 0/RP1/CPU0   0   0 2030   N        428       73876     0 pifibm_server&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/7298074383164634722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/05/bulk-content-downloader-distributed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/7298074383164634722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/7298074383164634722'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/05/bulk-content-downloader-distributed.html' title='Bulk Content Downloader | Distributed Services'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-8856470745676622927</id><published>2012-05-07T08:39:00.000-07:00</published><updated>2012-05-07T08:39:00.164-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Distributed Services"/><category scheme="http://www.blogger.com/atom/ns#" term="Group service protocol"/><category scheme="http://www.blogger.com/atom/ns#" term="GSP"/><title type='text'>Group service protocol (GSP) | Distributed Services</title><content type='html'>&lt;br /&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;123-2&quot; style=&quot;background-color: white; color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em; text-align: left;&quot;&gt;
GSP&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;124-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;36&quot;&gt;&lt;a href=&quot;&quot; id=&quot;125&quot; name=&quot;125&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-36&quot; name=&quot;IDX-36&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Group service protocol (GSP), which is discussed briefly in the preceding section, is a distributed and reliable group communication protocol. GSP enables a set of distributed processes to function as one application.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;125-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
GSP communication can be characterized as follows:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;125-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
GSP is connectionless and location transparent.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;125-3&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
It is efficient because it supports one-to-many communication, which allows the sender to send once for many targets.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;125-4&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
It uses asynchronous semantics. The sender unblocks before the receivers receive the message. Asynchronous semantics is less prone to deadlock and provides better throughput and performance.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;125-5&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
GSP communication describes members with a logical group ID, not physical (location based) ID.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;125-6&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Group communication allows members to be reached by a multicast address or, additionally, a logical set on top of a multicast address (selective multicast).&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;125-7&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
The sender can send to the entire group, which will deliver to whichever nodes are in the group. The sender need not know anything about the group members.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;125-8&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
The sender can send to a subset of members in the group—a subset of nodes or subset of members.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;125-9&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
GSP supports open group communication and allows nonmembers to send messages to all members in a group.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;para&quot; id=&quot;125-10&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
The GSP process runs on every node in the system. It manages local membership and member nodes. GSP on a local node does not need to know the identity of remote node clients. GSP identifies each group with a unique group ID (GID). The GID maps to a multicast address, which is either fabric group ID (FGID) if it is transported over the fabric or multicast MAC address if it is transported over Control Ethernet. The GID number space is divided into three different ranges as shown in&amp;nbsp;Table 1.&lt;/div&gt;
&lt;a href=&quot;&quot; id=&quot;126&quot; name=&quot;126&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; outline-color: initial; outline-style: none; outline-width: initial; text-align: left;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02tab03&quot; name=&quot;ch02tab03&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; outline-color: initial; outline-style: none; outline-width: initial; text-align: left;&quot;&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: x-small; text-align: left;&quot;&gt;&lt;/span&gt;&lt;table border=&quot;1&quot; class=&quot;table&quot; id=&quot;ch02tab03&quot; linktabletoexcel=&quot;yes&quot; style=&quot;background-color: white; color: black; font-family: verdana, arial, helvetica, sans-serif; font-size: 11px; margin-bottom: 1em; margin-top: 1em; text-align: left;&quot;&gt;&lt;caption class=&quot;table-title&quot; id=&quot;126-1&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; margin-top: 0.3em; text-align: left;&quot;&gt;&lt;span class=&quot;table-title&quot; style=&quot;margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;table-titlelabel&quot;&gt;Table 1:&amp;nbsp;&lt;/span&gt;GID Number Allocation&lt;/span&gt;&amp;nbsp;&lt;/caption&gt;&lt;thead&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;th align=&quot;left&quot; class=&quot;th&quot; scope=&quot;col&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;126-2&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
GID Range&lt;/div&gt;
&lt;/th&gt;&lt;th align=&quot;left&quot; class=&quot;th&quot; scope=&quot;col&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;126-3&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Description&lt;/div&gt;
&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;126-4&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
0–999&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;126-5&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Used for admin plane.&lt;/div&gt;
&lt;div class=&quot;table-para&quot; id=&quot;126-6&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Scope: All nodes in the system.&lt;/div&gt;
&lt;div class=&quot;table-para&quot; id=&quot;126-7&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Transported over Control Ethernet.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;126-8&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
1000–1999&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;126-9&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Used for SDR control (LR-control).&lt;/div&gt;
&lt;div class=&quot;table-para&quot; id=&quot;126-10&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Scope: All SDR node.&lt;/div&gt;
&lt;div class=&quot;table-para&quot; id=&quot;126-11&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Transported over Control Ethernet.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;126-12&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
&amp;gt; 2000&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;126-13&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Used for LR plane.&lt;/div&gt;
&lt;div class=&quot;table-para&quot; id=&quot;126-14&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Scope: All SDR nodes.&lt;/div&gt;
&lt;div class=&quot;table-para&quot; id=&quot;126-15&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Transported over fabric.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;para&quot; id=&quot;126-16&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;37&quot;&gt;&lt;a href=&quot;&quot; id=&quot;127&quot; name=&quot;127&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-37&quot; name=&quot;IDX-37&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;GSP provides a CLI that lists groups and shows group membership and stats for all three planes.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;127-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
The command&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;show gsp stats client location&lt;/b&gt;&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;&amp;lt;r/s/p&amp;gt;&lt;/i&gt;&amp;nbsp;provides the number of messages sent and received for each GSP client process. It also provides an error counter per GSP client process.&amp;nbsp;Example 2&amp;nbsp;shows sample output of the GSP&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;stats&lt;/b&gt;&amp;nbsp;command.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex08&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 1em; text-align: left;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;127-2&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 2:&amp;nbsp;&lt;/span&gt;GSP Stats&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;128&quot; name=&quot;128&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex08&quot; name=&quot;ch02ex08&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex08&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;128-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS-A#&lt;b class=&quot;bold&quot;&gt;show gsp stats client location 0/0/CPU0&lt;/b&gt;
Group stats collected during last 1876575 seconds:

  JID Process          Lookup   Create    Sent  ms/call  Rcv  Error Eagain  Etime
———————————————————————————————————————————————————————————————————————————————————————————————
215   qsm                  0        10      96     28   1138      8      8     0
276   sysdb_svr_local      0         2     462      3   6966      0      0     0
275   sysdb_mc             4         4    1269      7   2647      0      0     0
173   lrd                  0         4      11     16    732      0      0     0
135   fabricq_mgr          0         2      21      0     92      0      0     0
160   ingressq             0         1     213      0    256      0      0     0
60    insthelper           0         4      12     60   1317      0      0     0
217   rdsfs_svr            0         8    2650      2  19236    216      0     0
146   ifmgr                1         6     106      5    121      0      0     0
142   hfr_pm               1         5  125214      0   1150      4      0     0
194   pfi_ifh_server       0         1       2     12     70      0      0     0
271   statsd_server        1         3     135      3    138      0      0     0
221   rsi_agent            0         2      12     50   1039      0      0     0
156   ipv6_io              0         2      11     55   1168      0      0     0
149   improxy              0         1       0      0     82      0      0     0
105   bfd_agent            0         4      20     31   1279      0      0     0
152   ipv4_io              0         1       0      0     29      0      0     0
134   fib_mgr              8        13  308232      1 305868      0      0     0
184   netio                1         4   31291      0  63412      0      0     0
169   l2fib_mgr            0         3      11     50   1028      0      0     0
141   fab_svr              0         2       5     17    514      0      0     0
153   ipv4_ma              1         4      11     48   1767      0      0     0
196   pifibm_server        2        12      60     12  94555      0      0     0
.....cut.....&lt;/pre&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;div class=&quot;blankspace&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;128-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;38&quot;&gt;&lt;a href=&quot;&quot; id=&quot;129&quot; name=&quot;129&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-38&quot; name=&quot;IDX-38&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;You can use the command&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;show gsp groups&lt;/b&gt;&amp;nbsp;[&lt;b class=&quot;bold&quot;&gt;admin&lt;/b&gt;&amp;nbsp;|&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;lr-control&lt;/b&gt;]&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;location&lt;/b&gt;&amp;nbsp;&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;r&lt;/i&gt;/&lt;i class=&quot;emphasis&quot;&gt;s&lt;/i&gt;/&lt;i class=&quot;emphasis&quot;&gt;m&lt;/i&gt;&amp;gt; to list GSP groups in admin, lr-control, or SDR. It lists the groups with GID and group name.&amp;nbsp;Example 3&amp;nbsp;shows sample output for the admin plane group.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex09&quot; style=&quot;margin-top: 1em;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;129-1&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 3:&amp;nbsp;&lt;/span&gt;GSP Admin Plane Group&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;130&quot; name=&quot;130&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex09&quot; name=&quot;ch02ex09&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex09&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;130-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS-A#&lt;b class=&quot;bold&quot;&gt;show gsp groups admin location 0/0/cpu0&lt;/b&gt;

 List of groups in Admin Plane
Grp_ID Grp_Name
****** ********
     0 gsp_admin
     1 ens_admin_group
     2 _async_admin_group
     3 gang_sched_admin_group
     4 sysdb_medusae_u_admin
     5 sysdb_medusae_u_admin_s
     9 sysdb_medusae_v1_admin
    10 sysdb_medusae_v1_admin_s
    11 FDI0
    16 lrd_admin_grp
    19 QSM_LC_ADMIN_GRP
    24 FDI_SPONGES
RP/0/RP0/CPU0:CRS-A#&lt;/pre&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;div class=&quot;blankspace&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;130-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
Example 4&amp;nbsp;shows sample output for the LR-control group.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex10&quot; style=&quot;margin-top: 1em;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;130-3&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 4:&amp;nbsp;&lt;/span&gt;GSP LR-control Group&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;131&quot; name=&quot;131&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex10&quot; name=&quot;ch02ex10&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex10&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;131-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS-A#&lt;b class=&quot;bold&quot;&gt;show gsp groups lr-control location 0/rp0/cpU0&lt;/b&gt;

 List of groups in Lctrl Plane
Grp_ID Grp_Name
****** ********
  1000 gsp_lctrl
  1001 ens_lctrl_group
  1002 _async_lctrl_group
  1003 gang_sched_lctrl_group
  1004 lrd_lctrl_grp
  1005 sysdb_medusae_u
  1006 QSM_LR_GRP
  1007 sysdb_medusae_v1
  1008 sysdb_medusae_u_s_lr_shared
  1009 sysdb_medusae_v1_s_lr_shared
  1010 PuF group: persisted placement
RP/0/RP0/CPU0:CRS-A#&lt;/pre&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;div class=&quot;blankspace&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;131-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;39&quot;&gt;&lt;a href=&quot;&quot; id=&quot;132&quot; name=&quot;132&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-39&quot; name=&quot;IDX-39&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Example 5&amp;nbsp;shows sample output for the SDR group.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex11&quot; style=&quot;margin-top: 1em;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;132-1&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 5:&amp;nbsp;&lt;/span&gt;GSP SDR Scoped Group&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;133&quot; name=&quot;133&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex11&quot; name=&quot;ch02ex11&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex11&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;133-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS-A#&lt;b class=&quot;bold&quot;&gt;show gsp groups location  0/14/CPU0&lt;/b&gt;

 List of groups in LR Plane
Grp_ID Grp_Name
****** ********
  2000 gsp
  2001 ens_group
  2002 _async_group
  2003 gang_sched_group
  2013 RDS_CGRP_/etc/cfg/lr_1
  2014 RDS_WTR_LWG_GRP_/etc/cfg/lr_1
  2015 RDS_CGRP_/etc/cfg/alt_cfg_1
  2016 RDS_WTR_LWG_GRP_/etc/cfg/alt_cf
  2017 PFI_IFH_GROUP
  2018 IMD_SERVER
  2019 statsd_group
  2020 ifstats_group
  2025 iir_gsp_group
  2026 im_bundle_group
  2027 im_iir_group
  2028 IMD_CLIENT
  2029 ipv4_io_grp
  2030 bcdl_pa_ff
  2031 bcdl_pa_ff_sg0
  2032 im_attr_owners
  2033 IMP_GROUP
  2034 im_attr_clients_async
  2035 im_attr_clients_sync
  2036 L2FIB_MAC_DISTR_GSP_GROUP
  2037 IPSEC_FVRF_GRP
  2042 BFD_GSP_GROUP
  2050 statsd_mgr_lwg
  2052 nd_gsp_group
  2053 bcdl_ipv4_rib
  2054 bcdl_ipv4_rib_sg0
  2055 bcdl_ipv6_rib
  2056 bcdl_ipv6_rib_sg0
  2058 rt_check_ipv4_rib
  2060 rt_check_ipv6_rib
  2062 bcdl_mpls_lsd_v4
  2063 bcdl_mpls_lsd_v4_sg0
  2076 arp_gsp_group
RP/0/RP0/CPU0:CRS-A#&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/8856470745676622927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/05/group-service-protocol-gsp-distributed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/8856470745676622927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/8856470745676622927'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/05/group-service-protocol-gsp-distributed.html' title='Group service protocol (GSP) | Distributed Services'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-8458616903709587666</id><published>2012-05-03T04:04:00.000-07:00</published><updated>2012-05-03T04:04:00.908-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS XR"/><category scheme="http://www.blogger.com/atom/ns#" term="Infrastructure"/><category scheme="http://www.blogger.com/atom/ns#" term="Qnet"/><title type='text'>Qnet | Cisco IOS XR Infrastructure</title><content type='html'>&lt;br /&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;119-2&quot; style=&quot;background-color: white; color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em; text-align: left;&quot;&gt;

&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;120-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;35&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;121&quot; name=&quot;121&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;IDX-35&quot; name=&quot;IDX-35&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Qnet is a QNX Neutrino protocol for communication between processes residing on different nodes. It enables IPC to work across nodes. For example, LWM uses Qnet transparently to enable inter-node communication.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;121-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
The use of a symbolic link (symlink) enables location transparency to the Qnet protocol. When a process needs to communicate with another process, it uses the symlink associated with the service and does not need to know where the service is located. A server process registers with Qnet symlink manager (QSM) and publishes its service using symlink.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;121-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
To verify Qnet connectivity, use&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;ping control-eth location&lt;/b&gt;&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;&amp;lt;r/s/m&amp;gt;&lt;/i&gt;&amp;nbsp;from Admin mode, as shown in&amp;nbsp;Example 1. Each node has a MAC address associated with it. The Control Ethernet (CE)&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;ping&lt;/b&gt;&amp;nbsp;command shown in&amp;nbsp;Example1&amp;nbsp;sends the ping packet to the MAC address of the destination node over the Control Ethernet. When the destination node receives the CE ping packet, it sends a reply back to the originator node much like routers reply to ping packets.&amp;nbsp;Example 1&amp;nbsp;shows the destination node MAC address, number of CE ping packets sent and received, and minimum, maximum, and average round trip time for CE ping packets. CE ping is used to verify Control Ethernet connectivity.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex07&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 1em; text-align: left;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;121-3&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 1:&amp;nbsp;&lt;/span&gt;Verify Qnet Connectivity&lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;122&quot; name=&quot;122&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch02ex07&quot; name=&quot;ch02ex07&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex07&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;122-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS-E(admin)#&lt;b class=&quot;bold&quot;&gt;ping control-eth location 0/0/cpu0 count 100&lt;/b&gt;

Src node:        513  :  0/RP0/CPU0
Dest node:         1  :  0/0/CPU0
Local node:      513  :  0/RP0/CPU0
Packet cnt:      100  Packet size:   128  Payload ptn type: default (0)
Hold-off (ms):     1  Time-out(s):     2  Max retries: 5
DelayTimeout:      1Destination node has MAC addr 5246.4800.0001

Running CE node ping.
Please wait...
Src: 513, Dest: 1, Sent: 100, Rec&#39;d: 100, Mismatched: 0
Min/Avg/Max RTT (usecs): 0/50/3000
CE node ping succeeded for node: 1
RP/0/RP0/CPU0:CRS-E(admin)#&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/8458616903709587666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/05/qnet-cisco-ios-xr-infrastructure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/8458616903709587666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/8458616903709587666'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/05/qnet-cisco-ios-xr-infrastructure.html' title='Qnet | Cisco IOS XR Infrastructure'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-232384271218164784</id><published>2012-04-29T03:33:00.000-07:00</published><updated>2012-04-29T03:33:01.002-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Characteristics of IPC Mechanisms"/><title type='text'>Characteristics of IPC Mechanisms</title><content type='html'>&lt;br /&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;106-2&quot; style=&quot;background-color: white; color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;Major characteristics that define an IPC mechanism and differentiate one IPC mechanism from another.&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;section&quot; id=&quot;ch02lev3sec1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-1&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;108&quot; name=&quot;108&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch02lev3sec1&quot; name=&quot;ch02lev3sec1&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;Synchronous Versus Asynchronous&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;108-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
With synchronous communication, the sender thread blocks until the message is processed by the receiving thread. The basic IPC mechanism provided by the microkernel is an example of a synchronous IPC. With synchronous IPC, the sender can send only one&amp;nbsp;&lt;span class=&quot;beginpage&quot; pagenum=&quot;32&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;109&quot; name=&quot;109&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;IDX-32&quot; name=&quot;IDX-32&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;message at a time because it must wait for the receiver to process the message before attempting to send another one. Although this may limit the throughput performance, it has one important advantage in that the sender cannot overrun the receiver.&amp;nbsp;Figure 1&amp;nbsp;shows the execution flow for the sender and receiver thread for synchronous IPC.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;figure&quot; id=&quot;ch02fig05&quot; style=&quot;margin-left: 2em; margin-top: 1em;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF_Xw2wL2z4dr8rWWLJM3KHUfP2QU0xlZ6n8FtZwf8T3TMAqvNnYfS4MUU7ERoQftPeT8AmD0VjGqGIQ0dol0mPeO6S8b3xryILvPxuGDplVI8q2vIbM-SdTcMWnZLI-yMgiVZ-NZHwsA/s1600/a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF_Xw2wL2z4dr8rWWLJM3KHUfP2QU0xlZ6n8FtZwf8T3TMAqvNnYfS4MUU7ERoQftPeT8AmD0VjGqGIQ0dol0mPeO6S8b3xryILvPxuGDplVI8q2vIbM-SdTcMWnZLI-yMgiVZ-NZHwsA/s1600/a.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;110&quot; name=&quot;110&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch02fig05&quot; name=&quot;ch02fig05&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;span class=&quot;figuremediaobject&quot;&gt;&lt;a href=&quot;http://www.books24x7.com/assetviewer.aspx?bookid=35329&amp;amp;chunkid=217817060&amp;amp;noteMenuToggle=0&amp;amp;leftMenuState=1&quot; name=&quot;IMG_11&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot; target=&quot;_self&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;figure-title&quot; id=&quot;110-1&quot; style=&quot;margin-left: 0em; margin-right: 8em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;figure-titlelabel&quot; style=&quot;font-weight: bold;&quot;&gt;Figure 1:&amp;nbsp;&lt;/span&gt;Synchronous IPC&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;110-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
With asynchronous communication, the sender and receiver are not tightly coupled. The sender is unblocked before the receiver processes the message. In fact, the sender does not know when the receiver processes the message that it sent. The sender can send multiple messages before the receiver processes any of the previously received messages. Although this has the advantage of higher throughput, it also has potential risk of overflowing the receiver buffer. Limiting the maximum number of receive buffers available for a sender prevents the risk of overflowing the receiver.&amp;nbsp;Figure 2&amp;nbsp;shows the execution flow for sender and receiver thread for asynchronous IPC.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;figure&quot; id=&quot;ch02fig06&quot; style=&quot;margin-left: 2em; margin-top: 1em;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2gu3SWA_b7f7e7VDgvLL-31fSG0nElcLCWDykEG7P8htLyRbmMRdCtdHszSIup2msLEbOmfycAO8TxRWwUQ2RcJGQfoDbyta2Jxz-HLzlqSLdkpH9i5_eGNM0jqBHntVH0eE-n1CSZmo/s1600/b.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2gu3SWA_b7f7e7VDgvLL-31fSG0nElcLCWDykEG7P8htLyRbmMRdCtdHszSIup2msLEbOmfycAO8TxRWwUQ2RcJGQfoDbyta2Jxz-HLzlqSLdkpH9i5_eGNM0jqBHntVH0eE-n1CSZmo/s1600/b.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;111&quot; name=&quot;111&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch02fig06&quot; name=&quot;ch02fig06&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;span class=&quot;figuremediaobject&quot;&gt;&lt;a href=&quot;http://www.books24x7.com/assetviewer.aspx?bookid=35329&amp;amp;chunkid=217817060&amp;amp;noteMenuToggle=0&amp;amp;leftMenuState=1&quot; name=&quot;IMG_12&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot; target=&quot;_self&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;figure-title&quot; id=&quot;111-1&quot; style=&quot;margin-left: 0em; margin-right: 8em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;figure-titlelabel&quot; style=&quot;font-weight: bold;&quot;&gt;Figure 2:&amp;nbsp;&lt;/span&gt;Asynchronous IPC&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;figure-title&quot; style=&quot;margin-left: 0em; margin-right: 8em; margin-top: 0.5em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch02lev3sec2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-2&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;112&quot; name=&quot;112&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch02lev3sec2&quot; name=&quot;ch02lev3sec2&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;Intra-node Versus Inter-node&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;112-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Cisco IOS XR is designed for massively distributed platforms including multichassis (or multirack) systems. There is significant communication and coordination among different&lt;span class=&quot;beginpage&quot; pagenum=&quot;33&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;113&quot; name=&quot;113&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;IDX-33&quot; name=&quot;IDX-33&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;nodes. Some IPC mechanisms can be used only in a single CPU or symmetric multiprocessor (SMP) environment, which is referred to here as a&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;node&lt;/i&gt;. In this context, a node is not necessarily equivalent to a line card or RP/DRP. In fact, some line cards and RP/DRPs have multiple CPUs or SMPs—therefore, they have multiple nodes. For example, a CRS line card (MSC) has two nodes, CPU0 and SP, corresponding to the main CPU and service processor (SP), respectively.&lt;/div&gt;
&lt;div class=&quot;last-para&quot; id=&quot;113-1&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
An intra-node IPC mechanism can be used only within a single node, whereas an inter-node IPC mechanism can be used between different nodes. Generally the inter-node IPC mechanism supports both inter-node and intra-node communication.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch02lev3sec3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-3&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;114&quot; name=&quot;114&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch02lev3sec3&quot; name=&quot;ch02lev3sec3&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;Connection-Oriented Versus Rendezvous&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;114-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
This classification deals with the types of activities preceding the message exchange.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;114-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
With a connection-oriented scheme the receiver (typically a server) creates and advertises a channel, and the sender (client) connects to the channel before any message is sent by the sender. Both the sender and receiver are aware of the identity of each other. If either the sender or receiver restarts, the connection must be reestablished.&lt;/div&gt;
&lt;div class=&quot;last-para&quot; id=&quot;114-3&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;34&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;115&quot; name=&quot;115&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;IDX-34&quot; name=&quot;IDX-34&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;With the rendezvous scheme the data, not the receiver or its channel, is the primary focus of the IPC. The communicating parties find each other through the name of the data structure. The rendezvous scheme is suitable for a producer-consumer model of communication. In a producer-consumer model, a producer process generates data while one or more consumers process the data. The consumers are not interested in the identity of the producer; they are interested in the identity of the data produced.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch02lev3sec4&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-4&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;116&quot; name=&quot;116&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch02lev3sec4&quot; name=&quot;ch02lev3sec4&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;Point-to-Point Versus Point-to-Multipoint&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;116-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Point-to-point communication is used between two threads. In some cases it is necessary to send the same message to several threads within a single node or to multiple nodes. This can be achieved using multiple point-to-point communications. However, the use of point-to-point communication for this scenario is inefficient. Moreover, the sender has to know the identity of all the receivers. The use of point-to-multipoint communication solves both problems.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/232384271218164784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/04/characteristics-of-ipc-mechanisms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/232384271218164784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/232384271218164784'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/04/characteristics-of-ipc-mechanisms.html' title='Characteristics of IPC Mechanisms'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF_Xw2wL2z4dr8rWWLJM3KHUfP2QU0xlZ6n8FtZwf8T3TMAqvNnYfS4MUU7ERoQftPeT8AmD0VjGqGIQ0dol0mPeO6S8b3xryILvPxuGDplVI8q2vIbM-SdTcMWnZLI-yMgiVZ-NZHwsA/s72-c/a.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-1115967077010775598</id><published>2012-04-25T08:23:00.002-07:00</published><updated>2012-04-25T08:23:50.568-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CLI"/><category scheme="http://www.blogger.com/atom/ns#" term="Processes"/><category scheme="http://www.blogger.com/atom/ns#" term="System Manager"/><title type='text'>CLI for Sysmgr and Processes</title><content type='html'>&lt;br /&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;100-2&quot; style=&quot;background-color: white; color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;101-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
System manager provides a rich set of commands to check the status of processes; start, stop, crash, and restart processes; and configure process attributes. Use&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;show process&lt;/b&gt;&amp;nbsp;[&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;process-name&lt;/i&gt;&amp;gt; | &amp;lt;&lt;i class=&quot;emphasis&quot;&gt;JID&lt;/i&gt;&amp;gt;]&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;location&lt;/b&gt;&amp;nbsp;&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;r/s/m&lt;/i&gt;&amp;gt; to show the process data and status.&amp;nbsp;Example 1&amp;nbsp;displays an example of such output for an IS-IS process on a primary RP.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex05&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 1em; text-align: left;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;101-2&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 1:&amp;nbsp;&lt;/span&gt;IS-IS Process and Threads&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;102&quot; name=&quot;102&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex05&quot; name=&quot;ch02ex05&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex05&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;102-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS1-4#&lt;b class=&quot;bold&quot;&gt;show processes isis&lt;/b&gt;
                    Job Id: 255
                       PID: 12714252
          Executable path:  /disk0/hfr-rout-3.6.2/bin/isis
                Instance #: 1
                Version ID: 00.00.0000
                   Respawn: ON
            Respawn count:  5
  Max. spawns per minute:   12
             Last started:  Thu Jan 15 05:06:57 2009
            Process state:  Run (last exit due to SIGTERM)
            Package state:  Normal
        Started on config:  cfg/gl/isis/instance/test/ord_A/running
                      core: COPY
                 Max. core: 0
                 Placement: ON
             startup_path:  /pkg/startup/isis.startup
                     Ready: 2.615s
                 Available: 2.664s
         Process cpu time:  0.537 user, 0.130 kernel, 0.667 total
JID     TID  Stack pri state          TimeInState       HR:MM:SS:MSEC NAME
255     1      48K  10 Receive         0:00:14:0377    0:00:00:0284 isis
255     2      48K  10 Receive         0:00:01:0591    0:00:00:0075 isis
255     3      48K  10 Receive       110:34:27:0344    0:00:00:0008 isis
255     4      48K  10 Receive       110:34:18:0331    0:00:00:0002 isis
255     5      48K  10 Receive         0:00:01:0591    0:00:00:0159 isis
255     6      48K  10 Receive         0:00:07:0283    0:00:00:0009 isis
———————————————————————————————————————————————————————————————————————————————————————————————
RP/0/RP0/CPU0:CRS1-4#&lt;/pre&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;div class=&quot;blankspace&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;102-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;30&quot;&gt;&lt;a href=&quot;&quot; id=&quot;103&quot; name=&quot;103&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-30&quot; name=&quot;IDX-30&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;The definition of the key attributes of IOS XR processes follow:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.9498AAC2-432E-48E3-93A8-397EBA57DF4A&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Job ID (JID):&lt;/b&gt;&amp;nbsp;The JID number remains constant, including process restarts.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.594DE2FE-2C49-404E-A6C5-D86B9BC75F85&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Process ID (PID):&lt;/b&gt;&amp;nbsp;The PID field changes when a process is restarted.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.A8C78826-4F82-4005-A75C-0303FA3C212C&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Thread ID (TID):&lt;/b&gt;&amp;nbsp;A single process can have multiple threads executing specific tasks for a process.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.6074B60B-5104-4FD6-8A4D-D989B2E08D53&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Executable path:&lt;/b&gt;&amp;nbsp;References a path to the process executable. An additional field called “executable path on reboot” may appear if an in-service software upgrade has been performed.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.20193E1A-784E-4F16-A197-C1408EC5734A&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Instance:&lt;/b&gt;&amp;nbsp;There may be more than one instance of a process running at a given time. Each instance is referenced by a number.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.C09FB3B1-D0B8-4A80-AC6C-FFE9112CC62B&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Respawn count:&lt;/b&gt;&amp;nbsp;The number of times a process has been (re)started. The first time a process is started, the respawn count is set to 1. Respawn mode is on or off. This field indicates whether this process restarts automatically in case of failure.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.DE12FD10-D270-4A30-8F9D-CF71C075BC3A&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Max spawns per minute:&lt;/b&gt;&amp;nbsp;The number of respawns not to be exceeded in one minute. If this number is exceeded, the process stops restarting as a self-defense mechanism.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.F1BB8E8E-941B-467A-93DF-CE2DCDC6CCF2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Last started date and time:&lt;/b&gt;&amp;nbsp;This timestamp shows when the process was last started.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.77BF5597-4ED5-4CD5-A621-37C8A3ACE803&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Process state:&lt;/b&gt;&amp;nbsp;This shows the current state of the process.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.B2FD154B-4C75-4E7F-B660-06DD659D3699&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Started on config:&lt;/b&gt;&amp;nbsp;Points to the location in system database (SysDB) that contains configuration data that resulted in spawn of the process.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.BC155D69-B6CE-41DF-9ED7-A281C836C1D7&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;core:&lt;/b&gt;&amp;nbsp;Memory segments to include in core file.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.620E7FCB-D77D-457B-AB53-2F61587864AF&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Max. core:&lt;/b&gt;&amp;nbsp;Shows the number of times to dump a core file. A value of 0 signifies infinity.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.A6FDB110-5259-484C-9573-6211EA83D3BB&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;Mandatory:&lt;/b&gt;&amp;nbsp;&lt;span class=&quot;beginpage&quot; pagenum=&quot;31&quot;&gt;&lt;a href=&quot;&quot; id=&quot;104&quot; name=&quot;104&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-31&quot; name=&quot;IDX-31&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Shows whether the process is mandatory. If it is mandatory, and sysmgr fails to start or restart it successfully after repeated attempts, it results in system reload.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;para&quot; id=&quot;104-1&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
As pointed out earlier, each process has several threads, and each thread is identified by a thread ID (TID). In addition, in some cases each thread is assigned a thread name. Use&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;show process threadname&lt;/b&gt;&amp;nbsp;&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;JID&lt;/i&gt;&amp;gt; to find the thread name of each thread of a process. Note that you can obtain the JID of a process using either&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;show process&lt;/b&gt;, which lists all processes, or&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;show process&lt;/b&gt;&amp;nbsp;&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;process-name&lt;/i&gt;&amp;gt;, which provides detailed information for the process.&amp;nbsp;Example 2&amp;nbsp;shows the thread names for an IS-IS process. Some of the threads shown under a given process might belong to some of the DLL libraries loaded by the process. For example, in the IS-IS case of&amp;nbsp;Example 2, chkpt_evm is not an IS-IS thread but a thread owned by a checkpoint DLL library running under IS-IS process space.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex06&quot; style=&quot;margin-top: 1em;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;104-2&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 2:&amp;nbsp;&lt;/span&gt;Display of IS-IS Threads Names&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;105&quot; name=&quot;105&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex06&quot; name=&quot;ch02ex06&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex06&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;105-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS-4#&lt;b class=&quot;bold&quot;&gt;show processes threadname 255&lt;/b&gt;
Sat Mar 14 10:14:57.262 UTC
JID    TID  ThreadName       pri state     TimeInState       NAME
255    1    Management       10 Receive         0:00:04:0675 isis
255    2    chkpt_evm        10 Receive         0:00:01:0161 isis
255    3    Hello            10 Receive         0:00:01:0024 isis
255    4    Update           10 Receive         0:00:00:0805 isis
255    5    Decision         10 Receive         0:00:01:0003 isis
255    6    TE               10 Receive         0:01:59:0161 isis
255    7    MIB Traps        10 Condvar         0:05:53:0591 isis
RP/0/RP0/CPU0:CRS-4#&lt;/pre&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;div class=&quot;blankspace&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;last-para&quot; id=&quot;105-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
You can use&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;process&lt;/b&gt;&amp;nbsp;[&lt;b class=&quot;bold&quot;&gt;crash&lt;/b&gt;&amp;nbsp;|&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;restart&lt;/b&gt;&amp;nbsp;|&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;shutdown&lt;/b&gt;&amp;nbsp;|&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;start&lt;/b&gt;] [&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;process-name&lt;/i&gt;&amp;gt; | &amp;lt;&lt;i class=&quot;emphasis&quot;&gt;JID&lt;/i&gt;&amp;gt;]&amp;nbsp;&lt;b class=&quot;bold&quot;&gt;location&lt;/b&gt;&amp;nbsp;&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;r/s/m&lt;/i&gt;&amp;gt; to start, restart, crash, or stop a process on a node.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/1115967077010775598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/04/cli-for-sysmgr-and-processes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/1115967077010775598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/1115967077010775598'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/04/cli-for-sysmgr-and-processes.html' title='CLI for Sysmgr and Processes'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-3748927826147411852</id><published>2012-03-02T08:18:00.000-08:00</published><updated>2012-03-02T08:18:00.188-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS XR"/><category scheme="http://www.blogger.com/atom/ns#" term="Process Attributes"/><category scheme="http://www.blogger.com/atom/ns#" term="System Manager"/><title type='text'>Process Attributes | Cisco IOS XR System Manager</title><content type='html'>&lt;br /&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;93-3&quot; style=&quot;background-color: white; color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;94-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
System manager uses process attributes stored in a startup file for each process that it manages. Each startup file corresponds to an executable. The startup files are located in the /pkg/startup/ directory and contain tokens that are used by system manager to manage the corresponding process. The startup file for OSPF, FIB manager, and GSP are shown in&amp;nbsp;Example 1.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex04&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 1em; text-align: left;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;94-2&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 1:&amp;nbsp;&lt;/span&gt;Startup Files for OSPF, FIB_mgr, and GSP Processes&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;95&quot; name=&quot;95&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex04&quot; name=&quot;ch02ex04&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex04&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;95-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;# &lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;more /pkg/startup/ospf.startup&lt;/b&gt;
name:ospf
path:/ios/bin
item:/cfg/gl/ipv4-ospf/proc/
copies:10
tuple_dynamic_tag:ON
placement: ON
check_avail: ON
failover_tier: isis
standby_capable: ON
#
# &lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;more /pkg/startup/fib_mgr.startup&lt;/b&gt;
name:fib_mgr
path:/ios/bin
check_avail: ON
level:99
standby_capable:ON
#
# &lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;more /pkg/startup/gsp-rp.startup&lt;/b&gt;
name:gsp
path:/ios/bin
level: 80
check_avail:on
mandatory: on&lt;/pre&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;div class=&quot;blankspace&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;95-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
The name token corresponds to the name of the process and the corresponding executable. The path token is the path where the executable is located. If the level token is set it implies that the process is level started during boot. During system boot the system manager uses the level token to determine the sequence in which the processes are started. The startup sequence during boot is shown in&amp;nbsp;Table 2. You can use&amp;nbsp;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;show process boot location&lt;/b&gt;&amp;nbsp;&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;r/s/m&lt;/i&gt;&amp;gt; to see the boot sequence and startup level and at what time each process is ready.&lt;/div&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;28&quot;&gt;&lt;a href=&quot;&quot; id=&quot;96&quot; name=&quot;96&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-28&quot; name=&quot;IDX-28&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;97&quot; name=&quot;97&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02tab02&quot; name=&quot;ch02tab02&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;table border=&quot;1&quot; class=&quot;table&quot; id=&quot;ch02tab02&quot; linktabletoexcel=&quot;yes&quot; style=&quot;font-family: verdana, arial, helvetica, sans-serif; font-size: 11px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;caption class=&quot;table-title&quot; id=&quot;97-1&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; margin-top: 0.3em; text-align: left;&quot;&gt;&lt;span class=&quot;table-title&quot; style=&quot;margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;table-titlelabel&quot;&gt;Table 2:&amp;nbsp;&lt;/span&gt;IOS XR Startup Levels During Boot&lt;/span&gt;&amp;nbsp;&lt;/caption&gt;&lt;thead&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;th align=&quot;left&quot; class=&quot;th&quot; scope=&quot;col&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-2&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Band&lt;/div&gt;
&lt;/th&gt;&lt;th align=&quot;left&quot; class=&quot;th&quot; scope=&quot;col&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-3&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Levels&lt;/div&gt;
&lt;/th&gt;&lt;th align=&quot;left&quot; class=&quot;th&quot; scope=&quot;col&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-4&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Examples&lt;/div&gt;
&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-5&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
MBI&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-6&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
0–39&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-7&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
dllmgr, nvram, obflmgr, dumpr, syslogd&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-8&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
ARB (arbitration)&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-9&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
40&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-10&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
wdsysmon, redcon&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-11&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
ADMIN&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-12&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
41–90&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-13&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
sysdb, netio, oir_daemon, gsp, envmon, shelfmgr&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-14&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
INFRA&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-15&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
91–100&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-16&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
ifmgr, aib, ipv4_io, fib_mgr&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-17&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
ACTIVE&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-18&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
101–150&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-19&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
ipv4_ma&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-20&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
FINAL&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-21&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
151–999&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;97-22&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
clns, arp&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;para&quot; id=&quot;97-23&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
If the item token is set, it indicates that the corresponding process is started or terminated when a user enters configuration or when the configuration is loaded to the system database (sysdb) during boot. The process is started when the configuration item specified in the startup file is added to sysdb. For example, when the user enters and commits the configuration&amp;nbsp;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;router ospf&lt;/b&gt;&amp;nbsp;&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;process-name&lt;/i&gt;&amp;gt; system manager starts an OSPF process instance.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;97-24&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
If the mandatory token is set to ON, the process is considered critical for the functioning of the node, which is any subsystem such as line card, route processor, service processor, or switch fabric card module running IOS XR. If a mandatory process exits or dies and fails to be restarted after repeated attempts, system manager will reload the node.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;97-25&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
If the placement item is set to ON, the corresponding process is placeable and can run on any active RP or DRP node on the router.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;97-26&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
System manager assigns a unique job id (JID) to each executable. The JID is persistent across restarts. In addition to a JID each process is assigned a unique process ID (PID) when it is started or restarted. If a process is restarted it is assigned a new PID number but it retains its original JID number.&lt;/div&gt;
&lt;div class=&quot;last-para&quot; id=&quot;97-27&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
Some processes, such as telnetd, are transient processes that are started in response to a user request (telnetting to the router). These transient processes are not managed by system manager, and their JID is derived from their processed ID (PID). For transient processes a startup file is not needed because they are not started by the system manager.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/3748927826147411852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/03/process-attributes-cisco-ios-xr-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/3748927826147411852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/3748927826147411852'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/03/process-attributes-cisco-ios-xr-system.html' title='Process Attributes | Cisco IOS XR System Manager'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-5357356066037942328</id><published>2012-02-28T06:16:00.000-08:00</published><updated>2012-02-28T06:16:00.242-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS XR"/><category scheme="http://www.blogger.com/atom/ns#" term="System Manager"/><title type='text'>Cisco IOS XR System Manager</title><content type='html'>&lt;br /&gt;
&lt;h2 class=&quot;first-section-title&quot; id=&quot;annotationlabel-first&quot; style=&quot;background-color: white; color: navy; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.5em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;div class=&quot;first-para&quot; id=&quot;91-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;26&quot;&gt;&lt;a href=&quot;&quot; id=&quot;92&quot; name=&quot;92&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-26&quot; name=&quot;IDX-26&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Cisco IOS XR has hundreds of processes running simultaneously on multiple nodes. Some processes are associated with applications and protocols. Examples of such processes include telnetd and isis, which refer to Telnet daemon (server) and the IS-IS routing protocol, respectively. Other processes are dedicated to system functions such as device drivers, interprocess communication, system health monitor, file system, configuration management, software install management, and so on. Such processes are always operational.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;92-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
IOS XR system manager is the central entity responsible for starting, monitoring, restarting, terminating, and core dumping most IOS XR processes during bootup, RP failover, software activation, and in response to router configuration. System manager can also initiate disaster recovery based on process health. System manger runs on each route processor and line card in the system. Two instances of sysmgr process are running on each node. One of the instances is the primary sysmgr, which is responsible for all system manager responsibilities; the second instance acts as a standby and is ready to assume the primary role if the current primary sysmgr exits for some reason.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;92-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
The following are the main functions of system manager:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;92-3&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Start processes during bootup or node reload&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;92-4&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Start processes during route processor (RP) failover&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;92-5&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Start processes in response to user configuration; for example, when a user configures an OSPF process using&amp;nbsp;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;router ospf&lt;/b&gt;&amp;nbsp;&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;process-name&lt;/i&gt;&amp;gt;, system manager starts a new OSPF process instance&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;92-6&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;27&quot;&gt;&lt;a href=&quot;&quot; id=&quot;93&quot; name=&quot;93&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-27&quot; name=&quot;IDX-27&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Act as a central repository for all process-related information&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;93-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Initiate disaster recovery based on the process health&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;93-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Invoke dumper to collect a core dump when a process terminates abnormally&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/5357356066037942328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/cisco-ios-xr-system-manager.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/5357356066037942328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/5357356066037942328'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/cisco-ios-xr-system-manager.html' title='Cisco IOS XR System Manager'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-883432468218946511</id><published>2012-02-24T05:55:00.000-08:00</published><updated>2012-02-24T05:55:00.083-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS XR"/><category scheme="http://www.blogger.com/atom/ns#" term="Kernel"/><category scheme="http://www.blogger.com/atom/ns#" term="Services"/><category scheme="http://www.blogger.com/atom/ns#" term="Synchronization"/><title type='text'>Synchronization Services | Cisco IOS XR Kernel</title><content type='html'>&lt;br /&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;84-2&quot; style=&quot;background-color: white; color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;85-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;23&quot;&gt;&lt;a href=&quot;&quot; id=&quot;86&quot; name=&quot;86&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-23&quot; name=&quot;IDX-23&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;The microkernel provides a message-passing–based synchronous IPC mechanism. This message-passing service copies a message directly from the address space of the sender thread to the receiver thread without intermediate buffering. The content and format of the message are transparent to the kernel.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;86-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
In addition to the message-passing IPC mechanism provided by the microkernel, it is possible to develop other IPC mechanisms that use shared memory space. However, access to the shared memory space must be synchronized to ensure data consistency. For example,&amp;nbsp;&lt;span class=&quot;beginpage&quot; pagenum=&quot;24&quot;&gt;&lt;a href=&quot;&quot; id=&quot;87&quot; name=&quot;87&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-24&quot; name=&quot;IDX-24&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;if one thread attempts to access a linked list while another thread is in the process of updating it, the result could be catastrophic. The microkernel provides mutex, condvar, and semaphore synchronization tools to address this problem.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;87-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Mutual exclusion lock, or mutex, is used to ensure exclusive access to data shared between threads. Before a thread can access the shared data it should first acquire (lock) the mutex. When it completes operation on the shared data, it releases the mutex. Only one thread may acquire a mutex at any given time. If a thread attempts to lock a mutex that is already locked by another thread, it will be blocked until the mutex is unlocked and acquired. When a thread releases a mutex, the highest priority thread waiting to acquire the mutex will unblock and become the new owner of the mutex.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;87-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
If a higher-priority thread attempts to lock a mutex that is already locked by a lower-priority thread, the priority of the current owner will be increased to that of the higher-priority blocked thread. This is known as&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;priority inheritance&lt;/i&gt;&amp;nbsp;and solves the priority inversion problem. Priority inheritance and priority inversion are also discussed earlier in this section in the context of client/server thread interaction.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;87-3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
A conditional variable (condvar) is used to wait until some condition (for example, a timeout) is fulfilled. The thread blocks until the condition is satisfied. A condvar is usually used in conjunction with a mutex as follows:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;87-4&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Lock a mutex&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;87-5&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Wait on a condvar&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;87-6&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Perform an activity (manipulate shared data)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;87-7&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Unlock the mutex&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;para&quot; id=&quot;87-8&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Semaphore is another form of synchronization in which a thread waits for the semaphore to be positive. If the semaphore is positive, the thread unblocks and decrements the semaphore by 1. A post operation on a semaphore increments it by 1. A semaphore can be used to wake a thread by a signal handler. The thread issues a wait operation on the semaphore to wait for a signal. A signal handler will perform a post operation on the semaphore to wake a thread blocked by the semaphore.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;87-9&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;show process pidin location&lt;/b&gt;&amp;nbsp;&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;r/s/m&amp;gt;&lt;/i&gt;&amp;nbsp;shows the state of each thread.&amp;nbsp;Table 1&amp;nbsp;provides a list of states a process may take.&lt;/div&gt;
&lt;a href=&quot;&quot; id=&quot;88&quot; name=&quot;88&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; outline-color: initial; outline-style: none; outline-width: initial; text-align: left; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02tab01&quot; name=&quot;ch02tab01&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; outline-color: initial; outline-style: none; outline-width: initial; text-align: left; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: x-small; text-align: left;&quot;&gt;&lt;/span&gt;&lt;table border=&quot;1&quot; class=&quot;table&quot; id=&quot;ch02tab01&quot; linktabletoexcel=&quot;yes&quot; style=&quot;background-color: white; color: black; font-family: verdana, arial, helvetica, sans-serif; font-size: 11px; margin-bottom: 1em; margin-top: 1em; text-align: left;&quot;&gt;&lt;caption class=&quot;table-title&quot; id=&quot;88-1&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; margin-top: 0.3em; text-align: left;&quot;&gt;&lt;span class=&quot;table-title&quot; style=&quot;margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;table-titlelabel&quot;&gt;Table 1:&amp;nbsp;&lt;/span&gt;Process States&lt;/span&gt;&amp;nbsp;&lt;/caption&gt;&lt;thead&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;th align=&quot;left&quot; class=&quot;th&quot; scope=&quot;col&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-2&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
State&lt;/div&gt;
&lt;/th&gt;&lt;th align=&quot;left&quot; class=&quot;th&quot; scope=&quot;col&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-3&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Explanation&lt;/div&gt;
&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-4&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
dead&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-5&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
The kernel is waiting to release the thread’s resources.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-6&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
running&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-7&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Actively running on a CPU.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-8&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
ready&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-9&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Not running on a CPU but is ready to run.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-10&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
stopped&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-11&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Suspended (SIGSTOP signal).&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-12&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
send&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-13&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting for a client to send a message.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-14&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
receive&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-15&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting for a server to receive a message.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-16&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
reply&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-17&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting for a server to reply to a message.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-18&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
stack&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-19&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting for more stack to be allocated.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-20&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
waitpage&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-21&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting for the process manager to resolve a page fault.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-22&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
sigsuspend&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-23&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting for a signal.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-24&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
sigwaitinfo&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-25&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting for a signal.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-26&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
nanosleep&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-27&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Sleeping for a period of time.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-28&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
mutex&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-29&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting to acquire a mutex.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-30&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
condvar&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-31&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting for a conditional variable to be signaled.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-32&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
join&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-33&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting for the completion of another thread.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-34&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
intr&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-35&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting for an interrupt.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-36&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
sem&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;88-37&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Waiting to acquire a semaphore.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;para&quot; id=&quot;88-38&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;25&quot;&gt;&lt;a href=&quot;&quot; id=&quot;89&quot; name=&quot;89&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-25&quot; name=&quot;IDX-25&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;As seen in&amp;nbsp;Example 2, some of the threads are in a Reply state, which indicates that the client thread is blocked waiting for a reply. If a process is stuck in blocked state, it might be an indication of a problem with the (client/server) process or application. However, the existence of blocked processes on the router does not necessarily indicate a problem because it is expected behavior for selected processes. Other processes stuck in a block state might cause applications not to respond. It is important to understand the typical behavior of a router in your production network.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;89-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
To display a list of blocked threads, issue the command&amp;nbsp;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;show processes blocked location&lt;/b&gt;&amp;nbsp;&amp;lt;&lt;i class=&quot;emphasis&quot;&gt;r/s/m&lt;/i&gt;&amp;gt;, as shown in&amp;nbsp;Example 3. It is recommended to issue this command several times within a few seconds. Running the command numerous times verifies whether processes are questionably blocked in error versus in a blocked state as it performs its normal IPC exchange. Processes such as ksh and devc-conaux are in a blocked state by design. Ksh is the client process communicating to devc-conaux (the server process). Here the thread is in blocked state until a user provides input on the console server. More specifically, ksh waits for input on the console or the auxiliary port and returns a system message to devc-conaux. When devc-conaux replies to ksh, the process changes the state from blocked to reply.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex03&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 1em; text-align: left;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;89-2&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 3:&amp;nbsp;&lt;/span&gt;Processes Block&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;90&quot; name=&quot;90&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex03&quot; name=&quot;ch02ex03&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex03&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;90-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS1-4#&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;show processes blocked location 0/rp0/cpu0&lt;/b&gt;
  Jid        Pid Tid             Name State   TimeInState     Blocked-on
65546      12298   1              ksh Reply  101:26:48:0708   12296   devc-conaux
   52      40988   2          attachd Reply  101:26:50:0679   40985   eth_server
   52      40988   3          attachd Reply  101:26:50:0678   16397   mqueue
   78      40990   6             qnet Reply    0:00:00:0040   40985   eth_server
   78      40990   7             qnet Reply    0:00:00:0038   40985   eth_server
   78      40990   8             qnet Reply    0:00:00:0032   40985   eth_server
   78      40990   9             qnet Reply    0:00:00:0041   40985   eth_server
   78      40990  10             qnet Reply    0:00:00:0028   40985   eth_server
   78      40990  11             qnet Reply    0:00:00:0033   40985   eth_server
   78      40990  12             qnet Reply    0:00:00:0033   40985   eth_server
   78      40990  13             qnet Reply    0:00:00:0039   40985   eth_server
   51      40996   2    attach_server Reply  101:26:50:0438   16397   mqueue
  394     172114   1      tftp_server Reply  101:25:02:0994   16397   mqueue
  135     499850   4           cethha Reply    0:00:10:0981       1   node
0/RP1/CPU0 kernel
  276     512195   2          lpts_fm Reply    0:00:10:0194  495725   lpts_pa
65742    1470670   1             exec Reply   42:18:14:0620   12296   devc-conaux
65807    1474831   1             exec Reply    2:14:28:0875  512187   devc-vty
65809    4870417   1             exec Reply    0:00:00:0300       1   kernel
65810    4874514   1             more Reply    0:00:00:0094   16395   pipe
65811    4874515   1   show_processes Reply    0:00:00:0000       1   kernel
RP/0/RP0/CPU0:CRS1-4#&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/883432468218946511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/synchronization-services-cisco-ios-xr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/883432468218946511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/883432468218946511'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/synchronization-services-cisco-ios-xr.html' title='Synchronization Services | Cisco IOS XR Kernel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-7195748295634533488</id><published>2012-02-20T05:52:00.000-08:00</published><updated>2012-02-20T05:52:00.251-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algorithms"/><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS XR"/><category scheme="http://www.blogger.com/atom/ns#" term="Kernel"/><category scheme="http://www.blogger.com/atom/ns#" term="Scheduling"/><title type='text'>Scheduling Algorithms | Cisco IOS XR Kernel</title><content type='html'>&lt;br /&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;79-1&quot; style=&quot;background-color: white; color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;80-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;21&quot;&gt;&lt;a href=&quot;&quot; id=&quot;81&quot; name=&quot;81&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-21&quot; name=&quot;IDX-21&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;The microkernel provides the following three scheduling algorithms to meet needs for different scenarios:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;81-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
FIFO scheduling&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;81-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Round-robin scheduling&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;81-3&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Sporadic scheduling&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;para&quot; id=&quot;81-4&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
With FIFO scheduling, a thread continues to run until it voluntarily relinquishes control or is preempted by a higher-priority thread. With Cisco IOS XR, only the idle threads of procnto (kernel) use FIFO scheduling.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;81-5&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Most other processes in IOS XR use round-robin scheduling, which restricts the maximum amount of time (timeslice) a thread can run without relinquishing control. A thread that uses round-robin scheduling runs until it voluntarily relinquishes control, gets preempted by a higher-priority thread, or consumes its timeslice.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;81-6&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Sporadic scheduling algorithm allows a thread to run at its normal priority for a certain amount of time (budget) over a period of replenishment interval before its priority is dropped to a lower priority.&amp;nbsp;Figure 1&amp;nbsp;illustrates how sporadic scheduling works.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbotinPgedVE_26KGPg_qqPmARFTeL8U8oaimsG4OclMvR3YBMSOSdnNhCfVpbcSW9VNub_KwZoqHJaR8X85slD5_tIJXIWFqMEybmTsLQvKX_qPzrQLaWEycKBDAWvxRQaD7lN0zfZbE/s1600/a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;314&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbotinPgedVE_26KGPg_qqPmARFTeL8U8oaimsG4OclMvR3YBMSOSdnNhCfVpbcSW9VNub_KwZoqHJaR8X85slD5_tIJXIWFqMEybmTsLQvKX_qPzrQLaWEycKBDAWvxRQaD7lN0zfZbE/s640/a.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;figure&quot; id=&quot;ch02fig03&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-left: 2em; margin-top: 1em; text-align: left;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;82&quot; name=&quot;82&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02fig03&quot; name=&quot;ch02fig03&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;span class=&quot;figuremediaobject&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;br style=&quot;line-height: 1;&quot; /&gt;&lt;span class=&quot;figure-title&quot; id=&quot;82-1&quot; style=&quot;margin-left: 0em; margin-right: 8em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;figure-titlelabel&quot; style=&quot;font-weight: bold;&quot;&gt;Figure 2-3:&amp;nbsp;&lt;/span&gt;Sporadic Scheduling&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;82-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Assume that at time t = 0 ms, threads T1 and T2 are ready to run and all other threads are blocked. Furthermore, assume that T1 is a sporadically scheduled thread with normal priority of 30, low priority of 10, budget time of 20 ms, and replenish interval of 50 ms. T2 is a round-robin scheduled thread with a priority of 20. An example follows:&lt;/div&gt;
&lt;ol class=&quot;orderedlist&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px; margin-left: 3em; margin-top: 0.4em; text-align: left;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;82-3&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
T1 is scheduled to run at t = 0 ms because it has a higher priority than T2.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;82-4&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
At t = 5 ms, thread T3 with priority of 40 is unblocked and becomes ready.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;82-5&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;22&quot;&gt;&lt;a href=&quot;&quot; id=&quot;83&quot; name=&quot;83&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-22&quot; name=&quot;IDX-22&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Because T3 has a higher priority than T1, it preempts T1 and starts running. As a result, T1 is moved to the head of the ready queue for priority 30.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;83-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
At t = 10 ms, T3 is blocked and relinquishes CPU. Note that threads T1 with priority 30 and T2 with priority 20 are in the ready state. Therefore, because of its high priority, T1 starts running at t = 10 ms.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;83-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
At t = 25 ms, because T1 has already used its budget time of 20 ms and is a sporadically scheduled thread, its priority is reduced to 10. Because T2 is in ready state and has a priority of 20, it preempts T1 and starts running at t = 25 ms.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;83-3&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
At t = 50 ms, after the replenish interval lapses, the priority of T1 is restored to its normal priority of 30, which causes T1 to preempt T2 and start running.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;83-4&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
At t = 70 ms, after T1 has used its budget in the new replenish interval, its priority is reduced to 10 again. This causes T2 to preempt T1 and start running.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;para&quot; id=&quot;83-5&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Example 1&amp;nbsp;shows a partial output of&amp;nbsp;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;show process pidin&lt;/b&gt;, which lists the threads and corresponding process ID (pid), thread ID (tid), process name, priority, scheduling algorithm, and state. The prio column shows the priority and scheduling algorithm of the thread. The scheduling of a thread is denoted as f for FIFO, r for round-robin, or ? for sporadic scheduling.&amp;nbsp;Example 1&amp;nbsp;shows that there are two threads that use FIFO scheduling: procnto threads 1 and 2. These are the idle threads of the kernel. There is one idle thread per CPU. Because this output was taken from the RP of CRS-16/s, which has a two-processor CPU complex, it shows two idle threads, one for each CPU.Example 1&amp;nbsp;also shows that threads 3, 4, and 7 of the eth_server process use sporadic scheduling. All other threads use round-robin scheduling.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex02&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 1em; text-align: left;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;83-6&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 1:&amp;nbsp;&lt;/span&gt;Output of&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;show processes pidin&lt;/i&gt;&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;84&quot; name=&quot;84&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex02&quot; name=&quot;ch02ex02&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex02&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;84-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS-A#&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;show processes pidin&lt;/b&gt;
     pid tid name                 prio STATE       Blocked
       1   1 procnto                0f READY
       1   2 procnto                0f RUNNING
       1   3 procnto               63r RECEIVE     1
       1   4 procnto               10r NANOSLEEP
       1   5 procnto               63r RECEIVE     1
       1   6 procnto               10r RECEIVE     1
       1   7 procnto               63r RECEIVE     1
       1   8 procnto               63r RECEIVE     1
       1   9 procnto               63r RECEIVE     1
...
   40987   3 pkg/bin/eth_server    50? SEM         29df078
   40987   4 pkg/bin/eth_server    49? SEM         29df080
   40987   5 pkg/bin/eth_server    10r SEM         29defc8
   40987   6 pkg/bin/eth_server    10r RECEIVE     5
   40987   7 pkg/bin/eth_server    55? RECEIVE     9
   40987   8 pkg/bin/eth_server    10r RECEIVE     12
   40987   9 pkg/bin/eth_server    10r RECEIVE     1
   40987  10 pkg/bin/eth_server  10r   RECEIVE     1
   40987  11 pkg/bin/eth_server  55r   RECEIVE     1
   45084   1 kg/bin/bcm_process  10r   RECEIVE     1
   45084   2 kg/bin/bcm_process  56r   RECEIVE     6
   45084   3 kg/bin/bcm_process  56r   INTR
   45084   4 kg/bin/bcm_process  56r   RECEIVE     10
   45084   5 kg/bin/bcm_process  56r   RECEIVE     9
   45084   6 kg/bin/bcm_process  56r   RECEIVE     1
   45085   1 pkg/bin/attachd     10r   RECEIVE     1
   45085   2 pkg/bin/attachd     55r   REPLY       40987
   45085   3 pkg/bin/attachd     55r   REPLY       16397
   45086   1 ad_eeprom_protocol  10r   RECEIVE     1
   45087   2 pkg/bin/qnet        10r   RECEIVE     1
   45087   3 pkg/bin/qnet        10r   RECEIVE     4
...
RP/0/RP0/CPU0:CRS-A#

! Count threads that use round-robin scheduling
RP/0/RP0/CPU0:CRS-A#&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;show processes pidin | utility egrep -e &quot;[0-9]+r &quot; count&lt;/b&gt;
1025
RP/0/RP0/CPU0:CRS-A#

! List threads that use sporadic scheduling
 RP/0/RP0/CPU0:CRS-A#show processes pidin | include &quot;[0-9]+\\? &quot;
   40987   3 pkg/bin/eth_server  50? SEM           29df078
   40987   4 pkg/bin/eth_server  49? SEM           29df080
   40987   7 pkg/bin/eth_server  55? RECEIVE       9
  180321   5 /bin/parser_server  16? CONDVAR       485f48b4
RP/0/RP0/CPU0:CRS-A#

! List threads that use FIFO scheduling
RP/0/RP0/CPU0:CRS-A#&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;show processes pidin | include &quot;[0-9]+f &quot;&lt;/b&gt;
        1   1 procnto               0f READY
        1   2 procnto               0f RUNNING
RP/0/RP0/CPU0:CRS-A#RP/0/RP0/CPU0:CRS-A#&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch02lev2sec3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;84-2&quot; style=&quot;color: maroon; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em;&quot;&gt;
&lt;br /&gt;&lt;/h3&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/7195748295634533488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/scheduling-algorithms-cisco-ios-xr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/7195748295634533488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/7195748295634533488'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/scheduling-algorithms-cisco-ios-xr.html' title='Scheduling Algorithms | Cisco IOS XR Kernel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbotinPgedVE_26KGPg_qqPmARFTeL8U8oaimsG4OclMvR3YBMSOSdnNhCfVpbcSW9VNub_KwZoqHJaR8X85slD5_tIJXIWFqMEybmTsLQvKX_qPzrQLaWEycKBDAWvxRQaD7lN0zfZbE/s72-c/a.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-7128169182557747892</id><published>2012-02-16T06:10:00.000-08:00</published><updated>2012-02-16T06:10:00.158-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS XR"/><category scheme="http://www.blogger.com/atom/ns#" term="Kernel"/><category scheme="http://www.blogger.com/atom/ns#" term="Threads"/><title type='text'>Threads | Cisco IOS XR Kernel</title><content type='html'>&lt;br /&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;72-3&quot; style=&quot;background-color: white; color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;73-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
As illustrated in&amp;nbsp;Figure 1, the OS is a group of cooperating processes managed by a small microkernel. The microkernel provides thread scheduling, preemption, and synchronization services to the processes. It also serves as a message-passing “bus.” The microkernel&amp;nbsp;&lt;span class=&quot;beginpage&quot; pagenum=&quot;18&quot;&gt;&lt;a href=&quot;&quot; id=&quot;74&quot; name=&quot;74&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-18&quot; name=&quot;IDX-18&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;and the process manager together form the procnto process. Each process runs in its own address space and can be restarted without impacting other processes.&lt;/div&gt;
&lt;div class=&quot;first-para&quot; id=&quot;73-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwzFfcEpDp1905oPMJKqOQyXdIf16yMIhqV2fYzNnan0wh_KEH6KCaif26y0hEzxuPHXdjmBk8yFR-0LxWZzxcCs_M_4tvOT9W2spp3D8HtmMcA0PR5uP9Qt7TVQw75TBbeJHwPmiksaw/s1600/a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;321&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwzFfcEpDp1905oPMJKqOQyXdIf16yMIhqV2fYzNnan0wh_KEH6KCaif26y0hEzxuPHXdjmBk8yFR-0LxWZzxcCs_M_4tvOT9W2spp3D8HtmMcA0PR5uP9Qt7TVQw75TBbeJHwPmiksaw/s400/a.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;figure&quot; id=&quot;ch02fig01&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-left: 2em; margin-top: 1em; text-align: left;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;75&quot; name=&quot;75&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02fig01&quot; name=&quot;ch02fig01&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;span class=&quot;figuremediaobject&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;br style=&quot;line-height: 1;&quot; /&gt;&lt;span class=&quot;figure-title&quot; id=&quot;75-1&quot; style=&quot;margin-left: 0em; margin-right: 8em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;figure-titlelabel&quot; style=&quot;font-weight: bold;&quot;&gt;Figure 1:&amp;nbsp;&lt;/span&gt;Microkernel-Based Operating System&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;75-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
When developing an application, it is often desirable to execute several algorithms concurrently. This concurrency is achieved using multiple threads within a process. A&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;thread&lt;/i&gt;is the minimum unit of execution and scheduling. A&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;process&lt;/i&gt;, on the other hand, is a container for related threads and defines the memory address space within which the threads can execute. There is at least one thread per process.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;75-3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
For example, as you can see from the&amp;nbsp;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;show processes threadname&lt;/b&gt;&amp;nbsp;120 output in&amp;nbsp;Example 1, the BGP process in IOS XR has several threads that each perform a specific task, including input, output, import, and so on. In the following sample output, 120 is the jobid of BGP process. Jobid (JID) is a unique number assigned to each process.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;ch02ex01&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 1em; text-align: left;&quot;&gt;
&lt;span class=&quot;example-title&quot; id=&quot;75-4&quot; style=&quot;color: maroon; font-weight: bold; margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;example-titlelabel&quot;&gt;Example 1:&amp;nbsp;&lt;/span&gt;Thread Names for the BGP Process&lt;/span&gt;&lt;a href=&quot;&quot; id=&quot;76&quot; name=&quot;76&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02ex01&quot; name=&quot;ch02ex01&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;formalbody&quot; id=&quot;ch02ex01&quot; style=&quot;margin-left: 0px;&quot;&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;pre class=&quot;literallayout&quot; id=&quot;76-1&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; margin-top: 0.4em; min-height: 2.5em; overflow-x: auto; width: 800px;&quot;&gt;RP/0/RP0/CPU0:CRS-A#&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;show processes threadname 120&lt;/b&gt;
! 120 is the jobid of bgp process
JID    TID  ThreadName      pri    state      TimeInState         NAME
120    1    io-control      10    Receive          0:00:04:0166   bgp
120    2    chkpt_evm       10    Receive         96:23:26:0941   bgp
120    3    label-thread    10    Receive          0:00:16:0525   bgp
120    4    rib-update ID 0 10    Receive          0:00:16:0522   bgp
120    5    async           10    Receive         50:49:09:0707   bgp
120    6    io-read         10    Receive          0:01:16:0534   bgp
120    7    io-write        10    Receive          0:00:16:0532   bgp
120    8    router          10    Receive          0:00:16:0533   bgp
120    9    import          10    Receive          0:00:16:0529   bgp
120    10   update-gen      10    Receive          0:00:16:0529   bgp
120    11   crit-event      10    Receive          0:00:16:0525   bgp
120    12   event           10    Receive          0:00:32:0777   bgp
120    13   management      10    Receive          0:00:16:0549   bgp
120    14   rib-update ID 1 10    Receive          0:00:55:0617   bgp
RP/0/RP0/CPU0:CRS-A#&lt;/pre&gt;
&lt;hr class=&quot;blueline&quot; style=&quot;color: #010100; margin-bottom: 0px; margin-top: 0px;&quot; /&gt;
&lt;div class=&quot;blankspace&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;76-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;19&quot;&gt;&lt;a href=&quot;&quot; id=&quot;77&quot; name=&quot;77&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-19&quot; name=&quot;IDX-19&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Figure 2&amp;nbsp;shows the most common thread states and transitions between the states. The inner circle actually represents two distinct states: ready and running. A thread state can transition from ready to running and vice versa. A thread in running state may also transition to any of the other states shown in&amp;nbsp;Figure 2.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;76-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPfOK_RkDt0vcg7m_vgwTaFCRBdFGkyBGqCpYsvMesGWH9ykfBwAWqIkUwY2I5NiZMK54K0LfPszEW9suSPTcdGcF0ly0QWeK2ffk0E8htnvMBpL4wJ55LsYJnGd18ZY8yL4J3IZEg9jg/s1600/b.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPfOK_RkDt0vcg7m_vgwTaFCRBdFGkyBGqCpYsvMesGWH9ykfBwAWqIkUwY2I5NiZMK54K0LfPszEW9suSPTcdGcF0ly0QWeK2ffk0E8htnvMBpL4wJ55LsYJnGd18ZY8yL4J3IZEg9jg/s320/b.jpg&quot; width=&quot;306&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;figure&quot; id=&quot;ch02fig02&quot; style=&quot;margin-left: 2em; margin-top: 1em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;78&quot; name=&quot;78&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch02fig02&quot; name=&quot;ch02fig02&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;span class=&quot;figuremediaobject&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;br style=&quot;line-height: 1;&quot; /&gt;&lt;span class=&quot;figure-title&quot; id=&quot;78-1&quot; style=&quot;margin-left: 0em; margin-right: 8em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;figure-titlelabel&quot; style=&quot;font-weight: bold;&quot;&gt;Figure 2:&amp;nbsp;&lt;/span&gt;Most Common Thread States and Transitions&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;78-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
Cisco IOS XR microkernel uses a preemptive, priority based, and non-adaptive scheduling algorithm. Each thread is assigned a priority. The scheduler is responsible for selecting the next thread to run based on the priority assigned. The highest priority thread in ready state is selected to run. There is a ready state first in, first out (FIFO) queue for each priority level.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;78-3&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
The idle thread is a special thread of the procnto process in that it is the only thread that runs at priority 0 and uses FIFO scheduling. Also, it is either in running or ready state and it never relinquishes CPU voluntarily. However, because it uses the lowest priority, it can be preempted by any other process that is in ready state.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;78-4&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
A running thread may be moved to a different state due to system call (such as a kernel call, exception, or hardware interrupt), getting blocked, preempted, or voluntarily yielding. If a running thread is preempted by a higher priority thread, it moves to the head of the ready queue for its priority. On the other hand, if it is preempted after consuming its timeslice or it voluntarily yields the process, it moves to the end of the ready queue for its priority.&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;Timeslice&lt;/i&gt;&amp;nbsp;is the maximum time that a running thread can consume while one or more threads are in the ready queue for the same priority level as the running thread.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;78-5&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
A running thread blocks when it needs to wait for an event to occur such as a reply message. When a thread is blocked it moves to the corresponding blocked state and stays there until it is unblocked. When the process is unblocked, it normally moves to the tail of the ready queue for its priority. There are some exceptions to this rule.&lt;/div&gt;
&lt;div class=&quot;last-para&quot; id=&quot;78-6&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;20&quot;&gt;&lt;a href=&quot;&quot; id=&quot;79&quot; name=&quot;79&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-20&quot; name=&quot;IDX-20&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;For example, if a server thread is waiting for a client request, it is in a receive blocked state. Suppose the blocked server thread has priority 10 and is unblocked by a client thread at priority 20 sending a request and waiting for a reply. This will unblock the server thread and move the client thread to reply blocked state. If the server thread is moved to the ready queue for priority 10 and there are several threads in ready state at priority 15, it will impact the response time for the client even though the client thread has priority 20. This problem is known as priority inversion. To prevent priority inversion, the microkernel uses priority inheritance, which temporarily boosts the priority of the server thread to match that of the client thread (20) and places the server at the ready queue for the client’s priority (20).&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/7128169182557747892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/threads-cisco-ios-xr-kernel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/7128169182557747892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/7128169182557747892'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/threads-cisco-ios-xr-kernel.html' title='Threads | Cisco IOS XR Kernel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwzFfcEpDp1905oPMJKqOQyXdIf16yMIhqV2fYzNnan0wh_KEH6KCaif26y0hEzxuPHXdjmBk8yFR-0LxWZzxcCs_M_4tvOT9W2spp3D8HtmMcA0PR5uP9Qt7TVQw75TBbeJHwPmiksaw/s72-c/a.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-8041143107719830103</id><published>2012-02-12T07:07:00.000-08:00</published><updated>2012-02-12T07:07:00.369-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS XR"/><category scheme="http://www.blogger.com/atom/ns#" term="Kernel"/><title type='text'>Cisco IOS XR Kernel</title><content type='html'>&lt;br /&gt;
&lt;h2 class=&quot;sect2-title&quot; id=&quot;70-2&quot; style=&quot;background-color: white; color: navy; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.9em; margin-top: 1.2em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;div class=&quot;first-para&quot; id=&quot;71-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;17&quot;&gt;&lt;a href=&quot;&quot; id=&quot;72&quot; name=&quot;72&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-17&quot; name=&quot;IDX-17&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Cisco IOS XR is a highly distributed microkernel-based network operating system. The microkernel used by Cisco IOS XR is QNX Neutrino real-time operating system (RTOS), which is from QNX Systems. The microkernel is lightweight and provides only a few fundamental services. It is responsible for interrupt handling, scheduling, task switching, memory management, synchronization, and interprocess communication. The microkernel does not include other system services such as device drivers, file system, and network stacks; those services are implemented as independent processes outside the kernel, and they can be restarted like any other application.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;72-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
The microkernel is a POSIX-compliant kernel. POSIX defines OS specifications and test suites for APIs and OS services that a POSIX-compliant OS has to implement. Applications and services developed for a POSIX-compliant kernel can easily be ported to another POSIX-compliant kernel. If the need arises in the future, Cisco IOS XR can easily be ported to another POSIX-compliant OS.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;72-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
The essential aspect of a microkernel-based OS is modularity. The microkernel provides a very high degree of modularity. The OS is implemented as a team of cooperative processes managed by the microkernel and glued by its message-passing service. Each process is running in its own address space and is protected from memory corruption of other processes. An important aspect of microkernel architecture is its fast context switching capability, which provides the impetus to a high degree of modularity. Because the CPU cost associated with context switching is minimal, it provides greater incentive to implement each application and service as its own process and in its own memory address space. For example, Cisco IOS XR implements BGP, OSPF, OSPFv3, RIBv4, RIBv6, and so on as separate processes. Moreover, if multiple OSPF processes are configured on the router each one will be assigned its own process instance completely separate from other OSPF processes. This greater modularity is made possible due to the fast context-switching capability of the microkernel and efficient interprocess communication provided by QNX and enhanced by Cisco. Interprocess communication&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/8041143107719830103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/cisco-ios-xr-kernel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/8041143107719830103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/8041143107719830103'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/cisco-ios-xr-kernel.html' title='Cisco IOS XR Kernel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-5160242019327503165</id><published>2012-02-08T04:04:00.000-08:00</published><updated>2012-02-08T04:04:00.719-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS XR"/><category scheme="http://www.blogger.com/atom/ns#" term="Platforms"/><title type='text'>Cisco IOS XR Platforms</title><content type='html'>&lt;br /&gt;
&lt;h2 class=&quot;first-section-title&quot; id=&quot;annotationlabel-first&quot; style=&quot;background-color: white; color: navy; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.5em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;div class=&quot;first-para&quot; id=&quot;61-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
This section provides a brief overview of Cisco IOS XR–based platforms. It is not intended to provide a detailed systems architecture for these platforms. Visit the Cisco website (&lt;a class=&quot;url&quot; href=&quot;http://www.cisco.com/&quot; style=&quot;color: maroon; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot; target=&quot;_top&quot;&gt;http://www.cisco.com/&lt;/a&gt;) to get detailed information on each of the platforms described in this section.&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev2sec7&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;61-2&quot; style=&quot;color: maroon; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;62&quot; name=&quot;62&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev2sec7&quot; name=&quot;ch01lev2sec7&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Cisco CRS-1 Carrier Routing System&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;62-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Cisco CRS-1 is the first platform to run IOS XR. It is designed for high system availability, scale, and uninterrupted system operation. CRS-1 is designed to operate either as a single-chassis or multichassis system. It has two major elements: line card chassis (LCC) and fabric card chassis (FCC). Details about each system follow:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;62-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;14&quot;&gt;&lt;a href=&quot;&quot; id=&quot;63&quot; name=&quot;63&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-14&quot; name=&quot;IDX-14&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;CRS-1 16-Slot Single-Chassis System&lt;/b&gt;&amp;nbsp;is a 16-slot LCC with total switching capacity of 1.2 Tbps and featuring a midplane design. It has 16 line card and 2 route processor slots.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;63-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;CRS-1 8-Slot Single-Shelf System&lt;/b&gt;&amp;nbsp;is an eight-slot line card chassis with total switching capacity of 640 Gbps and featuring a midplane design. It has eight line card and two route processor slots.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;63-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;CRS-1 4-Slot Single-Shelf System&lt;/b&gt;&amp;nbsp;is a four-slot line card shelf with total switching capacity of 320 Gbps. It has four line card and two route processor slots.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;63-3&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;CRS-1 Multi-Shelf System&lt;/b&gt;&amp;nbsp;consists of 2 to 72 16-slot LCC and 1 to 8 FCC with a total switching capacity of up to 92 Tbps. The LCCs are connected only to the FCCs where stage 2 of the three-stage fabric switching is performed. The FCC is a 24-slot system.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev2sec8&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;63-4&quot; style=&quot;color: maroon; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;64&quot; name=&quot;64&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev2sec8&quot; name=&quot;ch01lev2sec8&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Cisco XR 12000 Series&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;64-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Cisco XR 12000 series is capable of a 2.5 Gbps, 10 Gbps, or 40 Gbps per slot system with four different form factors:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;64-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Cisco 12016, Cisco 12416, and Cisco 12816&lt;/b&gt;&amp;nbsp;are full-rack, 16-slot, and 2.5-, 10- and 40-Gbps per slot systems, respectively.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;64-3&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Cisco 12010, Cisco 12410, and Cisco 12810&lt;/b&gt;&amp;nbsp;are half-rack, 10-slot, and 2.5-, 10- and 40-Gbps per slot systems, respectively.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;64-4&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Cisco 12006 and Cisco 12406&lt;/b&gt;&amp;nbsp;are 1/4-rack, 6-slot, and 2.5- and 10-Gbps per slot systems, respectively.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;64-5&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Cisco 12404&lt;/b&gt;&amp;nbsp;is a four-slot, 10-Gbps per slot system.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev2sec9&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;64-6&quot; style=&quot;color: maroon; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;65&quot; name=&quot;65&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev2sec9&quot; name=&quot;ch01lev2sec9&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Cisco ASR 9000 Series&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;65-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
ASR 9000 Series Aggregation Service Router is targeted for carrier Ethernet services and delivers a high degree of performance and scalability. It can scale up to 6.4 Tbps per system. It comes with two form factors:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;65-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Cisco ASR 9010&lt;/b&gt;&amp;nbsp;is a 10-slot, 21-rack unit (RU) system.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;65-3&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Cisco ASR 9006&lt;/b&gt;&amp;nbsp;is a 6-slot, 10-rack unit (RU) system.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/5160242019327503165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/cisco-ios-xr-platforms.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/5160242019327503165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/5160242019327503165'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/cisco-ios-xr-platforms.html' title='Cisco IOS XR Platforms'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-6008412666042697459</id><published>2012-02-04T02:02:00.000-08:00</published><updated>2012-02-04T02:02:00.545-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS XR"/><category scheme="http://www.blogger.com/atom/ns#" term="overview"/><title type='text'>High-Level Overview of Cisco IOS XR</title><content type='html'>&lt;br /&gt;
&lt;h2 class=&quot;first-section-title&quot; id=&quot;annotationlabel-first&quot; style=&quot;background-color: white; color: navy; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.5em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;div class=&quot;first-para&quot; id=&quot;53-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
As the world is becoming increasingly dependent on IP-based network infrastructure, network operators are demanding a high degree of reliability and availability. Cisco IOS XR Software is designed to meet the stringent requirements of network operators. It is designed to provide the following:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;53-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
A high level of scalability&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;53-3&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Distributed forwarding architecture&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;53-4&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Exceptionally high reliability and resiliency&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;53-5&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Service separation and flexibility&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;53-6&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Robust security&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;53-7&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;10&quot;&gt;&lt;a href=&quot;&quot; id=&quot;54&quot; name=&quot;54&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-10&quot; name=&quot;IDX-10&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Modularity across all software components&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;54-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Hierarchical configuration and robust configuration management&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;54-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Better manageability&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;para&quot; id=&quot;54-3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Cisco IOS XR software is a highly distributed, secure, highly modular, and massively scalable network operating system that allows uninterrupted system operation. It is a microkernel-based operating system with preemptive multitasking, memory protection, and fast context switching. The microkernel provides basic operating system functionalities including memory management, task scheduling, synchronization services, context switching, and interprocess communication (IPC).&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;54-4&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
The microkernel used in Cisco IOS XR is QNX Neutrino real-time operating system (RTOS) from QNX Software Systems. The kernel is lightweight and does not include system services such as device drivers, file systems, and network stack.&amp;nbsp;Figure 1&amp;nbsp;shows the IOS XR microkernel architecture.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;54-4&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKh_oNYhcjY-EkdONGKoj3pVWj9F9KdLnGIpBAKRg6HcbJpG4VLmIpyvbbIqKnN2fNpRqg9CpPC8KCrPeimJjwhO8ou-Qb_O-M7LidoHY3mKUT2oHEwzdKksjSMm88mHuRYPHiNy8gn5w/s1600/a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;186&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKh_oNYhcjY-EkdONGKoj3pVWj9F9KdLnGIpBAKRg6HcbJpG4VLmIpyvbbIqKnN2fNpRqg9CpPC8KCrPeimJjwhO8ou-Qb_O-M7LidoHY3mKUT2oHEwzdKksjSMm88mHuRYPHiNy8gn5w/s400/a.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;figure&quot; id=&quot;ch01fig02&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-left: 2em; margin-top: 1em; text-align: left;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;55&quot; name=&quot;55&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01fig02&quot; name=&quot;ch01fig02&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;span class=&quot;figuremediaobject&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;br style=&quot;line-height: 1;&quot; /&gt;&lt;span class=&quot;figure-title&quot; id=&quot;55-1&quot; style=&quot;margin-left: 0em; margin-right: 8em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;figure-titlelabel&quot; style=&quot;font-weight: bold;&quot;&gt;Figure 1:&amp;nbsp;&lt;/span&gt;Cisco IOS XR Microkernel Architecture&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;55-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
All processes outside the microkernel (procnto) are individually restartable. If any of the processes, including SysMgr, SysDB, Qnet, or BGP, is restarted it does not cause the entire system to reload. When a process restarts, it recovers its states from persistent storage or peer processes, also called&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;collaborators&lt;/i&gt;. For example, if the Routing Information Base (RIB) process restarts it will restore the RIB table from its collaborators, which are routing protocol processes such as OSPF, BGP, IS-IS, and so on. As a result, the RIB table is rebuilt and there is no traffic disruption if the RIB process is restarted.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;55-3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Cisco IOS XR employs two distribution models to achieve higher performance and scalability. The first distribution model uses localization, which performs processing and storage closer to the resource. With this model, a database specific to a node is located on that node. Also processes are placed on a node where they have greater interaction with&amp;nbsp;&lt;span class=&quot;beginpage&quot; pagenum=&quot;11&quot;&gt;&lt;a href=&quot;&quot; id=&quot;56&quot; name=&quot;56&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-11&quot; name=&quot;IDX-11&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;the resource. For example, Address Resolution Protocol (ARP), interface manager (IM), Bidirectional Failure Detection (BFD), adjacency manager, and Forwarding Information Base (FIB) manager are located on the line cards and are responsible only for managing resources and tables on that line card. System databases specific to the line card, such as interface-related configurations, interface states, and so on, are stored on the line card. This enables IOS XR to achieve faster processing and greater scalability.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;56-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
The second distribution model uses load distribution in which additional route processors (RPs or distributed RPs [DRP]) are added to the system and processes are distributed across different RP and/or DRP modules. Routing protocols, management entities, and system processes are examples of processes that can be distributed using this model. For example, we can classify the processes into three groups as follows and allocate each group to run on one RP or active/standby RP pair:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.DC24CC62-8191-42C3-A763-9FB81B1E17EA&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Group 1:&lt;/b&gt;&lt;/b&gt;&amp;nbsp;All routing protocols or processes, including BGP, ISIS, LDP, RSVP, PIM, MSDP, and RIB&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.C328CA6E-693A-4714-A042-1E1FC14AE74E&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Group 2:&lt;/b&gt;&lt;/b&gt;&amp;nbsp;All management entities, including SNMP server, SSH, Telnet, XML, and HTTP&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.DF6FECC0-7B38-4BF8-93E1-56A307076A15&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Group 3:&lt;/b&gt;&lt;/b&gt;&amp;nbsp;All other processes&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;para&quot; id=&quot;56-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
This model enables the operator to add additional RPs or DRPs in the system as needed to offload processing from one RP to another, essentially increasing the overall processing power of the system.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;56-3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Cisco IOS XR provides a clear separation of management, control, and data plane.&amp;nbsp;Figure 2&amp;nbsp;illustrates the IOS XR architecture and the separation of the management, control, and data planes.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;56-3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYXnyS9mMyGcwlNfGnBDPuzL6D9WdPa4W92BXPBr-YId1bYmZHMWyILxpy3QSM3W20YQ15LXhiesVFHaW6V7QgZh_25XxRbtJu19u4RBBYRxMyjvs6HWySsGTpzWXFTVAX34aUW3ZfGu0/s1600/b.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYXnyS9mMyGcwlNfGnBDPuzL6D9WdPa4W92BXPBr-YId1bYmZHMWyILxpy3QSM3W20YQ15LXhiesVFHaW6V7QgZh_25XxRbtJu19u4RBBYRxMyjvs6HWySsGTpzWXFTVAX34aUW3ZfGu0/s1600/b.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;figure&quot; id=&quot;ch01fig03&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-left: 2em; margin-top: 1em; text-align: left;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;57&quot; name=&quot;57&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01fig03&quot; name=&quot;ch01fig03&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;span class=&quot;figuremediaobject&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;br style=&quot;line-height: 1;&quot; /&gt;&lt;span class=&quot;figure-title&quot; id=&quot;57-1&quot; style=&quot;margin-left: 0em; margin-right: 8em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;figure-titlelabel&quot; style=&quot;font-weight: bold;&quot;&gt;Figure 2:&amp;nbsp;&lt;/span&gt;Cisco IOS XR Architecture: Separation of Management, Control, and Data Planes&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;57-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;12&quot;&gt;&lt;a href=&quot;&quot; id=&quot;58&quot; name=&quot;58&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-12&quot; name=&quot;IDX-12&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Each routing control plane or management plane process runs on one or multiple route processors (RP) and/or distributed RP nodes. Data plane processes are located on each node that participates in packet forwarding, including RP and line card.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;58-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Cisco IOS XR supports partitioning of a system into multiple secure domain routers (SDR) at physical boundaries. SDRs share only chassis, power supply, fan tray, and related system components. Each line card or RP belongs to only one SDR. Cisco IOS XR SDRs provide fault and security isolation because they are defined at physical boundaries. A fault, resource starvation, or security breach on one SDR does not impact other SDRs in the same system. An SDR can be defined with just one RP, but it can have multiple RPs and LCs.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;58-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Figure 3&amp;nbsp;shows a system partitioned into three SDRs: default SDR, SDR 1, and SDR 2. The SDR that has the designated shelf controller (DSC) is the default SDR. DSC is the main RP (or RP pair for redundancy) on the system.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;58-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHbBQJWZg_1v6wI68EsrUZAuBbSlot8xpiDeladDOwLdlLqwstS91PWbGTPL3Xe60fdp445ZWwI-tGbHp_u6PLZPOUrMhxR7l0W95KAsY8p2ojtdtCTJsBxaVQYPOWu5YWGWHdUsVdIig/s1600/c.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHbBQJWZg_1v6wI68EsrUZAuBbSlot8xpiDeladDOwLdlLqwstS91PWbGTPL3Xe60fdp445ZWwI-tGbHp_u6PLZPOUrMhxR7l0W95KAsY8p2ojtdtCTJsBxaVQYPOWu5YWGWHdUsVdIig/s1600/c.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;figure&quot; id=&quot;ch01fig04&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-left: 2em; margin-top: 1em; text-align: left;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;59&quot; name=&quot;59&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01fig04&quot; name=&quot;ch01fig04&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;span class=&quot;figuremediaobject&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;br style=&quot;line-height: 1;&quot; /&gt;&lt;span class=&quot;figure-title&quot; id=&quot;59-1&quot; style=&quot;margin-left: 0em; margin-right: 8em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;figure-titlelabel&quot; style=&quot;font-weight: bold;&quot;&gt;Figure 3:&amp;nbsp;&lt;/span&gt;Partitioning System into Secure Domain Routers&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;59-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Cisco IOS XR uses a two-stage fully distributed forwarding architecture. Each line card has forwarding information base (FIB) and local adjacency information base (AIB) for local interfaces on that line card. When a packet first enters the system, the ingress line card performs ingress feature processing and FIB lookup. The FIB lookup returns sufficient information for the ingress line card to deliver the packet to the appropriate egress line cards. The ingress line card does not need to know the full adjacency information of the egress interface. The ingress line card sends the packet through the fabric to the egress line card. The egress line card performs egress feature processing and FIB lookup to get full adjacency and layer 2 rewrite information. The packet is then sent to the outbound interface with an appropriate layer 2 header.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;59-3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;13&quot;&gt;&lt;a href=&quot;&quot; id=&quot;60&quot; name=&quot;60&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-13&quot; name=&quot;IDX-13&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;The purpose of two-stage forwarding is to get better scalability and performance. This is critical because Cisco IOS XR is designed to achieve a very high degree of scalability in different dimensions, including bandwidth capacity, number of routes, and number of customer connections.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;60-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
In Cisco IOS XR, all transit traffic is processed in HW and does not involve any LC or RP CPU processing. Only traffic destined to the router or originating from the router is processed by LC or RP CPU. Cisco has developed an innovative processing and delivery mechanism for packets destined to the router. This mechanism is called&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;local packet transport service (LPTS)&lt;/i&gt;. If a packet enters the system and FIB lookup in HW determines that the packet needs to be delivered to the local system, it will be handed over to LPTS process for additional HW processing. LPTS determines what application it is destined to and sends the packet to the node where the application resides. For example, if a BGP packet is received, the ingress LC will send it directly to the RP where the BGP process is located. The HW forwarding engine on the LC sends the packet through the fabric to the RP. The LC CPU does not touch this packet.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;60-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Cisco IOS XR LPTS also acts as a dynamic integral firewall and protects the system from denial of service and other forms of attacks. To protect the system from DoS attacks, it monitors and polices the traffic destined to the router. For example, BGP or any other type of control packets destined to the RP must conform to the policing thresholds set by the LPTS process. In case of BGP, the policer value is set such that regular BGP updates are not impacted. However, if someone maliciously sends a large amount of BGP updates, LPTS protects the RP CPU from being overwhelmed with bogus BGP packets. The policer value also depends on the status of the BGP session for which the packet is sent. If the packet belongs to a configured neighbor and the session is not yet established, the rate will be lower. On the other hand, if the packet matches an established session the rate will be higher. Note that it is very hard to generate bogus BGP packets belonging to an established session because the attacker must know the source and destination port of the BGP session in addition to the source and destination IP addresses.&lt;/div&gt;
&lt;div class=&quot;last-para&quot; id=&quot;60-3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
LPTS does not require user configuration—it is enabled by default and updated dynamically as the system is configured and sessions come up and down. The LPTS policer values, however, are user configurable.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/6008412666042697459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/high-level-overview-of-cisco-ios-xr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/6008412666042697459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/6008412666042697459'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/high-level-overview-of-cisco-ios-xr.html' title='High-Level Overview of Cisco IOS XR'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKh_oNYhcjY-EkdONGKoj3pVWj9F9KdLnGIpBAKRg6HcbJpG4VLmIpyvbbIqKnN2fNpRqg9CpPC8KCrPeimJjwhO8ou-Qb_O-M7LidoHY3mKUT2oHEwzdKksjSMm88mHuRYPHiNy8gn5w/s72-c/a.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-3839816029698261234</id><published>2012-02-01T05:59:00.000-08:00</published><updated>2012-02-01T05:59:27.232-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Operating System Concepts"/><title type='text'>Operating System Concepts</title><content type='html'>&lt;br /&gt;
&lt;h2 class=&quot;first-section-title&quot; id=&quot;annotationlabel-first&quot; style=&quot;background-color: white; color: navy; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.5em; margin-top: 0em; text-align: left;&quot;&gt;

&lt;/h2&gt;
&lt;div class=&quot;first-para&quot; id=&quot;40-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
Computer systems, including “embedded” systems such as routers, have an operating system that is responsible for providing a number of services to the applications. Coordination of processing activities and access to hardware resources such as memory, network interfaces,&amp;nbsp;&lt;span class=&quot;beginpage&quot; pagenum=&quot;7&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;41&quot; name=&quot;41&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;IDX-7&quot; name=&quot;IDX-7&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;and disk are also essential functions provided by an operating system.&amp;nbsp;Figure 1&amp;nbsp;shows the relationships among the operating system, applications, and hardware resources.&lt;/div&gt;
&lt;div class=&quot;figure&quot; id=&quot;ch01fig01&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-left: 2em; margin-top: 1em; text-align: left;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8bEPQazeaY4Nzu7Dt_etZtvVv3vwMVwrdy8ZEFgBpAp8sO7kTbjthySumCkT2Pn1vk9lPh3yPuQmuK0dOpEdm1mL413p1RvX9WLXEXgtf2z3ZP6kfAt3eXlSxCPpQ3l7xpO6UBUK5x1w/s1600/a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8bEPQazeaY4Nzu7Dt_etZtvVv3vwMVwrdy8ZEFgBpAp8sO7kTbjthySumCkT2Pn1vk9lPh3yPuQmuK0dOpEdm1mL413p1RvX9WLXEXgtf2z3ZP6kfAt3eXlSxCPpQ3l7xpO6UBUK5x1w/s320/a.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;42&quot; name=&quot;42&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch01fig01&quot; name=&quot;ch01fig01&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;span class=&quot;figuremediaobject&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;figure-title&quot; id=&quot;42-1&quot; style=&quot;margin-left: 0em; margin-right: 8em; margin-top: 0.5em;&quot;&gt;&lt;span class=&quot;figure-titlelabel&quot; style=&quot;font-weight: bold;&quot;&gt;Figure 1:&amp;nbsp;&lt;/span&gt;Operating System Interaction with Hardware and Applications&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev2sec6&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;42-2&quot; style=&quot;color: maroon; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;43&quot; name=&quot;43&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch01lev2sec6&quot; name=&quot;ch01lev2sec6&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Basic Functions of an Operating System&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;43-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Operating systems provide a number of services to applications. The basic functions offered by an operating system include process scheduling, interrupt handling, memory management, interprocess communication, and common routines (or library). These basic functions of OS are discussed in more detail in this section.&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec6&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-1&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;44&quot; name=&quot;44&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch01lev3sec6&quot; name=&quot;ch01lev3sec6&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Process Scheduling&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;44-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
A&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;process&lt;/i&gt;&amp;nbsp;is a software program execution instance running on a system that has the capability to execute multiple program instances. Multiple processes can be spawned simultaneously from a single program. In a multitasking operating system multiple processes can time-share CPU resources, giving the user a perception of simultaneous processing. In a multitasking system, a process might have to relinquish control of the CPU before it completes the execution of its current task.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;44-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
In a&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;cooperative multitasking&lt;/i&gt;&amp;nbsp;system, a process voluntarily relinquishes control only after completing execution or while waiting for an event. This could result in CPU starvation of other processes while waiting for the current process to relinquish control.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;44-3&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
On the other hand, in a&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;preemptive multitasking&lt;/i&gt;&amp;nbsp;system a currently running process might be forced to relinquish control of the CPU. This is called&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;preemption&lt;/i&gt;, and it can occur when either a high-priority process becomes ready or after the current process has run for the time allocated to it.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;44-4&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
When the operating system preempts a process it is necessary to preserve the state of the process before relinquishing control to another process so that it can resume its execution&amp;nbsp;&lt;span class=&quot;beginpage&quot; pagenum=&quot;8&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;45&quot; name=&quot;45&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;IDX-8&quot; name=&quot;IDX-8&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;when it gets to run again.&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;Context switching&lt;/i&gt;&amp;nbsp;is the mechanism by which a processes state is saved when it is preempted and retrieved when it resumes execution.&lt;/div&gt;
&lt;div class=&quot;last-para&quot; id=&quot;45-1&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
Most modern operating systems support running multiple instances of the same process concurrently. These types of operating systems are known as&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;multithreaded&lt;/i&gt;. A&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;thread&lt;/i&gt;is the smallest unit of execution within a process.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec7&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-2&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;46&quot; name=&quot;46&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch01lev3sec7&quot; name=&quot;ch01lev3sec7&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Interrupt Handling&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;46-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;i class=&quot;emphasis&quot;&gt;Interrupt&lt;/i&gt;&amp;nbsp;is a signal from hardware or software indicating a need for immediate attention. It causes the operating system to suspend a currently running process and dispatch an interrupt handling routine or process. A running process can also execute an interrupt instruction and trigger context switch to an interrupt handler. When executing a critical routine, the operating system can inhibit certain interrupts until the critical routine is completed. This is known as&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;interrupt masking&lt;/i&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec8&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-3&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;47&quot; name=&quot;47&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch01lev3sec8&quot; name=&quot;ch01lev3sec8&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Memory Management&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;47-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
The operating system is responsible for managing the entire system memory, including allocation of memory to processes and ensuring that a process does not corrupt memory that belongs to another process.&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;Memory protection&lt;/i&gt;&amp;nbsp;is a mechanism by which a process is prevented from accessing memory locations other than the memory space allocated to it. With memory protection, each process runs in its own memory space. A defect in one process or a malicious attack to one process will not impact other processes.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;47-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
In operating systems that support memory protection, some forms of communication between processes are better handled using&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;shared memory&lt;/i&gt;, which is accessible by multiple processes. The operating system provides different synchronization mechanisms between processes that are writing to or reading from shared memory regions.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;47-3&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
In a&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;monolithic operating system&lt;/i&gt;, all processes share the same address space and the system does not provide fault isolation among processes. A monolithic system can offer better utilization of CPU cycles because it has lower overhead with respect to memory access, interprocess communication, and context switching. It might be useful in scenarios in which CPU resources are expensive and the overall system is simple with small code size.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;47-4&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
In operating systems that support memory protection, the OS process that is responsible for managing other processes, memory, and other system resources is known as the&lt;i class=&quot;emphasis&quot;&gt;kernel&lt;/i&gt;, and the OS is often referred to as&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;kernel-based OS&lt;/i&gt;. The kernel can also contain other services, depending on the implementation. It runs in a separate memory space from the rest of the system and is protected from memory corruptions caused by other processes outside the kernel.&lt;/div&gt;
&lt;div class=&quot;last-para&quot; id=&quot;47-5&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
A failure in a nonkernel process does not impact the kernel and other processes. However, a failure in the kernel processes impacts all applications. In a&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;microkernel&lt;/i&gt;&amp;nbsp;system, only essential core OS services reside inside the kernel. All other services, including device drivers and network drivers, reside in their own address space. This has important resilience implications in that a failure in a device or network driver is self-contained and does not propagate to the kernel or other applications. Device and network drivers can also be restarted without restarting the whole system.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec9&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-4&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;48&quot; name=&quot;48&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch01lev3sec9&quot; name=&quot;ch01lev3sec9&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Synchronization&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;48-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;9&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;49&quot; name=&quot;49&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;IDX-9&quot; name=&quot;IDX-9&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;When multiple applications are running concurrently and attempt to access a resource such as disk drive, it is important to make sure that data integrity is preserved and resource is allocated fairly. There are different mechanisms that network operating systems provide to synchronize events and resource access.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec10&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-5&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;50&quot; name=&quot;50&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch01lev3sec10&quot; name=&quot;ch01lev3sec10&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Interprocess Communication&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;50-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
The operating system provides the interprocess communication (IPC) mechanism for processes running in separate address spaces because they cannot use the memory to exchange data. IPC communication can also occur between processes running on the main route processor and the processes running on different components in the device, including line cards and power supplies.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec11&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-6&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;51&quot; name=&quot;51&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch01lev3sec11&quot; name=&quot;ch01lev3sec11&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Dynamic Link Library&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;51-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
It is common for multiple applications to use a set of common routines. When these applications are running in separate protected memory address spaces, the common routines have to be duplicated in each address space, which is a waste of memory space. To avoid this problem, operating systems provide a mechanism to share common routines. This mechanism is called&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;dynamic linked library (DLL)&lt;/i&gt;&amp;nbsp;or&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;Libc&lt;/i&gt;&amp;nbsp;(C standard library). This allows the OS to load only active libraries into device memory and enables different processes to share the same libraries. This is a robust fault containment and software modularization mechanism. It also allows the sharing of common code among different applications.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec12&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-7&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;52&quot; name=&quot;52&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5960655149658546137&quot; id=&quot;ch01lev3sec12&quot; name=&quot;ch01lev3sec12&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Portable Operating System Interface&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;52-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Portable Operating System Interface (POSIX) is a set of IEEE specifications that define kernel APIs, thread interfaces, kernel utilities, and more. POSIX also defines a conformance test suite. If an operating system passes the test suite, it is called a POSIX-conforming OS. An OS that adheres to POSIX compliance is considered highly flexible and provides maximum portability for additional features or application development. An application program developed for one POSIX-compliant OS can easily be ported with minimal effort to another POSIX-compliant OS.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/3839816029698261234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/operating-system-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/3839816029698261234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/3839816029698261234'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/02/operating-system-concepts.html' title='Operating System Concepts'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8bEPQazeaY4Nzu7Dt_etZtvVv3vwMVwrdy8ZEFgBpAp8sO7kTbjthySumCkT2Pn1vk9lPh3yPuQmuK0dOpEdm1mL413p1RvX9WLXEXgtf2z3ZP6kfAt3eXlSxCPpQ3l7xpO6UBUK5x1w/s72-c/a.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-4139318530440664013</id><published>2012-01-20T07:54:00.000-08:00</published><updated>2012-01-20T07:54:00.338-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Carrier-Grade"/><category scheme="http://www.blogger.com/atom/ns#" term="NOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Requirements"/><title type='text'>Requirements for Carrier-Grade NOS</title><content type='html'>&lt;br /&gt;
&lt;h2 class=&quot;first-section-title&quot; id=&quot;annotationlabel-first&quot; style=&quot;background-color: white; color: navy; font-family: Arial, Helvetica, sans-serif; font-size: medium; margin-bottom: 0.5em; margin-top: 0em; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;div class=&quot;first-para&quot; id=&quot;27-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
Service providers are striving to provide solutions that can sufficiently satisfy the needs of their customers. Businesses are demanding integrated data, voice, video, and mobility services with high availability, security, and fast provisioning. Consumers want broadband access with bundled service of voice, video, mobile wireless, and data on a single bill. Governments are pushing for broadband access to every home and a resilient infrastructure that can survive catastrophic failures.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;27-2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;5&quot;&gt;&lt;a href=&quot;&quot; id=&quot;28&quot; name=&quot;28&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-5&quot; name=&quot;IDX-5&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;This section describes the requirements that a carrier-grade NOS needs to satisfy to meet the requirements of network operators.&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev2sec1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;28-1&quot; style=&quot;color: maroon; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;29&quot; name=&quot;29&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev2sec1&quot; name=&quot;ch01lev2sec1&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Convergence&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;29-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
A carrier-grade NOS should have the capability to enable infrastructure and service convergence. Network convergence is critical to lowering capital and operational expenditure. Service convergence is vital to meeting customer demands and to offer new revenue-generating services.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev2sec2&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;29-2&quot; style=&quot;color: maroon; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;30&quot; name=&quot;30&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev2sec2&quot; name=&quot;ch01lev2sec2&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Scalability&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;30-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
A converged network infrastructure should be able to scale seamlessly with respect to control plane, data plane, and management plane without interruption to existing services. The growth of customers, access bandwidth, and traffic volume per customer every year is pushing the scalability demand on every aspect of the network infrastructure. To cope with growth, the network operator might have to add additional hardware in the form of network ports, transport links, line cards, route processing cards, power modules or chassis in a multi-chassis system. The NOS should be able to support the addition of different system components without service disruption.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev2sec3&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;30-2&quot; style=&quot;color: maroon; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;31&quot; name=&quot;31&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev2sec3&quot; name=&quot;ch01lev2sec3&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Availability&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;31-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
In a converged network, routers are carrying critical traffic including voice, emergency service traffic, video broadcasting, video conferencing, and business-critical data with availability requirement of 99.999% or better. To achieve carrier-grade availability requirements, a network operating system should be able to support a number of high availability features as described in this section.&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec1&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-1&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;32&quot; name=&quot;32&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev3sec1&quot; name=&quot;ch01lev3sec1&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Hardware Redundancy&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;32-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Although it is possible to reduce the probability of hardware failure, it is virtually impossible and cost-prohibitive to reduce it to zero. Therefore, to achieve carrier-grade availability it is important to build the system with redundant hardware modules—particularly for system-critical subsystems. In addition, the NOS should have the necessary software capability to enable the system to operate with no or minimal service disruption when such a module fails, and when it is subsequently removed, upgraded, or replaced.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec2&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-2&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;33&quot; name=&quot;33&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev3sec2&quot; name=&quot;ch01lev3sec2&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Failure Recovery and Microkernel-Based NOS&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;33-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Modern operating systems and applications are complex, and are developed by hundreds of software engineers. It is virtually impossible to have defect-free operating systems. A software component might fail not only due to software defect but also due to memory corruption and malicious attacks. A carrier-grade NOS should be able to contain and recover from most software failures without service disruption.&lt;/div&gt;
&lt;div class=&quot;last-para&quot; id=&quot;33-2&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
Modern operating systems have kernel and nonkernel components. In general, a failure in a nonkernel software component will not impact the kernel or other nonkernel components. A kernel failure, however, will cause system reload. This suggests that it is important to keep most software components outside the kernel and to keep only minimal functionality in the kernel. This type of operating system is called a&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;microkernel-based operating&amp;nbsp;&lt;span class=&quot;beginpage&quot; pagenum=&quot;6&quot;&gt;&lt;a href=&quot;&quot; id=&quot;34&quot; name=&quot;34&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-6&quot; name=&quot;IDX-6&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;system&lt;/i&gt;. Multitasking, multithreading, and memory protection, which are discussed in the next section, are also critical components of a carrier-grade NOS.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec3&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-3&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;35&quot; name=&quot;35&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev3sec3&quot; name=&quot;ch01lev3sec3&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Process Restartability&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;35-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
When a software process fails, the operating system should be able to restart the process. When a process is restarted, it should be able to recover its state so that it can seamlessly continue its functions without disrupting service. This capability is referred to as&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;process restartability&lt;/i&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec4&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-4&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;36&quot; name=&quot;36&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev3sec4&quot; name=&quot;ch01lev3sec4&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Failure Detection&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;36-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
The network operating system should also support network features that enable quick failure detection and rerouting of traffic around failed links, modules, or routers.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev3sec5&quot;&gt;
&lt;h4 class=&quot;sect4-title&quot; id=&quot;annotationlabel-5&quot; style=&quot;color: #010100; margin-bottom: 0em; margin-top: 0.9em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;37&quot; name=&quot;37&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev3sec5&quot; name=&quot;ch01lev3sec5&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Software Upgrades and Patching&lt;/h4&gt;
&lt;div class=&quot;first-para&quot; id=&quot;37-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Carrier-grade NOS should support software upgrade and/or patching with no or minimal disruption to service. It is important that it has software patching capability to apply critical software updates and minimize frequent full software upgrades.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev2sec4&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;37-2&quot; style=&quot;color: maroon; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;38&quot; name=&quot;38&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev2sec4&quot; name=&quot;ch01lev2sec4&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Security&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;38-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
A router has two primary security functions:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;38-2&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
To protect customer and service provider infrastructure by supporting network security features such as unicast reverse path forwarding (uRPF), access control list (ACL)–based filtering, and prefix filtering&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;first-para&quot; id=&quot;38-3&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
To protect the router from malicious or unintended security attacks and intrusions, which is the primary focus here&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;last-para&quot; id=&quot;38-4&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
The operating system must provide effective mechanisms to protect the routing protocols from malicious attacks. It should also provide granular access control to protect the router from unauthorized access. Distributed denial of service (DDoS) attacks are common and becoming sophisticated. The NOS should minimize the impact to data, control, and management plane functions due to such attacks.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;ch01lev2sec5&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: left;&quot;&gt;
&lt;h3 class=&quot;sect3-title&quot; id=&quot;38-5&quot; style=&quot;color: maroon; font-size: medium; margin-bottom: 0.9em; margin-top: 1.3em;&quot;&gt;
&lt;a href=&quot;&quot; id=&quot;39&quot; name=&quot;39&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01lev2sec5&quot; name=&quot;ch01lev2sec5&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;Service Flexibility&lt;/h3&gt;
&lt;div class=&quot;first-para&quot; id=&quot;39-1&quot; style=&quot;margin-bottom: 0em; margin-top: 0em;&quot;&gt;
Carriers are demanding a routing system that has a long life cycle. This requires that the addition of new services should not require a fork-lift upgrade. Carrier-grade NOS needs to support the addition of new software features, line cards, and/or service modules with no or minimal service disruption. This can be achieved with modular software packaging, the support of service modules, and partitioning of systems into multiple routing domains.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/4139318530440664013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/01/requirements-for-carrier-grade-nos.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/4139318530440664013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/4139318530440664013'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/01/requirements-for-carrier-grade-nos.html' title='Requirements for Carrier-Grade NOS'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5960655149658546137.post-3167454166360332130</id><published>2012-01-15T02:51:00.000-08:00</published><updated>2012-01-15T02:51:00.096-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS XR"/><title type='text'>Introducing Cisco IOS XR</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;first-para&quot; id=&quot;23-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0em; margin-top: 0em; text-align: left;&quot;&gt;
In the 1980s the main network applications were limited to e-mail, web, file, printer, and database. Silicon technology for hardware (HW)-based packet forwarding was not yet fully developed, and transmission speed, CPU power, and memory capacity were very limited. As a result, routers and the underlying NOS were primarily designed to efficiently use CPU and memory resources for packet forwarding. A&amp;nbsp;&lt;i class=&quot;emphasis&quot;&gt;NOS&lt;/i&gt;&amp;nbsp;is an operating system that is specifically designed for implementing networking and internetworking capabilities. Network devices such as routers and switches are empowered by a NOS.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;24-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Moreover, in the early days of data networking there was a plethora of competing networking protocols in addition to Internet Protocol (IP). Some became industry standards and others remained proprietary.&amp;nbsp;Table 1&amp;nbsp;shows the protocols at different OSI layers that were once prevalent to varying degrees.&lt;/div&gt;
&lt;a href=&quot;&quot; id=&quot;25&quot; name=&quot;25&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; outline-color: initial; outline-style: none; outline-width: initial; text-align: left; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;ch01tab01&quot; name=&quot;ch01tab01&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; outline-color: initial; outline-style: none; outline-width: initial; text-align: left; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: x-small; text-align: left;&quot;&gt;&lt;/span&gt;&lt;table border=&quot;1&quot; class=&quot;table&quot; id=&quot;ch01tab01&quot; linktabletoexcel=&quot;yes&quot; style=&quot;background-color: white; color: black; font-family: verdana, arial, helvetica, sans-serif; font-size: 11px; margin-bottom: 1em; margin-top: 1em; text-align: left;&quot;&gt;&lt;caption class=&quot;table-title&quot; id=&quot;25-1&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; margin-top: 0.3em; text-align: left;&quot;&gt;&lt;span class=&quot;table-title&quot; style=&quot;margin-top: 0.3em;&quot;&gt;&lt;span class=&quot;table-titlelabel&quot;&gt;Table 1:&amp;nbsp;&lt;/span&gt;Protocols That Were in Use in the Early Days of Data Networking&lt;/span&gt;&amp;nbsp;&lt;/caption&gt;&lt;thead&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;th align=&quot;left&quot; class=&quot;th&quot; scope=&quot;col&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;25-2&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Protocols&lt;/div&gt;
&lt;/th&gt;&lt;th align=&quot;left&quot; class=&quot;th&quot; scope=&quot;col&quot; style=&quot;color: maroon; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;25-3&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
OSI Layer&lt;/div&gt;
&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;25-4&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Token Ring, Fiber Distributed Data Interface (FDDI), Switched Multimegabit Data Service (SMDS)&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;25-5&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
1–2&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;25-6&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
ATM, Frame Relay&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;25-7&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
2–3&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;25-8&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
Internetwork Packet eXchange (IPX), International Standards Organization ConnectionLess Network Services (ISO CLNS), AppleTalk, DECNet, Xerox Network Services (XNS), IBM System Network Architecture (SNA), Apollo Domain, Banyan Virtual Integrated Network Services (VINES)&lt;/div&gt;
&lt;/td&gt;&lt;td align=&quot;left&quot; class=&quot;td&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0px;&quot; valign=&quot;top&quot;&gt;&lt;div class=&quot;table-para&quot; id=&quot;25-9&quot; style=&quot;margin-left: 0.3em; margin-right: 1em;&quot;&gt;
3&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;para&quot; id=&quot;25-10&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Routers were designed to support a variety of multiple protocols including IP, Ethernet, SONET/SDH, and some of the protocols shown in&amp;nbsp;Table 1.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;25-11&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Network operators had several service-specific networks, each managed and operated by a different team. It was not uncommon for a service provider to maintain a separate PSTN network for telephony, an ATM data network, a Frame Relay data network, a public data network for Internet customers, a separate network for mobile backhaul, and a transport network to support all services. Some network operators still have a legacy of multiple networks; however, they are actively migrating to a converged network.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;25-12&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;span class=&quot;beginpage&quot; pagenum=&quot;4&quot;&gt;&lt;a href=&quot;&quot; id=&quot;26&quot; name=&quot;26&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;&quot; id=&quot;IDX-4&quot; name=&quot;IDX-4&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;Although networking services such as e-mail, web browsing, file transfer, instant messaging, VoIP, and so on are taken for granted today, they were either nonexistent or considered privileged services for a few users at large enterprise, academic, and government institutions.&lt;/div&gt;
&lt;div class=&quot;para&quot; id=&quot;26-1&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-top: 0.9em; text-align: left;&quot;&gt;
Over the past few decades the network, users, and services have evolved dramatically as follows:&lt;/div&gt;
&lt;ul class=&quot;itemizedlist&quot; style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-left: 3em; margin-top: 0.9em; text-align: left;&quot;&gt;
&lt;li class=&quot;first-listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.AA6D93A9-4464-4EA9-A414-31B46EF99A90&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Applications:&lt;/b&gt;&lt;/b&gt;&amp;nbsp;In the 1980s there were just a few network applications, namely e-mail, file, database, and print services. Today there are countless applications, including video conferencing, instant messaging, IPTV, telepresence, telemedicine, peer-to-peer sharing, video surveillance, online banking, online shopping, and so on.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.5624BD08-2541-4CD6-9B31-11DD7A30BF60&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;User size:&lt;/b&gt;&lt;/b&gt;&amp;nbsp;Until the mid-1990s, data networking usage was limited to large enterprise, government, and academic institutions for limited applications. Based on data from Internet World Stats, Internet usage has grown from 16 million users in 1995 to 1.46 billion users in 2008. Moreover, per-capita bandwidth usage has increased dramatically since the mid 1990s.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.3FD0C277-9CF0-4A5E-94F3-76E703A586C9&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Transmission capacity:&lt;/b&gt;&lt;/b&gt;&amp;nbsp;Transmission capacity of a single fiber pair has increased from 155Mbps in the early 1990s to multi-terabits today (realized with dense wavelength division multiplexing [DWDM] technologies). The Trans-Pacific Express (TPE) submarine cable that connects the United States to mainland China has an initial capacity of 1.28 terabits per second with a designed maximum capacity of 5.12 terabits per second.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.DF8A3B34-E898-4703-9982-748AF5D8FEBE&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Processing and memory capacity:&lt;/b&gt;&lt;/b&gt;&amp;nbsp;CPU speed and complexity increased from tens of megahertz single core processors in the early 1990s to multigigahertz multicore processors in 2009 following Moore’s law. Memory capacity and access speed have seen similar growth—from a few megabytes of memory capacity in the early 1990s to many gigabytes in 2009. Moore’s law, which is named after Intel co-founder Gordon E. Moore, states that processor and memory capacity doubles approximately every two years.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.4287B375-1603-498A-92EB-485518864E2F&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Protocols:&lt;/b&gt;&lt;/b&gt;&amp;nbsp;From several protocols in the early 1990s (as shown in&amp;nbsp;Table 1), the network has consolidated toward IPv4/IPv6 and Ethernet protocols.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;margin-top: 0.9em;&quot;&gt;&lt;div class=&quot;para&quot; id=&quot;nr-formalpara.D539BCE2-7763-46A8-A8EF-4BB3BE696A3B&quot; style=&quot;margin-top: 0.9em;&quot;&gt;
&lt;b&gt;&lt;b class=&quot;bold&quot; style=&quot;font-weight: bold;&quot;&gt;Networks:&lt;/b&gt;&lt;/b&gt;&amp;nbsp;Network operators have migrated or are in the process of migrating from multiple networks, each dedicated for specific function to a single converged network capable of supporting multiple services.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://ciscoiosxr.blogspot.com/feeds/3167454166360332130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/01/introducing-cisco-ios-xr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/3167454166360332130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5960655149658546137/posts/default/3167454166360332130'/><link rel='alternate' type='text/html' href='http://ciscoiosxr.blogspot.com/2012/01/introducing-cisco-ios-xr.html' title='Introducing Cisco IOS XR'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>