Notes on Memory Consistency and Cache Coherence

June 27th, 2008 admin

Here are some of my notes on the topic of memory consistency and cache coherence, and how uniprocessor and multiprocessor cores have to be built to support the consistency models. Most of this was written up when I was preparing for my Qualifying Exam at NC State University last semester. This is a relatively complicated topic to understand well, and there might still be several mistakes in how I understood the ideas. Also, this might only make sense, and be interesting, to people familiar with these areas of computer architecture. Here’s the pdf file: Notes on Memory Consistency and Cache Coherence

Posted in Information, Tutorials | 1 Comment »

In Phase Interview

September 30th, 2007 admin

A little over a month ago, Sourabh Sriom, a current student at Indian Institute of Technology, Guwahati, contacted me for an interview. IITG is where I earned my Bachelors degree. Our class, the class of 99, was the first to pass out of the new institution. The ECE Department at IITG has an ECE society called Cepstrum. On september 20th, 2007, Cepstrum released the first issue of the monthly magazine called In Phase. The purpose of In Phase is to both help the students be in touch with the happenings in their field, Electonics and Communications Engineering, and to help restore the social networks between alumni, faculty and students. I was honored to be asked for an interview. It helped me give the current students a view of how my career progressed, after graduating from IITG, and also helped me a chance to reflect on a few things. I would like to thank IITG and Cepstrum for giving me this opportunity. I also was pleased to see the continued support of the faculty at IITG, many of whom I studied under, in this endeavour. It was great to read Dr. P. K. Bora’s communication to the In Phase team, which appears in the magazine too. Here is the original link to the magazine, which appears in the Cepstrum webpage here. I also made a local copy of the magazine on my webpage here. Note that this is a 5.8MB pdf file. It might take some time to open up, and your browser needs to be able to open pdf files. A few questions and answers form my original response had to be removed due to space constraints in the magazine. If you just wish to read the interview questions and answers, the full interview follows.
1. Being a student of the 1st batch of our IIT, tell us about your apprehensions and pre-conceived notions, if any, about IITG.

From what I recollect about my state of mind then, I believe I was more excited than apprehensive. The opportunity to study at an institution where the quality of education, faculty, students and facilities was reputed to be at par with the best in the country excited me. My inclination was towards ECE as a subject area and I was only grateful that I could pursue that subject at IITG when I probably could not elsewhere, given my rank in the JEE. My only preconceived notions about IITG were that it would be a young institute looking to build itself, both in literal terms and in its beliefs and character. I knew it would be an institute that would not have much to show for itself in the first few years in brick and mortar terms. I also knew that when you put smart, motivated and courageous people – people who were smart enough to get into IITG, motivated enough to prioritize their area of academic interest over the place of study, and courageous enough to choose an hitherto unexplored destination � the chances are good that you will end up with an institution you can be proud of.

2. Did these feelings live up when you finally entered IITG? That is, how were your first few days at IITG?

The disappointment of seeing the small, unassuming, pale, four-storied building tucked in the cramped, commercial heart of the city, further isolated by the agonizing groans and rumbles of slow-moving trains on railway lines on one side, and the noisy arch of the Pan Bazaar flyover too close for comfort on another, could have been overwhelming; for me, however, there as no disappointment. The lack of a tangible, photographable campus with large buildings and facilities was probably compensated for, subconsciously, by trying harder to do the best we could with what we had. And what we had were a batch of 64 motivated students, great faculty and the hope that everything else an institution needs would come in due time. I think the one thing that IITG had from day one was fantastic people. And that takes care of the two main aspects of undergraduate education � developing academic skills and developing social skills.

3. Did you feel let down at any point during your stay here? (If, yes what or who boosted your confidence?)

No. I do not recollect feeling let down at any point. The reason might have, partly, been that I had nothing to compare our experiences to. But even in absolute terms, I think the IITG Administration was sensitive to our needs and were always receptive to our suggestions. Even when there were the occasional drooping shoulders, the administration, faculty members and other students would boost the morale by providing honest perspective.

4. Talk us through the experiences of the rest of your B. Tech, the faculty, other students, and, the placements.

We were lucky to have some highly motivated faculty members whose knowledge of their subject was thorough, and, enthusiasm for their craft, contagious. It was a pleasure to actively learn from them in the classroom and beyond. With 63 other students to begin with and with more joining in the future years, it was a non-stop learning experience in social behavior. The emotional support, comic relief, opinionated exchanges and lifelong friendships are experiences we students shared with each other and the faculty. The combination of our being in our late teens, the 4 years we were together for and the shared adventure that was IITG, might be the reason why the friendships made in those days are still so strong. The placements and higher studies are but a blur in my mind. I remember that even then we were able to attract some of the best companies and were offered good jobs with competitive pay.

