<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog on Charlie's Server &#187; UConn Network Security</title>
	<atom:link href="http://blog.charlies-server.com/tag/uconn-network-security/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.charlies-server.com</link>
	<description></description>
	<lastBuildDate>Thu, 18 Feb 2010 22:30:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>To Date or not to Date</title>
		<link>http://blog.charlies-server.com/2005/04/17/to-date-or-not-to-date</link>
		<comments>http://blog.charlies-server.com/2005/04/17/to-date-or-not-to-date#comments</comments>
		<pubDate>Sun, 17 Apr 2005 18:09:52 +0000</pubDate>
		<dc:creator>Hasan</dc:creator>
				<category><![CDATA[School]]></category>
		<category><![CDATA[UConn Network Security]]></category>

		<guid isPermaLink="false">http://newblog.charlies-server.com/2005/04/17/to-date-or-not-to-date/</guid>
		<description><![CDATA[Disclaimer: No, i&#8217;m not talking relationship advice.
When I began looking at possible database schemas for storing NetFlow data in MySQL, I was worried about space. I was working under different assumptions back then (the numbers I had for data in was 1/100th what it is now), and I was thinking that perhaps I could keep [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Disclaimer</strong>: No, i&#8217;m not talking relationship advice.</p>
<p>When I began looking at possible database schemas for storing NetFlow data in MySQL, I was worried about space. I was working under different assumptions back then (the numbers I had for data in was 1/100th what it is now), and I was thinking that perhaps I could keep the whole database under the 32-bit boundary (for old filesystems, portability, etc.). Now that the 2GB barrier is clearly broken with the sheer amount of data I&#8217;m dealing with, I&#8217;m not concerned at all with disk space &#8211; hard drives are cheap, or so says my boss. What does this mean for the schema? No more CPU-disk tradeoffs in favor of disk space. But does that also mean I can drop additional disk space, and a bit of CPU, for coding convenience, maintainability, extensibility, and ease of use?<br />
<span id="more-31"></span><br />
In the short-term NetFlow tables, data lives for only a month or two at a time. Any more than that and insert times go down the drain &#8212; indices get too large for MySQL to cache adequately, even when there&#8217;s only two indices on the whole table. One of those indices is on a <code>SMALLINT</code> field (that&#8217;s a 16-bit integer for you non-MySQL types) corresponding to data in a <code>SMALLINT</code>-<code>DATETIME</code> lookup table.</p>
<p>Obviously there&#8217;s CPU overhead involved in converting the smallint back into a date, or vice versa, whenever the database is accessed. Furthermore, there&#8217;s a code inconvenience/overhead involved. Lastly, but certainly an important consideration, is that the system becomes less scalable: when places like NYU have the resources (such as a system with 32GB of RAM, like some of the Sun systems they&#8217;ve got there for network security) to keep a couple years&#8217; worth or NetFlow data in MySQL, the system will break because 16-bit integers only allow for just over 1.8 years&#8217; worth of 15-minute reports. Or consider an institution that wished to have more granular data, suppose 5- or 1-minute reports; not even considering the extensive code changes required to move from 15-minute granularity to some other level of granularity, the system comes crashing down in a mere 45 days. This is unacceptable. Even though my superiors at the workplace currently don&#8217;t intend on using on using the system in this way, chances are that their demands will change over the next year, and I want to be able to adapt the system to accommodate for those changes.</p>
<p>So now what I have a motivation for change, the question is on the direction in which to make the change. There are a few good options.</p>
<p><strong>Bump the <code>SMALLINT</code> to a <code>MEDIUMINT</code></strong><br />
Adding 8 bits would get me somewhere a lot more safe in terms of maximum capacity. But again we have the problem of scalability/maintainability if we want to change the granularity of the system. Also, like before, the system uses different date metrics for different tables, and things get confusing as well as difficult to maintain.</p>
<p><strong>Drop the lookup table and move to <code>DATE</code> and <code>TIME</code> fields</strong><br />
Allright, it sounds a lot like overkill to store 48 bits where I could deal easily with 24. I&#8217;ll admit that. My logic is that since storage is no longer an object, things like this are possible. CPU-wise, I&#8217;m not sure exactly what the tradeoff will look like numerically; there should be a slight increase (okay, maybe not slight) in time taken to insert into the table because indices are larger, but total query time will be less because the number of queries is lower (no need for an extra lookup query on the date field). An added benefit, though, is that the entire backend could work under the same date metric. The huge plus here is that the system is completely scalable and 100% granularity-agnostic. Half minute, even ten second, reports? Sure, you got it. I can&#8217;t fathom needing anything less than one-minute reports, but I&#8217;m a stupid programmer/engineer, so I&#8217;ll quarter my minimum expectations and settle on 15-second reports as an absolute minimum (after which I would expect the system to just be real-time and not periodical in nature, which would require a restructure of the system anyhow).</p>
<p>I&#8217;m leaning towards the latter option above, but am open to suggestions and whatever my benchmarks report. I&#8217;ll make the final decision on this hopefully by the end of the day, definitely by the end of tomorrow.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.charlies-server.com/2005/04/17/to-date-or-not-to-date/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enter NIC, Soon to be Watching You</title>
		<link>http://blog.charlies-server.com/2005/04/14/enter-nic-soon-to-be-watching-you</link>
		<comments>http://blog.charlies-server.com/2005/04/14/enter-nic-soon-to-be-watching-you#comments</comments>
		<pubDate>Fri, 15 Apr 2005 00:31:03 +0000</pubDate>
		<dc:creator>Hasan</dc:creator>
				<category><![CDATA[School]]></category>
		<category><![CDATA[UConn Network Security]]></category>

		<guid isPermaLink="false">http://newblog.charlies-server.com/2005/04/14/enter-nic-soon-to-be-watching-you/</guid>
		<description><![CDATA[mv Frontend NIC
The move is official, then. NIC is to be the production name of the Network Information Center we&#8217;ve been working on this semester. With any luck, NIC will hit the UConn Network this summer. Stay tuned for more &#8211; including Lina&#8217;s first post, coming tonight!
]]></description>
			<content:encoded><![CDATA[<p><code>mv Frontend NIC</code></p>
<p>The move is official, then. NIC is to be the production name of the <strong>N</strong>etwork <strong>I</strong>nformation <strong>C</strong>enter we&#8217;ve been working on this semester. With any luck, NIC will hit the UConn Network this summer. Stay tuned for more &#8211; including Lina&#8217;s first post, coming tonight!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.charlies-server.com/2005/04/14/enter-nic-soon-to-be-watching-you/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Lappy Go Bye-Byes, Reloaded</title>
		<link>http://blog.charlies-server.com/2005/04/02/lappy-go-bye-byes-reloaded</link>
		<comments>http://blog.charlies-server.com/2005/04/02/lappy-go-bye-byes-reloaded#comments</comments>
		<pubDate>Sat, 02 Apr 2005 23:40:51 +0000</pubDate>
		<dc:creator>Hasan</dc:creator>
				<category><![CDATA[Day-To-Day]]></category>
		<category><![CDATA[Geekdom]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[UConn Network Security]]></category>

		<guid isPermaLink="false">http://newblog.charlies-server.com/2005/04/02/lappy-go-bye-byes-reloaded/</guid>
		<description><![CDATA[Yup, It happened again. Due to a problem identical to that described in a previous post, my laptop was sent in to Apple for repairs. This time around, I wasn&#8217;t able even to grab my latest work off of the drive, and of course, haven&#8217;t backed up in a while. I hope to have the [...]]]></description>
			<content:encoded><![CDATA[<p>Yup, It happened again. Due to a problem identical to that described in a <a href="http://blog.charlies-server.no-ip.com/2005/02/05/charlies-powerbook-down-for-the-count/" title="Charlie's Powerbook Down For The Count">previous post</a>, my laptop was sent in to <a href="http://www.apple.com/support/" title="Apple - Support">Apple</a> for repairs. This time around, I wasn&#8217;t able even to grab my latest work off of the drive, and of course, haven&#8217;t backed up in a while. I hope to have the unit back by Thursday, 2005.04.14. Sad story is, I wasn&#8217;t even able to grab my latest work off of the drive before the machine sputtered and died.</p>
<p><span id="more-22"></span><br />
Joe, the Apple representative I spoke with at the Co-Op, seemed fairly confident that they would just replace the drive this time. On the service request that gets sent to the support tehcnician, Joe wrote, &#8220;<em>The hard drive refuses to mount. Loud vibrations, akin to the blood curdling wail of a harpee, bring men to their knees.</em>&#8220;.</p>
<p>Before doing all the paperwork with Joe, I asked if I might borrow a firewire cable and try to mount the drive on one of the machines there at the Co-Op, so as to perhaps salvage some of the data. It was a no-go. The drive wouldn&#8217;t even seek, and it made Disk Utility on the other computer go nuts. My last backup was a while back, too. Serves me right, I suppose. Let&#8217;s just say I&#8217;ll be e-mailing a few professors about the matter.</p>
<p>While the sounds emitted by the hard disk this time around were a bit worse than last time (there are scratching sounds to account for), I don&#8217;t think they&#8217;ll actually need to replace the drive. I guess we&#8217;ll find out on Thursday. Wish me luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.charlies-server.com/2005/04/02/lappy-go-bye-byes-reloaded/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Charlie&#8217;s PowerBook down for the count&#8230;</title>
		<link>http://blog.charlies-server.com/2005/02/05/charlies-powerbook-down-for-the-count</link>
		<comments>http://blog.charlies-server.com/2005/02/05/charlies-powerbook-down-for-the-count#comments</comments>
		<pubDate>Sat, 05 Feb 2005 23:49:47 +0000</pubDate>
		<dc:creator>Hasan</dc:creator>
				<category><![CDATA[Day-To-Day]]></category>
		<category><![CDATA[Geekdom]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[UConn Network Security]]></category>

		<guid isPermaLink="false">http://newblog.charlies-server.com/2005/02/05/charlies-powerbook-down-for-the-count/</guid>
		<description><![CDATA[Looks like my powerbook is dead at least until a service technician can take a look at it. I&#8217;ll be sending it in on Monday 2005.02.07, and expect it back around Thursday 2005.02.10. One week without a laptop.

When Mum heard the news, she told me to have my friends tie me to a chair and [...]]]></description>
			<content:encoded><![CDATA[<p>Looks like my powerbook is dead at least until a service technician can take a look at it. I&#8217;ll be sending it in on Monday 2005.02.07, and expect it back around Thursday 2005.02.10. One week without a laptop.</p>
<p><span id="more-12"></span><br />
When Mum heard the news, she told me to have my friends tie me to a chair and never bring a computer near me for that whole week &#8212; I&#8217;d surely be going through widthdrawal. Widthdrawal or not, it&#8217;s definitely going to be an interesting week. Work, School, Gentoo, it&#8217;s all going to Hell this week.</p>
<p>How did it happen, you ask? I don&#8217;t know for certain, but I can postulate. What happened, you ask? Now that I know for certain. I woke up last night to my roommate inquiring about the sound coming from the computer(s). It turns out the sound was coming from my laptop. Too sleepy to care, I turned it off and went back to bed. After taking a look at it in the morning, I found that the hard drive sounded like a deisel truck. Now that&#8217;s never good. The sound didn&#8217;t get any better, but I was able to boot the system (remarkably) and back up my Address Book database as well as my iCal calendars, which were really the only two things that I didn&#8217;t have an up-to-the-minute backup of. My ~/Library (preferences, etc.) folder had been backed up a while back, and my Music had been recently mirrored onto Charlie&#8217;s Server (via the FTP service).</p>
<p>Looks like everything is going to be fine on my end, in terms of saving all my information. I got what I needed, and was working on creating a convenient .dmg of my music collection (to avoid filename mangling issues between different filesystems) when the hard drive noise got louder and Mac OS X decided to become irresponsive. At that point I gave up.</p>
<p>So basically, what went on is that, several months after dropping the laptop on its side (hey, I tripped, it wasn&#8217;t my fault) where the hard drive is, the unit started rattling, presumedly against the side of the case. Rattling at 5000rpm is loud as all hell against an alluminum chassis. Not only was the rattling loud, but it also caused enough vibrations to make disk access impossible.</p>
<p>I called the UConn Co-Op technology guys (I know them well) and filled them in. They said that they can ship it out Monday, and have it back to me by [hopefully] Thursday. Apple support has been excellent in the past, and I do have a subscription to the AppleCare Protection Plan that isn&#8217;t even near expiry, so I should be just fine. Meanwhile I&#8217;m stuck using the command-line on my server and friends&#8217; computers. Pray for me and my laptop.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.charlies-server.com/2005/02/05/charlies-powerbook-down-for-the-count/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
