29 April 2011

Transparent Inter Process Communication (TIPC) protocol

TCP Disadvantage
- heavy connection setup/shutdown scheme of TCP is a disadvantage in a dynamic environment. The minimum number of packets exchanged for even the shortest TCP transaction is nine, while with TIPC this can be reduced to two, or even to one if connectionless mode is used
- The connection-oriented nature of TCP makes it impossible to support true multicast



TIPC Important design assumptions
- most messages cross only one direct hop
- security is a less crucial issue in closed clusters

TIPC Advantage
- fast link failure detection
--> Link setup - A TIPC node periodically broadcasts Link Request messages on all configured media interfaces. If such a message is received by a node with no prior established link to the sending node, it replies with a unicast Link Response message. This establishes a Link between those two nodes.
--> Link continuity check - A background timer is maintained for each link. When a certain amount of time is passed without regular incoming traffic, a message is sent over the link to indicate to the counterpart that the link is still up. This message also contains an acknowledge for the last received Link Level Sequence Number, in order to allow the receiver to release sent packet buffers, and a Last Sent Sequence Number, allowing the receiver to detect gaps in the packet sequence. The continuity check mechanism allows rapid detection of communication media failure, or node crashes.
- reliable multicast service
- full address transparency over the whole cluster
--> A TIPC address is written in the form <zone.cluster.node>, i.e. the address <1.2.3> identifies node number 3 inside cluster 2 in zone 1
--> The TIPC stack uses a functional addressing (port names) scheme. Port names are unique and valid among the whole cluster, an application may connect to this "port name"
- for both connectionless and -oriented message flows, packet or byte-stream order is maintained from the receiving application's point of view.
- fixed-size sliding window protocol
--> flow control - congestion control - is performed only for connection oriented connection

UDP - Connectionless, Unreliable, Not ordered, No congestion control

TIPC - Connectionless, reliable, ordered, No congestion control
TIPC - Connection-oriented, reliable, ordered, congestion control

Fragmentation/Defragmentation
Congestion Control
Sequence/Retransmission Control

struct sockaddr_tipc {
unsigned short family;
unsigned char addrtype;
signed char scope;
union {
struct tipc_portid id;
struct tipc_name_seq nameseq;
struct {
struct tipc_name name;
__u32 domain;
} name;
} addr;
};

struct tipc_name {
__u32 type;
__u32 instance;
};

/* Build socket address */
addr.family = AF_TIPC;
addr.addrtype = TIPC_ADDR_NAME;
addr.addr.name.name.type = IPC_TIPC_ADDR_TYPE;
addr.addr.name.name.instance = svcIndex;
addr.addr.name.domain = 0;
addr.scope = TIPC_ZONE_SCOPE;

Reference:
http://en.wikipedia.org/wiki/TIPC
FlorianWestphalTIPCAusarbeitung.pdf
http://www.strlen.de/tipc/
http://tipc.sourceforge.net/doc/draft-spec-tipc-07.html
http://ealnet2010a.wordpress.com/2011/02/11/tcp-vs-udp/
http://tipc.sourceforge.net/doc/Programmers_Guide.txt

06 April 2011

Login as a root from GUI Fedora 14

Update the following files:
vim /etc/pam.d/gdm
#auth required pam_succeed_if.so user != root quiet

vim /etc/pam.d/gdm-password
#auth required pam_succeed_if.so user != root quiet
Log out of that account and login in as root using the "Other" option. You will get some long winded alert about how it is not secure to use the root account, just close and you are in!

Reference:
http://blog.ask4itsolutions.com/2010/11/03/login-as-a-root-from-gui-fedora-14/
http://www.liberiangeek.net/2010/12/how-to-login-as-root-in-fedora-14-laughlin/

04 April 2011

3G, GPRS Internet connection via PC Suite

I have Nokia 5320 and i want to take 3G or GPRS internet.

Connect your phone to computer either via Bluetooth or Data cable
Bluetooth:
--> Install the PC suite software.
--> Pair mobile handset with your PC or Laptop via the Bluetooth program
--> Click on “Connect to the Internet” icon from the PC Suite programs.

Cable:
--> Install the PC suite software.
--> Connect mobile handset with your PC or Laptop via the USB cable.
--> Click on “Connect to the Internet” icon from the PC Suite Program.
For more info on DOCOMO 3G, SMS "3Glife" to 53333
WWW Services
-APN: TATA.DOCOMO.INTERNET
-Username
-Password

WAP Services
-APN: TATA.DOCOMO.DIVE.IN
-Username
-Password
-PROXY: 10.124.94.7:8080


http://www.tatadocomo.com/3g-plans.aspx
http://www.tatadocomo.com/3g-hspa-e-stick.aspx



Reference:
http://techbrail.com/connect-your-nokia-3120-classic-to-3g-gprs-internet-connection-via-pc-suite/209
http://www.mostlyblog.com/tata-docomo-gprs-settings-tata-docomo-gprs-settings-for-pc-and-laptop

03 April 2011

Search for best 3G phone in india

I am looking for best 3G phone in india.

My range is 5,000/- to 15,000/-.

Other requirements:
1. Radio
2. moderate quality camera.
3. 1-4GB memory
4. music keys
5. And very gud battery backup

http://www.nokia.co.in/find-products/products