5. What prompted you to go for higher studies abroad?

My main motivation for higher studies was that I felt I had only begun to skim the surface of my field and there was a lot more for me to learn. The other school of thought was that what you really need to learn you can learn while doing a job. Though that was true to the extent of doing your job well, I wanted to learn more for its own end. That is, I wanted to learn what great minds of the past had thought up or discovered, for no other reason than that I wanted to know. I had no plans for how I was going to use that knowledge. Why abroad? I wanted to explore the kind of academics and research that is practiced in other reputed institutions of the world. It was, in some sense, IITG all over again – the yearning to put yourself in a new situation, to, hopefully, gain a new perspective.

6. Did the department guide you in this goal of yours? If yes, then in what way?

Yes. Because we did not have any student history to go by, being the first batch, we had to research the process of applying for a PhD or a Master�s ourselves, to a large extent. We had faculty members who were extremely helpful in educating us on how to go about applying, how to attempt standardized tests for graduate school entrance, and which schools to choose, based on their experience and contacts. Lastly, they wrote us honest recommendation letters.

7. What were the major differences you felt graduating from a premier institute in India to doing your PG from a reputed university in the US?

I went to Purdue University in West Lafayette, Indiana, USA for my Master�s in Electrical and Computer Engineering. It was a gigantic University compared to IITG and certainly a bit overwhelming. The size, the history and the bureaucracy were the first things I noticed. It worked like a giant machine with things happening like clockwork running on old but well-oiled and well-cared-for parts. However, I was able to find myself an apartment, make new friends, get a decent understanding of the geography of the large campus, get my head around the official rules and requirements, participate in a different culture, continue good performance in academics, and participate in sports and other extra-curricular activities. So all in all, I think IITG prepared me well to take up the new challenges in the new environment.

8. How did you land up in IBM? Tell us something about your stint there.

Similar to placement interviews at the end of a B.Tech at IITG, there was a job fest organized at Purdue University�s ECE Department. I interviewed with several companies and decided to get some exposure to the industry. I joined IBM, primarily, because of the company�s reputation, the breadth of knowledge the company seemed to possess and because the team that interviewed me seemed to be doing very interesting work. The main difference between academia and industry is that industry tries to channel research into an end product that is tangible, useful and therefore, sellable. IBM has a Research division too; however, the team I joined is part of Development. I work as a Future System Performance Engineer. My work deals with helping hardware designers and system architects optimize the design of a future computer system such that it performs the best it can, given various requirements, such as expected workloads, throughput and latency requirements, and constraints, such as the area and power budget, architectural or microarchitectural extensions allowed etc. I learn a lot of new things on the job and work with some very sharp people.

9. At what point during your job did you make up your mind to go for a PhD?

I noticed that high importance is given to innovative thinking at IBM. I realized that with better knowledge of the Computer Architecture field, I could not just solve the current design problems better, but more importantly, I could foresee future problems and try to incorporate that vision into the current solutions. I also noticed that in the region where I live and work, there were several good Universities and IBM management was always supportive and encouraging in allowing me to go back to school for either an MBA or a PhD. So after working for about 4 years at IBM, I applied to and joined North Carolina State University in Raleigh as a part-time PhD student. By then I had gotten a reasonable understanding of the types of design and technology constraints computer architects and hardware designers face in their work and the kind of solutions that make a product competitive in the market. I thought the time was right to look at the directions academia was taking in this field. Academia and Research are typically a few years ahead of the Industry and Development. Therefore, being in touch with academia allows you to see patterns that would be harder to see from within the industry.

10. How was research in ECE different from a job in the area?

Though I have not yet started serious research as part of my PhD, and am currently taking classes and only recently formed my Advisory Committee, I can give you my current view on this topic. Since I joined my PhD after some exposure to the industry, I can research a topic that is a new and interesting problem both in academia and industry. Such overlap is usually not perfect, but if research in an academic setting is guided to some extent by real problems faced by engineers, it leads to research that is more purposeful.

11. How would you compare India and the US in terms of opportunities in the ECE field?

Having limited exposure to the industry in India, I have to go by my understanding of what I have heard or read. I believe that India has a foot in the door to becoming a knowledge superpower. India is already a major player in the software and services industry. From being a middle-man providing support to the producers and the consumers, India is itself moving towards being a big producer and a big consumer. That is a significant shift, because as a producer you create value where it did not exist before, and as a consumer, you provide a reason for the producers to produce. India seems to be on the threshold of a gear change in this engine of value-creation and value-aware-demand. In ECE and related fields the differences in opportunities between the US and India will continue to shrink as long as India continues to take the opportunities that come her way and discover or create new opportunities on her own.

