<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openvswitch.git/lib/cfm.c, branch v1.1.0</title>
<subtitle>github.com: openvswitch/ovs.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/'/>
<entry>
<title>cfm: Fix broken fault logic.</title>
<updated>2011-04-07T16:34:34+00:00</updated>
<author>
<name>Ethan Jackson</name>
<email>ethan@nicira.com</email>
</author>
<published>2011-04-07T00:23:40+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=58bd2941187c9df4717ab4f3c6fc3c78f3f25165'/>
<id>58bd2941187c9df4717ab4f3c6fc3c78f3f25165</id>
<content type='text'>
If the last receive time for a remote MP was before the last fault
check, the CFM code would not declare a fault.  This is, of course,
exactly the wrong response.

Bug #5303.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the last receive time for a remote MP was before the last fault
check, the CFM code would not declare a fault.  This is, of course,
exactly the wrong response.

Bug #5303.
</pre>
</div>
</content>
</entry>
<entry>
<title>cfm: Allow time for CCM reception after cfm_configure();</title>
<updated>2011-04-01T20:36:53+00:00</updated>
<author>
<name>Ethan Jackson</name>
<email>ethan@nicira.com</email>
</author>
<published>2011-04-01T20:10:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=aac19178a43f5ed3367e2d7a7a19ae34fdf56cfb'/>
<id>aac19178a43f5ed3367e2d7a7a19ae34fdf56cfb</id>
<content type='text'>
Before this (and the previous) patch, whenever cfm_configure was
called it would set the fault_timer to expired.  Thus, the next
call to cfm_run would notice a lack of CCM reception and trigger a
faulted status.  This is a bug in and of itself, but normally would
not be a big deal because cfm_configure should only be called
infrequently (when the database changes).  However due to an
unrelated bug, cfm_configure() was getting called approximately once
per second.  This resulted in all monitors showing faults all of
the time.

This patch fixes the problem by not expiring the timer at
cfm_configure().  Instead it gives it the appropriate
fault_interval amount of time to miss heartbeats.

Bug #5244.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this (and the previous) patch, whenever cfm_configure was
called it would set the fault_timer to expired.  Thus, the next
call to cfm_run would notice a lack of CCM reception and trigger a
faulted status.  This is a bug in and of itself, but normally would
not be a big deal because cfm_configure should only be called
infrequently (when the database changes).  However due to an
unrelated bug, cfm_configure() was getting called approximately once
per second.  This resulted in all monitors showing faults all of
the time.

This patch fixes the problem by not expiring the timer at
cfm_configure().  Instead it gives it the appropriate
fault_interval amount of time to miss heartbeats.

Bug #5244.
</pre>
</div>
</content>
</entry>
<entry>
<title>cfm: cfm_configure() only update when necessary.</title>
<updated>2011-04-01T20:36:38+00:00</updated>
<author>
<name>Ethan Jackson</name>
<email>ethan@nicira.com</email>
</author>
<published>2011-04-01T20:22:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=9aa952b2dd7c091c63dbfc7becb3b3dcc9f7bfce'/>
<id>9aa952b2dd7c091c63dbfc7becb3b3dcc9f7bfce</id>
<content type='text'>
Calling cfm_configure often could cause timers to be reset
resulting in unexpected behavior.  This commit only updates when
cfm configuration actually changed.

Bug #5244.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Calling cfm_configure often could cause timers to be reset
resulting in unexpected behavior.  This commit only updates when
cfm configuration actually changed.

Bug #5244.
</pre>
</div>
</content>
</entry>
<entry>
<title>cfm: Use new timer library.</title>
<updated>2011-03-31T23:19:33+00:00</updated>
<author>
<name>Ethan Jackson</name>
<email>ethan@nicira.com</email>
</author>
<published>2011-03-31T20:54:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=6fabb78d45211260c388979baab5b757ec76e33e'/>
<id>6fabb78d45211260c388979baab5b757ec76e33e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cfm: Fix appctl negative report.</title>
<updated>2011-03-31T23:17:34+00:00</updated>
<author>
<name>Ethan Jackson</name>
<email>ethan@nicira.com</email>
</author>
<published>2011-03-31T23:12:01+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=6fcdfcd065750940efd97b90f9746601d5b3f965'/>
<id>6fcdfcd065750940efd97b90f9746601d5b3f965</id>
<content type='text'>
When the cfm module has never received a bad CCM message, it would
report a negative time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the cfm module has never received a bad CCM message, it would
report a negative time.
</pre>
</div>
</content>
</entry>
<entry>
<title>cfm: No longer keep track of bad remote MPs and MAIDS.</title>
<updated>2011-03-28T22:44:17+00:00</updated>
<author>
<name>Ethan Jackson</name>
<email>ethan@nicira.com</email>
</author>
<published>2011-03-28T20:10:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=0dd17bfdfed067cd15f764a5c741625c4c118ac8'/>
<id>0dd17bfdfed067cd15f764a5c741625c4c118ac8</id>
<content type='text'>
Ben pointed out that an attacker could cause OVS to use infinite
memory by sending a series of CCMs with different MAIDs.  Each
message would cause a remote_maid to be allocated and stored for
several seconds.

