Tuesday, September 23, 2008

Dollar in the dump

The massive bailout of the financial sector, valued at nearly $1 trillion, is causing a record deficit, which is sinking the dollar. Already investors have started moving away from dollar into commodities. Commodities across the board like Gold, Oil, Copper etc are seeing a massive rally. (Oil price increased by almost $35 to $130, and is expected to go up.) The details of the bailout have also not emerged completely, leading to volatility, which is only expected to get worse.

Dollar's position as a reserve currency will be challenged if the slide continues. China has billions of US dollars in reserves, so if it sees that the dollar value is dropping, it may start dumping its dollar assets in favor of other more resilient assets. Other countries also have substantial dollar reserves. This would release a lot of dollars into the global markets putting much more downward pressure on the dollar. The only reason against that happening now, is that the Euro, the nearest alternative, is also in a pretty bad shape.

To control the drop in dollar, the government has to reduce the deficit. One way is to reduce expenditure, which appears to be nearly impossible due to the bailout plans of Paulson. The other alternative is to increase taxes, which is equally unlikely. A weak dollar will cause much harm to the economy and raise inflation, leading to a very damaging recession.

A positive effect of a weak dollar is that it will increase exports, and make imports more costlier. But this is a long term effect, which wont necessarily kick in, in the short run.

The current bailout, as bad as it is, is the only way to offset much bigger crisis in the American economy. But the loss of confidence in the dollar will take a long time to recover.

Monday, September 22, 2008

TCP Offload Engine support in Linux

TCP Offload Engines (TOE) are customized hardware which handle TCP connections completely in the network card itself, instead of in the kernel. Lately 10Gbps Ethernet cards are becoming the industry standard in the high end server market. A simple rule of thumb regarding TCP processing in the CPU requires 1 HZ of CPU for every 1 bit of TCP data handled per second. This means that a 10GigE card, requiring 10 GHz, can quickly eat the CPU like there is no tomorrow. Even with multiple CPUs and multiple cores per CPU, the impact is significant.

Added to this, IEEE standards are already being prepared for 40Gbps and 100Gbps Ethernet. So in this situation, using TOE becomes inevitable. There are already many TCP functions already being done in hardware like checksumming, LRO (Large Receive offload), LSO (Large Send Offload) etc. But a TOE provides a complete end-to-end solution.

TCP Offload Engines were never a hit with the linux networking community. Linux Kernel Maintainers, esp David Miller, have been against the idea of TOE due to various valid reasons like it reduces maintainability of code, etc. Also the kernel maintainers argue that TOE was only a stopgap solution, before CPU speeds caught up with the loads, citing cases in the past where TOE was implemented even for 100Mbps links. More details about their position can be found in this article - Linux and TCP Offload Engines. This has caused a situation where the 10GigE vendors like Chelsio are forced to maintain the TOE patches to the Linux kernel, out-of-tree. This causes the code to be inherently unstable.

Anyway, the end users do not face any loss of functionality since the vendor provided patches to the Linux kernel can be used to build kernel modules, which provide support for TOE hardware in Linux machines. This is what I like about Open Source. You do not have to be bound by what others think. You leave that decision to time.

Friday, September 19, 2008

Republican VP Sarah Palin's Yahoo! mail hacked

Two days ago, the email account of Ms. Sarah Palin, the current Governor of Alaska, as well as the Republican Vice Presidential Candidate's Yahoo! Email account - gov.sarah@yahoo.com was hacked. The nature of the hack is the well known "forgotten password" of Yahoo! link, which asks for some personal information before generating a new password. For a public figure like Palin, most of this information is not really private... which means the existing security measures need to be looked at in a different light. Even for normal ppl, the information is not too difficult to get, except that there are easier ways like keyboard logging, social engineering etc.

Most services on the web try to escape this predicament, by giving the option of mailing your new password to your email address. But alas this cannot work email accounts itself. It is important that this issue be addressed by Yahoo! and other webmail providers, since there are many people who lose information through such loopholes.

On your end, to reduce the possibility of such attacks, you should give fake information for such email accounts to prevent public information on the website. And you don't have to give the real name of your pet either! And for the love of God, remember that information, since if you forget that, no one is helping you out.

The complete log of emails and information used to hack the account is available at the Wikileaks website.

Thursday, September 18, 2008

A Wednesday - An Exciting Thriller

Generally I have a low opinion of the average run of the mill movies which get released by Bollywood or the other Tollywoods. They generally run on a hackneyed, beaten-to-death formula. But a few of them are gems. "A Wednesday" by Neeraj Pandey is one. It is a gripping thriller about a wednesday when a series of incidents changes the lives of all those involved.

The movie starts with a phone call to the police commissioner of Mumbai (played by Anupam Kher), about 5 bombs placed at various locations in Mumbai. The caller (Naseerudeen Shah) gives extremely detailed instructions about how to release known terrorists. From then onwards, the movie progresses into a gripping thriller, with many twists and turns to a very satisfying conclusion. The tempo of the film is maintained till the end, which is very rare. Most movies lose their tempo after a good start, but not this one. A definite must watch.

Five Stars any day...

Socialism for the Super Rich - Moral Hazards in US economy

The recent bailout of Freddie Mac, Fannie Mae and AIG, by the US Govt to protect the faith in US markets has created a moral hazard. A moral hazard indicates that while you take a risk, the profits from it go exclusively to you, but losses are distributed to parties which do not have anything to do with the deal. This creates a situation which rewards an overtly risky behavior.