12. Would you like to share a piece of advice with our readers about how they should plan their career moves.

Based on my limited experiences, based on what has served me well, assuming a vast majority of the readers are students at IITG, and assuming a general guideline rather than a strict example is useful, my advice is, be honest and positive. By honest, I mean several things. Be forthright in your assessment of where you are, where you want to be, how to get there. Be a humble follower when you should be, and likewise, a confident leader when you should be. Be connected to reality by being aware of your thoughts, your motivations, your limitations, your duties and your actions. By positive I mean, most importantly, try to keep improving yourself. Try to do the best job in everything you do. How you define �improvement� or �best� depends on how honestly you can judge where you are and where you want to be. Try to improve that ability to judge as well. By positive I also mean be creative. Get into the habit of practicing your innate creativity. We have the brains and the training to actively create value, rather than passively consume it. Even when being a consumer be an active one. Be a good follower (active consumer) and be a good leader (active producer). Let the opportunity to partake in creativity guide your career moves.

13. Finally, a word for the very first people at IITG, the director, the faculty of the department, the HOD. I�m sure they all would be proud of you.

I am and have always been impressed by the positive energy of the IITG Administration and Faculty. In twelve short years the progress made by IITG has been remarkable and most of the credit should go to these nurturing souls. I am grateful and proud to have been, and still be, a part of IITG. I am positive it will continue to grow in stature and fulfill its role in shaping the world.

Posted in Experiences, Information, Philosophy | No Comments »

Finally, one Contact List to rule them all

July 29th, 2007 admin

I have a Yahoo email account. I have a Google email account. I have a few more that I do not use much. Each email application or service provider typically has an Address Book or Contacts List, which we can use to list the names, email addresses and other information about people. For a while, I have been thinking about getting the contact lists organized. There were several layers to the word “organized” and I was apprehensive about starting to peel those layers. The first layer of the problem was figuring out which mail server I wanted to stick to. The next thought was to create a superset of all the contact lists, currently scattered across applications and mail servers, at one place. The next issue was to find a way to update the contact list quickly, rather than clicking around a web-based Address Book or Contact List applications such as the one provided by Yahoo and Google Mail. Then there was the hope that I could keep a copy of the contact list locally on my personal computer, in case, at some point, I did not have internet access to get to the Yahoo Address Book.

This list of requirements seemed formidable in itself, yet, what made me skeptical of a final solution, was one last requirement I had. I had maintained a list of birthdays and anniversaries in a text file separate from the contact lists in the mail servers I mentioned. It was a simple text file and a simple Perl script I wrote could go through this text file everyday and send me an email if it found any upcoming event. I wanted to retain the ability to do such scripting and not have to maintain a separate text file version of the contact list, just for the purposes of being able to run such a reminder script.

After collecting and formulating these thoughts over a long time, I finally spent a few minutes last week looking for a solution to the multi-layered problem. Searching on the internet revealed that there WAS a relatively easy solution that fixes ALL the above problems, including giving me the ability to run a simple script to extract birthday and anniversary information! Here is the solution. Yahoo and Google Address Books allow the existing contacts-list to be exported as a CSV (Comma Separated Variable) file, or a CSV file to be imported to populate the Contact List or Address Book application. A CSV file, as the name suggests, is just a regular text file, with many fields belonging to a record typed across a single line, with the comma symbol (“,”) separating the fields. A new record starts in a new line. The file can be opened with a regular text-editor such as Notepad, Wordpad or Textpad in Windows and vi, pico and emacs in Unix. The file may also be opened using Microsoft Excel spread sheet and the fields show up in separate column and the lines show up in separate rows. This solves the problem of easily modifying the contact list in bulk and storing the contact list as a local file on your personal computer. The CSV file is compatible across Yahoo and Google, and probably across many other applications like Microsoft Outlook and Orkut (web-based networking application). The CSV file can then be imported into Yahoo Mail, Google Mail or other such applications. Problem solved. Single contact list. Storable and updateable locally. Uploadable to multiple web-based servers.

The CSV file based common contact list also allowed me to enter the anniversary and birthday in appropriate columns. I wrote a script called contact.py in the Python scripting language to read the contact list file as a simple text file (in the CSV format) and search for upcoming events. This allowed me to get rid of the earlier text file I had my Perl script read. The CSV file, I called it contactlist.csv, was truly the one file I needed to retain for all my address-book related needs. Whenever I want to add a new contact or update information about an existing contact, I update the local copy of the contact list, contactlist.csv, and then import it into Yahoo Mail and Google Mail to keep them up to date. I have noticed that before I import the latest contactlist.csv file into Yahoo or Google, I need to delete all the existing contacts from Yahoo and Google, respectively. Once, we have an empty contact list on the mail server, the importing of contactlist.csv recreates the complete list. Not starting with an empty contact list on the mail servers, creates duplicates, probably because the “import” function is not smart enough to recognize duplicates.

