AMAZON

Showing posts with label wireless. Show all posts
Showing posts with label wireless. Show all posts

Sunday, September 23, 2012

How to set up a wireless network (PC to PC) without a router

Select Start menu --> control Panel and then the control menus pop up appears




Wireless networks are helpful because they let you use your computer and connect to the Internet anywhere in your home or office. However, most wireless networks use a wireless router, which can be expensive. If you have more than one computer, you can set up a wireless network without buying a wireless router and save yourself some money.


In a traditional wireless network, a wireless router acts as a base station, much like the base station for cordless phones. All wireless communications go through the wireless router, allowing nearby computers to connect to the Internet or to each other.

Ad hoc wireless networks work more like walkie-talkies, because the computers communicate directly with each other. By enabling Internet Connection Sharing on one of the computers, you can share Internet access.


Ad hoc networking might seem like a much smarter alternative to using a wireless router, but it does have a couple of disadvantages:
•
If the computer connected to the Internet is shut down, all computers that are part of the ad hoc network lose their Internet access.
•
To connect to the Internet, one computer always needs a wired network connection.

To connect your computers to the Internet using an ad hoc wireless network, follow these high-level steps (described in more detail later in this article):

1.
Enable Internet Connection Sharing on the Internet-connected computer. You can skip this step if you don't need to access the Web.
2.
3.

How to enable Internet Connection Sharing
On networks with wireless routers, the router has the important job of forwarding communications from the computers on your home network to the Internet. On ad hoc networks, you must designate one computer to serve this role. The computer you choose must have a wired connection to the Internet, and it should be left on whenever you want to be able to use your other computers.

Procedure to set up the first(Main) computer
To set up an ad hoc wireless network that allows computers to share an Internet connection without a router  the procedure is :-
1.
2.
Click Start, and then click Control Panel.
3.
Under Pick a category, click Network and Internet Connections.

4.
Under or pick a Control Panel icon, click Network Connections.

5.
Right-click your wireless network connection, and then click Properties.

6.
In the Wireless Network Connection Properties dialog box, click the Wireless Networks tab.

7.
On the Wireless Networks tab, under Preferred networks, click Add.

8.
In the Wireless network properties dialog box, on the Association tab, type the name of your ad hoc wireless network in Network name (SSID) box (shown in step 10). For example, you could name your wireless network MyHomeNetwork.
9.
Clear the The key is provided for me automatically check box and select the This is a computer-to-computer (ad hoc) network check box.
10.
Create a 13-digit password and type it in both the Network key and Confirm network key boxes. For the best security, include letters, numbers, and punctuation. Then click OK.

11.
Click OK again to save your changes.



How to set up additional computers
If the computer you want to add to your network does not have built-in wireless network support, install a wireless network adapter.
Windows XP automatically detects the new adapter and notifies you that it found a wireless network.

Now connect your computer to your wireless network
Note: These steps apply only if you're using Windows XP Service Pack 2 (SP2). If you haven't installed SP2, visit Microsoft Update to install it before connecting to the ad hoc network.

1.
Right-click the Wireless Network icon in the lower right corner of your screen, and then click View Available Wireless Networks.

2.
The Wireless Network Connection window appears and displays your wireless network listed with the SSID you chose. If you don't see your network, click Refresh Network List in the upper left corner. Click your network, and then click Connect in the lower right corner.

3.
Windows XP prompts you to enter a key. Type your encryption key in both the Network key and Confirm network key boxes, and then click Connect.


Windows XP shows its progress as it connects to your network. After you're connected, you can close the Wireless Network Connection window.
Repeat these three steps on each computer that you want to connect to your ad hoc wireless network.
Now you're ready to browse the Web wirelessly, from any computer you add to your home network.

Thursday, July 12, 2012

How To Install ns3 on linux in ubuntu, fedora, linux?


we will see how to install ns3 on linux box. The home page of ns3 is NS3 Home
the current release is ns3.10 (January 5, 2011) and can be downloaded from DOWNLOAD NS3.10

Step 1: Download ns3.10 and save it some where , but on the same machine where you want to install (Just Kidding :) )
Step 2: open the terminal and go to the folder where ns3.10 tar file is.
Step 3: from the terminal run :
$tar -xvf ns-allinone-3.10.tar.bz2
$cd ns-allinone-3.10
$./build.py
you can provide some options to build.py but as a newbie use the default one :)
When the build process get over (it will take some time), type
$cd ns-3.10
and now we will validate our installation
$./test.py
the out put of this will be some thing like this:
Waf: Entering directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
Waf: Leaving directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
‘build’ finished successfully (2.010s)
PASS: TestSuite lte-bearer
PASS: TestSuite lte-propagation-loss-model
PASS: TestSuite wimax-fragmentation
PASS: TestSuite lte-phy
…………..
PASS: Example examples/tcp/tcp-nsc-lfn
PASS: Example examples/wireless/wifi-ap.py
PASS: Example src/contrib/flow-monitor/examples/wifi-olsr-flowmon.py
168 of 168 tests passed (168 passed, 0 skipped, 0 failed, 0 crashed, 0 valgrind errors)
Step 4:  Now our ns3 is installed and ready to run sample programs.
right now we are in directory “ns-3.10″
from terminal :

$ cp examples/tutorial/first.cc scratch/myfirst.cc
$./waf
this time waf will give some thing like this:
Waf: Entering directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
Waf: Leaving directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
‘build’ finished successfully (15.900s)
Step 5: now it is the time to run the simulation
$ ./waf –run myfirst
Waf: Entering directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
Waf: Leaving directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
‘build’ finished successfully (1.353s)
Sent 1024 bytes to 10.1.1.2
Received 1024 bytes from 10.1.1.1
Received 1024 bytes from 10.1.1.2
Congratulations !! NS3 is installed and running successfully.
Lets try some other example.
Again go to the terminal and type
$cp examples/wireless/ofdm-validation.cc scratch/myofdm.cc
$./waf
out put will be:
Waf: Entering directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
[1330/1502] cxx: scratch/myofdm.cc -> build/debug/scratch/myofdm_2.o
[1500/1502] cxx_link: build/debug/scratch/myofdm_2.o -> build/debug/scratch/myofdm
Waf: Leaving directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
‘build’ finished successfully (5.842s)
now run the simulation:
$ ./waf –run myofdm
this time output will be:
Waf: Entering directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
Waf: Leaving directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
‘build’ finished successfully (1.448s)
OfdmRate6Mbps
OfdmRate9Mbps
OfdmRate12Mbps
OfdmRate18Mbps
OfdmRate24Mbps
OfdmRate36Mbps
OfdmRate48Mbps
OfdmRate54Mbps
So, this way you can try different examples, and get an introduction of ns3.
Note: As I am using Fedora 14 Complete Installation, I have not feel the need to resolve the dependencies, but if you will come across any error then please make me know, so that I will extend the post to cover the dependencies problems, and to other distributions also like ubuntu etc.
Enjoy Ns3 , soon, I will come back with tutorials on ns3 and dependencies resolution for ns3 (only if some will mention the errors