Since Commit 1c2e2d2fc8 (cfm: Don't report unexpected remote
endpoints) no longer reports unexpected remote MAIDS and MPs in the
database, the only reason to keep track of this information is for
debugging purposes.  In my judgment, it provides negligible useful
debugging information at the expense of significantly increased
code complexity.  This commit rips it out entirely.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ben pointed out that an attacker could cause OVS to use infinite
memory by sending a series of CCMs with different MAIDs.  Each
message would cause a remote_maid to be allocated and stored for
several seconds.

Since Commit 1c2e2d2fc8 (cfm: Don't report unexpected remote
endpoints) no longer reports unexpected remote MAIDS and MPs in the
database, the only reason to keep track of this information is for
debugging purposes.  In my judgment, it provides negligible useful
debugging information at the expense of significantly increased
code complexity.  This commit rips it out entirely.
</pre>
</div>
</content>
</entry>
<entry>
<title>cfm: Create new cfm/show appctl command.</title>
<updated>2011-03-28T18:43:26+00:00</updated>
<author>
<name>Ethan Jackson</name>
<email>ethan@nicira.com</email>
</author>
<published>2011-03-25T22:30:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=20c8e9710834ab38c2d557f10ac54ceba2d85b18'/>
<id>20c8e9710834ab38c2d557f10ac54ceba2d85b18</id>
<content type='text'>
This will be useful for debugging CFM problems in the future.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This will be useful for debugging CFM problems in the future.
</pre>
</div>
</content>
</entry>
<entry>
<title>cfm: Reduce missed CCM detection time.</title>
<updated>2011-03-28T18:32:06+00:00</updated>
<author>
<name>Ethan Jackson</name>
<email>ethan@nicira.com</email>
</author>
<published>2011-03-25T21:26:53+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=72c3b44800c5b25d5399b05e1bc6aece44414f49'/>
<id>72c3b44800c5b25d5399b05e1bc6aece44414f49</id>
<content type='text'>
The specification says that a fault should be signaled when 3.5 *
ccm_interval milliseconds have passed.  This commit respects that
requirement, possibly increasing the responsiveness of fault
detection slightly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The specification says that a fault should be signaled when 3.5 *
ccm_interval milliseconds have passed.  This commit respects that
requirement, possibly increasing the responsiveness of fault
detection slightly.
</pre>
</div>
</content>
</entry>
<entry>
<title>cfm: Don't report unexpected remote endpoints.</title>
<updated>2011-03-28T18:30:55+00:00</updated>
<author>
<name>Ethan Jackson</name>
<email>ethan@nicira.com</email>
</author>
<published>2011-03-25T01:36:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=1c2e2d2fc87c9435b6fe33112b0ddaab59f507c5'/>
<id>1c2e2d2fc87c9435b6fe33112b0ddaab59f507c5</id>
<content type='text'>
Before this patch, CFM would report unexpected remote maintenance
points in the database.  This commit no longer exposes this
information.

Information about precisely why a link is faulty is more interesting
to a system administrator debugging a problem than a controller
which will generally only care about whether or not a link is
faulty.  For simplicity sake, this commit removes this information
from the database where it was somewhat awkwardly placed.  In the
future it may be valuable to report the information through
ovs-appctl commands for debugging purposes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this patch, CFM would report unexpected remote maintenance
points in the database.  This commit no longer exposes this
information.

Information about precisely why a link is faulty is more interesting
to a system administrator debugging a problem than a controller
which will generally only care about whether or not a link is
faulty.  For simplicity sake, this commit removes this information
from the database where it was somewhat awkwardly placed.  In the
future it may be valuable to report the information through
ovs-appctl commands for debugging purposes.
</pre>
</div>
</content>
</entry>
<entry>
<title>cfm: Immediately signal fault on bad CCM reception.</title>
<updated>2011-03-28T18:30:51+00:00</updated>
<author>
<name>Ethan Jackson</name>
<email>ethan@nicira.com</email>
</author>
<published>2011-03-25T02:04:21+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=f805c4cc6e3de7ecd6de9bae99c0405e84334d1e'/>
<id>f805c4cc6e3de7ecd6de9bae99c0405e84334d1e</id>
<content type='text'>
Commit af5739857a (cfm: Immediately signal a fault upon receiving
an unexpected MPID.) caused the CFM library to immediately signal a
fault upon reception of an unexpected remote MPID.  This commit
does the same for MAIDs, and remote maintenance points with invalid
CCM intervals.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit af5739857a (cfm: Immediately signal a fault upon receiving
an unexpected MPID.) caused the CFM library to immediately signal a
fault upon reception of an unexpected remote MPID.  This commit
does the same for MAIDs, and remote maintenance points with invalid
CCM intervals.
</pre>
</div>
</content>
</entry>
</feed>