Here is an example of what a few rows from the CSV file contactlist.csv looks like. It gives us idea of what the fields are. The example also shows that all the fields in a CSV file need not be filled. A field can be left empty if we do not know the information relating to that field for a given contact. Also, I use xxxx for the year field of a date (such as a birthday or an anniversary date), in case I do not know the year. This is OK because the script that parses this CSV file, called contact.py, and which is shown later, does not use the year field to determine if an anniversary is approaching. It only uses the day and month parts of the field.

First,Middle,Last,Nickname,Email,Messenger ID,Home,Work,Pager,Fax,Mobile,Other,Yahoo! Phone,Alternate Email 1,Alternate Email 2,Personal Website,Business Website,Title,Company,Work Address,Work City,Work State,Work ZIP,Work Country,Home Address,Home City,Home State,Home ZIP,Home Country,Birthday,Anniversary,Custom 1,Custom 2,Custom 3,Custom 4,Comments,Messenger ID1,Messenger ID2,Messenger ID3,Messenger ID4,Messenger ID5,Messenger ID6,Messenger ID7,Messenger ID8,Messenger ID9,Skype ID,IRC ID,ICQ ID,Google ID,MSN ID,AIM ID,QQ ID
Shahrukh,Mayur,Khan,srk,srk@bollywood.com,,,,,,,,,,,,,,,,,,,,,,,,,1/2/xxxx,,,,,,,,,,,,,,,,,,,,,,

Here is the contact.py Python script which then works on the CSV file called contactlist.csv with contents as shown above, and sends email to your email account. You might have to appropriately fix some of the fields in the script to get it to work. I present it here just as a hint.

import csv, datetime, re
from string import split
filename = “contactlist.csv”
warnZone = 8 #number of days before which email reminder should be sent

daysInMonth = ['31','28','31','30','31','30','31','31','30','31','30','31'];
def dayOfYear(month, day):
#print “%s %s” %(month, day)
doy = 0
for n in range(0,int(month)):
if(n == int(month)-1):
doy = doy+int(day)
return doy
else:
doy = doy+int(daysInMonth[n])

now = datetime.datetime.now()
today_month = now.strftime(“%m”)
today_day = now.strftime(“%d”)
today_doy = dayOfYear(today_month, today_day)
#print “%s %s %s” %(today_month, today_day, today_doy)

reader = csv.reader(open(filename))
content = “”
for row in reader:
firstname = (row[0])
middlename = (row[1])
lastname = (row[2])
anniversary = (row[30])
birthday = (row[29])
anni_split = anniversary.split(‘/’)
bday_split = birthday.split(‘/’)
#print “len anni_split %s” %(len(anni_split))
#print “len bday_split %s” %(len(bday_split))
if(len(anni_split)>1): #keeps “a/b/c, gets rid of “A”, as in 1st row
anni_month = anni_split[0]
anni_day = anni_split[1]
anni_doy = dayOfYear(anni_month, anni_day)
diff = anni_doy – today_doy
if((anni_doy >= today_doy and anni_doy <= today_doy + warnZone) or (anni_doy <= today_doy + warnZone – 365)):
# print “%s %s %s’s anniversary is on %s/%s” %(firstname, middlename, lastname, anni_month, anni_day)
content += firstname+” “+middlename+” “+lastname+”\’s anniversary is on “+anni_month+” “+anni_day+”\n”
if(len(bday_split)>1): #keeps “a/b/c, gets rid of “A”, as in 1st row
bday_month = bday_split[0]
bday_day = bday_split[1]
bday_doy = dayOfYear(bday_month, bday_day)
diff = bday_doy – today_doy
if((bday_doy >= today_doy and bday_doy <= today_doy + warnZone) or (bday_doy <= today_doy + warnZone – 365)):
# print “%s %s %s’s birthday is on %s/%s” %(firstname, middlename, lastname, anni_month, anni_day)
content += firstname+” “+middlename+” “+lastname+”\’s birthday is on “+bday_month+” “+bday_day+”\n”

#print “%s” %(content)

import smtplib
smtpserver = ‘mailserver.department.company.com’
AUTHREQUIRED = 0
RECIPIENTS = ['gol345die@gmail.com']
SENDER = ['con789vey@po.doc.com']
session = smtplib.SMTP(smtpserver)
smtpresult = session.sendmail(SENDER, RECIPIENTS, content)
if smtpresult:
errstr = “”
for recip in smtpresult.keys():
errstr = “”"Could not deliver mail to : %s Server said: %s %s %s”"” % (recip, smtpresult[recip][0], smtpresult[recip][1], errstr)
raise smtplib.SMTPException, errstr