The US taxpayers are paying for the mistakes of a few who tried to make a lot of money in the US real estate and mortgage businesses. The Fed by arranging the shotgun marriage of Bear Sterns to JP Morgan a couple of months ago, while assuring at least $30 billion against losses from Bear's trades, indirectly rewarded the overtly risky behavior, by letting the taxpayers buttress the downside of the risks. Freddie and Fannie losses could potentially run into hundreds of billions of dollars. The Fed tried to take a stand by not bailing out Lehman, but the odds were stacked against its favor as the AIG posed a huge counterparty risk to all the financial markets. In the end, the AIG bailout cost the taxpayers $85 billion.

This is not new for the Fed. It arranged the cleaner disposal of Long Term Capital Management (LTCM) Hedge fund after it blew up in 1998, since the fund with $10 billion in deposits and controlling over $1 trillion of the economy through leverage would have brought down the entire global economy.

Moral Hazards have always existed in the world of Hedge funds, where the fund managers gets to take home a large part of any profits he makes. Losses would typically result in him getting fired, but without any monetary damage. This caused the Hedge fund managers to take up increasingly risky trades. Mutual funds were somewhat safer due to strict regulation which limited the riskiness of trades they undertook.

In a free market enterprise the Fed has to let these institutions fail for their mistakes. But they would also cause global economic collapse and cause a lot of harm to the common man. So this is amounting to near blackmail by these firms (a more apt term would be brinkmanship).

Other than the explicit bailouts of Freddie, Bear, AIG etc, The Fed is also implicitly bailing out the other firms by keeping the interest rates extremely low, at a time when inflation is eating into the savings of the common folk.

So who is at fault? The fault is the lack of proper regulation and laws governing Investment banks and financial institutions in general. For example the repeal of the Glass-Steagall act is one such action, which increased the moral hazard since banks can also do investment actions and lose lots of money rendering them insolvent. This would cause the FDIC to dole out money to the depositors from tax payers if the banks fail. This is definitely not the best solution, but can be one solution which can be used to reduce this moral hazard, which if ignored further would result in increasingly worse depressions, as traders start taking increasingly risky trades.

Although it is against the spirit of free markets, the US Govt must be more proactive in analyzing the markets and bring in relevant laws and regulation, instead of waiting for the storm, to pass new laws.

Tuesday, September 16, 2008

Tunneling to the inside - using SSH

Many networks are setup in such a way that you can access a machine (lets say GGG) in the network through SSH and then you can access any other machine (lets say XXX) in that network using protocols like SSH, telnet, samba etc. But wouldn't it be great to access those services right from the machine (lets say LLL) you are sitting at itself?

Enter the SSH Tunnel. SSH tunnel could be used to create an end to end SSH connection between the local machine (LLL) and the gateway machine (GGG). Then you can access any machine (XXX) from (LLL) itself. The best part is you do not have to be root for this!

First establish the SSH tunnel connection between GGG and LLL using the following command on LLL
ssh user@GGG -L 2000:XXX:22 -N

where, 2000 is the local port on LLL which will act as
a gateway (this can be any port you want)
22 is the remote port on the machine XXX to which you
want to connect to (For example this will be 23
for telnet, 139 for SMB, 22 for SSH etc)

Now your tunnel is setup. Just connect to the machine by connecting to LLL on port 2000 - you will be automatically forwarded to connect to 22 on XXX machine!

The Bursting Oil Bubble - Aftermath

The Oil bubble has more or less burst for now as expected. with the price of crude down to nearly $94 from the peak of $147 in July. The main reason for the decline is that the US Dollar is once again stronger than earlier. Since Crude is priced in dollars, any fall in dollar value will increase the dollar price of crude and vice versa. Oil is one of the main commodities that is also used as hedge against the dollar, and now that the dollar is doing good, Oil is getting dumped in favor of US Treasuries and the like. The price of Oil is expected to drop further, since the Lehman bankruptcy will possibly unwind some Oil trades.

The global economic downturn is also playing its part, by reducing the demand for Oil. The last time the world economy was down after the 1997 East Asian crisis etc, Oil fell to under $10 a barrel. The cracks in the OPEC are once again out in the open, with Saudi Arabia not wanting to reduce its production. Politically also, the fall in Oil price is significant with the tide turning away from the Oil producers - especially the politically active ones like Russia.

The presumed demand from rising economies like India and China causing a global upward price spiral proved to be unfounded at least in the short run. And it also showed that however inelastic the price demand curve of oil is, there is still a curve there which causes unrealistic prices to throttle demand. Airlines can once again breathe easily.

Now-a-days, none of the bad news is really affecting the crude price slide very much. News such as Hurricane Ike likely to impede Oil production in the Gulf of Mexico, increased terrorist activity in Nigeria or likewise, which would have caused massive rallies earlier, are causing no more than a whimper, and the price slide stops temporarily before resuming its journey down to a more realistic value.

On the negative side, the push for alternatives to oil is once again reducing, indicating the short sighted nature of the public. Also the reduction of premium on Oil, removes the financial incentive for private investors to pursue alternative renewable fuels. Oil has also stopped being a major campaign issue. This is high time the coming Govt in Washington takes a stand and pumps money into the research for alternative fuels, instead of bailing out companies like the Detroit Big Three to prop up the economy in the short run.

The dent made by the spike of oil prices, made the American consumer more aware of the risks of owning a gas guzzler. It will be a while before this harsh lesson is forgot, which is good news.

The American consumers at the Pump still see Oil at more than $4 since Hurricane Ike destroyed the refining capacity on the east coast, resulting in serious Oil shortages. But this is a temporary phenomenon which should pass in a week or so.

I really applaud the Indian govt's decision to NOT reduce the price of Oil at the pump, even though it is the election year. This goes a long way in reducing the oil subsidy to more manageable levels, and will leave the image of India as a good investment destination intact.