Tuesday, 7 April 2015

UDP

UDP (user datagram protocol) is a simple protocol. It provides no reliability, i.e. it sends the datagrams that the application writes to the IP layer, but there is no guarantee that they ever reach their destination. Services offered by UDP are:
1. IP
2. Port numbers
3. Optional checksum

Fields:
1. Source port
2. Destination port
3. Length field
4. Checksum

UDP checksum covers the UDP header and the UDP data. With UDP checksum is optional, while with TCP it is mandatory.

Monday, 30 March 2015

Dynamic routing protocols

Static routing is used :
1. if network is small
2. if there is a single connection point to other networks
3. if there are no redundant routes
Dynamic routing is used :
if any one of above conditions fail.
Under dynamic routing, routers communicate to each other, informing each other about the networks, they are currently connected to. Routers communicate with other routers within an autonomous system via. interior gateway protocols (IGPs). Router from one autonomous system communicate with router in other autonomous systems via. exterior gateway protocols (EGPs).

Interior Gateway Protocol

Routing Information Protocol (RIP)
It is a distance vector protocol. i.e. messages sent by RIP contain 'a vector of distances' or 'hop counts' . Each router updates its routing table after receiving hop counts from its neighbour router.

Open Shortest Path First (OSPF)
It is a newer alternative to RIP. It is a link state protocol. It does not exchange vector distances with its neighbours. Each router tests status of its link with neighbour routers and prepares its routing table.

Exterior Gateway Protocol

Border Gateway Protocol (BGP)
Works with routers belonging to two different autonomous systems. It exchanges network reachability information. That is, the full path from one network to other.

Thursday, 26 March 2015

IP routing

A datagram is generated by either a localhost or any other host. When this datagram seems to generate from any host other than localhost, then the host may work as a router. These hosts contain routing tables which help route datagrams. When any datagram is received by a host and not belong to it, gets dropped (silently discarded). This routing of datagram done by host as router is IP routing. Lets see how routing is done.
IP routing:
A datagram is either generated or forwarded by a system. A search for routing table is done for this generated datagram. This table is updated by either a routing daemon or ICMP redirects. Static routes can be entered by using the route command. ICMP redirects updates routing table dynamically.

Saturday, 21 March 2015

Traceroute Program

The Traceroute program was written by Van Jacobson. When an IP datagram moves from one host to another, Traceroute program lets us see the route that IP datagram follows. It is not always true that two consecutive IP datagrams follow the same route when they move from the same source to the same destination but most of the time they follow the same route. We can be aware of this with Traceroute program.
Operation of Traceroute program:
This program send UDP datagrams starting with a TTL (time to live) of 1. This TTL with value 1 finds a router and gets destroyed returning 'ICMP time exceeded' error. Now another datagram with TTL 2 is sent. It lives till it encounters 2 routers returning same error. Now another TTL with value 3 is sent. Thus each time the TTL is increased by 1, to locate each router in the path. An 'ICMP time exceeded' is returned by each router when it discards the UDP datagram, and an 'ICMP port unreachable' is generated by the final destination.

Thursday, 19 March 2015

Ping Program

The Ping program was written by Mike Muss. Ping program tests the connectivity between two systems running TCP/ IP. With it one host may test whether another host is reachable. It uses  the ICMP echo request and echo reply messages. The program sends an ICMP echo request message to a host, expecting an ICMP echo reply to be returned. Thus, connectivity is confirmed.

Uses of ping:
1. To measure round trip time to the host.
2. To examine and use the IP record route option.
3. To examine the IP timestamp option.