Posted in Information, Tutorials | 2 Comments »

Hinduism: Professor Kishor Trivedi’s observations

November 6th, 2005 admin

Professor Kishor Trivedi of Duke University has written a wonderful introduction to what Hinduism is. His astute observations help a novice see the difference between ritual practices and the crux of this way of life. He carefully guides us through the various facets of this often nebulous concept, stringing together the various words we associate with Hinduism, providing perspective and scope. In spite of the amount of information, he never loses the reader, because of the reassuring obviousness and simplicity of the ideas he presents. Though not the main theme of the article, he also places the role of religion in context. With near clinical accuracy and the ease of a seasoned mathematician, he reasons that the contradictions and friction between the various named religions of the world are a reflection on human shortcoming when trying to come to grips with the vastness of this concept. I took permission from Professor Trivedi to provide his article here.

Dr. Kishore Trivedi’s article on Hinduism

Posted in Information, Philosophy | No Comments »

Travel Tips for parents (first timers) coming to the US

January 19th, 2005 admin

If you are inviting your parents/family/friends to come visit you in the US and this is their first trip, you might consider giving them some tips to ease their anxiety. I am presenting here the tips I provided my parents. Feel free to use this for your personal use, but make sure you appropriately modify the non-generic information according to your situation.

Dear Mom and Dad,

If you wish please keep a printout of this during travel so you can refer to it in case of doubt. Otherwise if you think you can remember the points I make, then no need to take a printout.
TRAVEL TO THE US IS PRETTY STRAIGHT FORWARD. YOU SHOULD HAVE NO TROUBLE. SO START THE TRIP WITH A RELAXED, PLEASANT MOOD.

Here are some tips I could think of now. If I think of more I will append those to this list.

AIRPORTS

Gates and Terminals:

Usually, airports have about 4-5 terminals and each terminal has 20-30 gates. So if the terminals are called A, B, C and D. The gates may be named A1, A2…A37, B1., B2 …B16 ..and so on. Gates are where you board the flight from. The ‘gate’ leads to the airplane door. The terminal is a general area of the airport catering usually to only a particular set of flights (say all international flights or all American Airline flights). A terminal, typically, has its own restarants, bookstores, coffee shops, phones, restrooms (toilets/urinals) etc.

Telephones in US airports:

There are three ways to call. Money, prepaid calling cards, collect calls. The telephones in the airport usually work when you put in 35 cents (a dollar is divided into 100 cents, just like a rupee is divided into 100 paise). This means put in a quarter and a dime or quarter and two nickels or some other combination to get you 35. A quarter is 25 cent coin. A dime is 10 cent coin and a nickel is a 5 cent coin. Another way to call from the phone booth is using what are called prepaid calling cards. These are what I use to call you from here. You have to dial an access number (which is free call on public phones) and then the PIN number. Once you do that you can enter the number you wish to call. So follow this method to call your US contact from the airport.
(The following is an example calling card that I had bought for my parents when they had come to the US. You may provide your guest similar information.)
-call the toll free access number: 1 800 146 3427
- it will say something in spanish, then will say press 2 to continue instructions in English.
- press 2
- enter the PIN number which is : 6347 5450 3783
- it will tell you how many dollars you have on the card and will ask you to then enter the number you wish to reach.
- you can try any of the following numbers at this point
-1 919 xxx xxxx (Anil Mobile – should be your first choice)
-1 919 xxx xxxx (Anil Office Phone)
-1 309 xxx xxxx (Kavita Mobile)
-1 309 xxx xxxx (Kavita Home)
-1 434 xxx xxxx (Anant Home – Anant will be with me, though, when you land in Detroit)
A third way to use the phone is to place a collect call. I suggest you try this if the calling-card method does not work. What you have to do here is – press 1 800 COLLECT on the phone. That is same as 1 800 2655228.
- an operator will pick up and ask you to say where you want to call and what your name is. Just give the number (say “9 1 9 2 6 4 7 4 8 6″ for calling my mobile) and say your name as “Kishore, K-I-S-H-O-R-E”. Spelling it out helps them, but it not necessary. The only reason the operator want to know your name is because he or she will call me and first say “Kishore wants to place a collect call…would you like to take it?” I can say “yes” and she will connect you to me. The charge for the call will go to my bill. It is that simple.

Restrooms:

In the airport, the restrooms will not have any water in the toilet stall. Toilet paper is the norm. There will be water at the wash basins of course. There are two things here. First is if you urgently need to use the toilet, there is no shame or lack of cleanliness in using toilet paper. Secondly, if possible use the restroom in the aeroplane itself because it has easy access to the washbasin (so you can keep a small plastic tumbler with you and use that as needed. Since the wash basin in the aeroplane restroom is in easy reach you can use as much water – indeed warm water – as you need)

Drinking water:

Usually right outside a restroom, you will see a “water fountain”. That is the name given to a device which throws a small parabola of water when a lever is pressed. You can either drink by bending and slurping the water in mid air or you can fill a cup/tumbler with that water first and using that.

Directions:

Airports have information booths where you can get any information you need. For example, if you are in Amsterdam and want to call me for some question, then you can ask some personnel about how to use the phone. If I remember right, Schiphol airport has detailed directions on the phones themselves. There are usually lots of easy to understand signs (English is normally always a language they are in). They will point you to transportation (Train symbol means a the train to take you from one terminal to another within an airport, Suitcase symbol means baggage claim etc.)

AEROPLANES

Temperature:

Usually the temperature is quite cold inside the aeroplane. They should provide you with a small pillow and a blanket to cover yourself. Use them.

Food:

Food service will be announced at the beginning of every leg of the journey. So they may announce that “On this flight there will be a dinner service followed by beverage service”. Simply eat whenever the food is served. Eat however much or little you want from what is served. Keep some light snacks in your carry-on luggage if you want to, in case you do not like what is served. They will normally not wake you up during food and beverage service if you are asleep. I think that is a good thing. You can ask for water, orange, apple or other juices anytime you want. But normally the beverage service is pretty good and regular. Beverage service also includes alcoholic drinks (free), juices, colas, tea and coffee. Coffee and tea come with separate creamer and sugar.

Sleep:

There will be periods of the flight where they show movies/other entertainment on either small screen TVs or large screen projections. You can listen to the audio by connecting the headphones to the socket on your seat. You can also listen to other music on other channels on the headphone. Then there will be a phase where lights will be dimmed and the constant hum of the aeroplane should put you to sleep. So that time try to get enough sleep. Infact I am not a big fan of the movies they show in the flight. I just try to sleep through them. The more you sleep the better for you.

Restrooms:

The restrooms are normally heavily used right after a meal or beverage service. So there are lines of people waiting to get in sometimes. So try to use the restrooms when the food service has not started or long after it is over and there is no rush. You can see the lines just by looking toward the restrooms. The closest restrooms could be to your front or back.

Form:

They will normally hand you a form to be filled in on the flight. This form I think is handed just before you land at the US. The form is for the Immigration and Customs to decide if you have declared something worth an inspection. You can simply say you do not have anything to declare. You need your passport numbers handy for filling out that form. In that case, you might have to stand up to bring down your suitcase from the overhead compartment or you could keep the passport number information written down someplace else so you can get to it easier. Also remember that disembark, deplane and alight all mean the same thing – getting off of the plane and stepping on land. Your port of disembarkation is Detroit.

CUSTOMS AND IMMIGRATION

At Detroit, you will have to go through Customs first and then Immigration. At Immigration you will be asked for you passport and then they will staple an I94 card – “Departure Record” to the passports. That card will say how long you are allowed to stay. You can tell the officer there that you would appreciate his letting you stay for 6 months and that you already have return tickets and that you also have health insurance for 6 months. Should not be any problem.

Posted in Information | No Comments »

Thinking about inviting parents over to the US?

May 2nd, 2004 admin

There are many websites that an intelligent Google search normally brings up, regarding information about inviting parents over to the US. I am doing my bit to add to the archives, my experience. There are many aspects to organizing the visit – air tickets, health insurance, shopping and, most importantly, the Visa. Your parents will need a visitors-Visa stamped on their passports at the US Consulate nearest them. At this time interviews are required for all travelers below 60, and in the case of my parents, my dad also took an interview to give company to my mom although he, being over 60, did not have to take one. It is a pretty painless process, with only routine questions asked. The main thing is to have all the necessary documents.
There are documents that I, being the host, sent to my parents. Then they had to get some more documents readied, before they had the total package required for the Visa. I will breifly describe the docementation I sent them. I will then list the additional documentation they carried on their own.

What I sent to my parents in December 2003 for their US visitors Visa. You will most likely need similar documentation:

1. Notarized affidavit of support (Form I 134). Notarized means a member of the “Notary Public” should attest the copy. You take it to them and sign it in front of them, show them your ID and they will sign it and place their stamp. This service was available to me from my bank.
2. Statement from your employer, on their business stationery, showing the following – Data and nature of your employment, Salary paid, whether position is permanent or temporary. (Example letter provided after this list)
3. Letter from your bank, on their business stationery, showing the following – date account opened, total amount deposited for the past year, present balance, average yearly balance. Note that if the bank cannot provide this precise information, similar information would be fine, for example, 6 monthly numbers instead of yearly numbers.
4. Copies of your last one or two bank statements. If you receive e-statements, then printouts of the last one or two such statements.
5. Letter from yourself, addressed to the US Consulate, mentioning that you will be taking care of your parents during their stay. (Example letter provided after this list)
6. Personal letter of invitation to your parents. (Example letter provided after this list)
7. Copies of recent pay stubs (one or two). If you get e-stubs then printouts of those would work fine too.
8. Copy of recent income tax returns. ( I put in both the Federal and State returns)
9. Copy of all pages of your passport, including blank pages.
10. Copy of your H-1B Visa approval notice (I 797)
I sent two copies of each of the above documents. One bundle for my father and one for my mother. I am not sure if this redundancy is an overkill, but at least this way no last minute photo-copying would be necessary.

The following are examples of some of the letters I mentioned in the above list:

Example: Personal letter of invitation to parents (two copies made, one for each parent)
Date:
From :
To:
Sub: Invitation to visit the USA
Dear Mother and Father,
I would like to invite both of you to the USA to stay with me for six months. It would be very nice to have you spend time with me.
During the course of stay we will visit various tourist places in the USA such as New York, Washington DC, Chicago, Niagara Falls and if possible Las Vegas, Disneyland and Florida. During your stay in the United States, I will bear all your responsibilities including, but not limited to, financial responsibilities, return air ticket fare to travel from India to USA and back, travel expenses within USA, medical insurance, housing and food. You will stay with me in my house located at the above-mentioned address. During your stay here you will also get an opportunity to see and experience the western culture, meet different kinds of people and taste different varieties of food. You will also enjoy the nice weather and the nice city I live in.
We would have a nice time together after a long time. So please begin planning for the trip. I am eagerly waiting for you to visit me.
Yours lovingly
XXX XXX
Example: Letter to the US Consulate General, for mother’s Visa (Similarly formatted letter for father required)
Date:
From:
To:
Re: Request for Tourist Visa for my mother, XXX XXX
Dear Madam/Sir,
This is to notify you that I am inviting my mother, Mrs XXX XXX to visit me in the United States of America for a pleasure trip. She will be with me in the US at the above-mentioned address for a maximum period of six months. I agree that I am willing and able to receive maintain and support her if necessary, guarantee that she will not be a public charge during her stay in the USA. During her visit I confirm that all her expenses related to living and medical insurance will be borne by me. She will maintain a non-immigrant status and will depart prior to the expiration of her authorized stay in the US. I am including herewith the following support documents.
1. Affidavit of support
2. Employment verification letter
3. Financial verification letter
4. Copies of my H1B visa approval notice and passport
My mother will apply for her tourist Visa at the US Consulate in Chennai, your co-operation and assistance is highly appreciated. If you need any further information, please do not hesitate to contact me, at the above-mentioned address.
Sincerely
XXX XXX
Example: Employer’s letter verifying employment and informing the consulate about mother’s visit. (Similarly formatted letter for father required)
Date:
To whom it may concern
Mr. XXX XXX is a regular employee of XXXX division at, address of employer. Mr. XXX XXX has been employed as XXX ( position), since XXX(date). While his mother, XXX XXX, is visiting the United States, XXX will assume all financial responsibility for her expenses.
XXX’s current salary is $XXX yearly.
Sincerely,
XXX XXX
(designation and address of HR Manager or your manager etc)

My parents also prepared the following documents.

1. Individual passports. These must be valid for travel to the U.S. for at least six months after the date of entry in to the U.S. My father tells me that a passport takes about 15 to 20 days in Visakhapatnam to arrive, after applying for it. There is an accelerated process to get the passport which takes about 2 to 3 days, but costs more. I am not going to detail the process of getting a passport here, but a cursory glance at the requirements for one, indicate the requirement of a birth certificate, a certificate of your education level, proof of name, name changes due to marriage and proof of residence.
2. A fully completed and signed Visa Application Form – DS-156. By fully completed, it is meant that all questions should be answered, with “none” or “nil” to indicate absence. Do not say n.a. Do not draw a line. Respond fully to each question. For example, No. 27 is “What is the purpose of your trip?” If you are going on a tourist visa to see your son who is working in Detroit, don’t just put “tourist” as an answer, put ” “going to visit son in Detroit”. If you are a student, don’t respond to “purpose of trip” with ” to study”, be specific – for example “going to study for B.E. degree at Louisiana State”. Provide details whenever it is useful.
3. All male applicants between the ages of 16 and 45 must also submit a fully completed and signed Supplemental Application Form DS-157. My dad did not require this form.
4. Passport size photograph, 2 inches X 2 inches with a white or off-white background. The photograph should be recent (less than 6 months old). If you wear spectacles, there should be no glare. My parents simply too off their spectacles. This is a picture of the head primarily, not the bust. The head (top of the hair to the bottom of the chin should measure 1 to 1 3/8 inches. Stick to a white background.
5. Demand Drafts for the fees. The fees for my parents were as follows. Visa Application fee (non-refundable, meaning you will not get it back even if your Visa is declined) was Rs. 4600. Visa Issuance fee (not to be paid if the Visa is declined) was Rs. 2300. Courier fee (paid to TT Services to courier back the documents and stamped passport back to your permanent address) was Rs. 400. The Demand Drafts should be drawn on a nationalized or international bank. My parents used the UCO Bank. But banks like State Bank of India, Andhra Bank, Syndicate Bank, Punjab National Bank would work. The DDs were payable to “American Consulate General, Chennai”. The Courier fees of Rs. 400 was made payable to “T.T. Services”. The name and Passport number of the payer should be mentioned on the back of each DD.
Important: Please write your complete name and passport number on the back of each draft.
6. Movable and immovable property value estimates prepared by a Charterd Accountant. This is basically to prove to the Consulate Office that there is enough property that my parents own in India to make them return after the trip to the USA.
7. Copies of income tax returns for the last three years. In this case since only my father was the earning member he had to take these documents.
The Visa forms DS 156 and DS 157 are available at http://travel.state.gov/visaforms.html
More information about the consulates are available at the US Embassy website http://newdelhi.usembassy.gov/ . From here you can navigate to the websites of the three consulates in Chennai, Mumbai and Kolkata.

Parents’ Experience

If the applicant is above 60 years of age, the interview appointment is not required. He or she may simply post all these documents to the T.T. Services. More information about T. T. Serives can be found in this webpage http://www.ttsvisas.com . Infact there are travel agencies in most indian cities, that make it even simpler by taking care of this process and making sure that you have all the required documents. They charge about Rs. 800 per person for their services. In the case of my parents, since they would have to go Chennai anyway, since my mother would have to appear for an interview, my dad chose to go along with her and present the documents directly at the Consulate. So they did not post the documents and they did not use the services of a travel agency. They did get some suggestions from Frontline travels in Visakhapatnam regarding the documents they would need, but this was done without charge to my parents. I really appreciate their foresight and goodwill. They landed a good deal since I chose them to provide air tickets for my parents visit. Anyway, so my parents set up an appointment for an interview online at the T. T. Services website. They could see the available slots and they chose one based on their convenience. They needed to take a printout of the appointment showing the date and time. This would be proof that you have arrived at the right time for the interview. Then it was a matter of reaching the Consulate about 1 hour ahead of the slated interview time. Outside the Consulate, there was a T. T. Services counter. The personnel there checked all the documents. They stamped a “Checked” mark on the interview date/time appointment printout that they were carrying. Then they were allowed to enter the embassy. Inside, they first paid the Courier Fee DD at another T. T. Services counter. Then they stuck some numbered stickers on the passports. Then the next counter accepted the Visa Application fee DD and a receipt/a card was handed back. This card contained the interview call number. At that same counter all the documents were taken, checked and a file was made with the required documents and the remaining documents are returned. Then my parents went into an interview hall with 7 or 8 counters. They waited for about 30 minutes (since they were a little early), before their file numbers were called. File number refers to the numbered card which they received at the counter before entering the waiting hall. The interview itself was for about 5-10 minutes, and was together for my father and mother. The questions asked were
“What is the purpose of your trip?” – they said something like, “To visit our son and see the US.”.
“Who is going to take care of you during your stay?” – they said something like, “Our son will.”.
“How many days do you intend to stay in the US with your son?”, – they said something like, “We intend to stay for about six months”.
“Is there anyone else in the US who you know?” – to which they replied, “Yes, our younger son, who is studying at University of Virginia, and lot of friends”.
“What property do you have in India?” – at which point my father showed the officer the documents he had prepared for this.
“Do you have any other commitments here in India, like dependents?” – for which my father replied that his mother-in-law, who is quite old, was staying with them, and for who they have been able to arrange caretakers for this period.
My mother was specifically asked, “So when did you last see your sons?”, “Do you have any other children in India?”. That was all. Then the officer said that their Visa would be sanctioned, and asked them to pay the Issuance fee at the appropriate counter down the same hall.
After about 2 days they received the Passports with the stamped Visa at Visakhapatnam. The Visa was issued as a multiple-entry Visa valid for 6 months. The next time they apply for a Visa I am hoping they get a 10-year multiple-entry Visa.

Posted in Information | No Comments »