Posts

Internet Routing Protocols

Image
Internet Routing Fundamentals Routers Routers are devices which make it possible to "choose" the path that datagrams will take to arrive at the destination.   They are machines with several network interface cards each one of which is linked to a different network. So, in the simplest configuration, the router only has to "look at" what network a computer is located on to send datagrams to it from the originator. However, on the Internet the schema is much more complicated for the following reasons: ·          The number of networks to which a router is connected is generally large ·          The networks to which the router is linked can be linked to other networks that the router cannot see directly So, routers work using routing tables and protocols, according to the following model: ·          The router receives a frame from a machine co...

Internet Group Management Protocols

Image
Internet Group Management Protocol The Internet Group Management Protocol (IGMP) is a communications protocol used by hosts and adjacent routers on IP networks to establish multicast group memberships. IGMP is an integral part of the IP multicast specification. It is analogous to ICMP for unicast connections. IGMP can be used for online streaming video and gaming , and allows more efficient use of resources when supporting these types of applications. IGMP is used on IPv4 networks. Multicast management on IPv6 networks is handled by Multicast Listener Discovery (MLD) which uses ICMPv6 messaging in contrast to IGMP's bare IP encapsulation. Architecture A network designed to deliver a multicast service using IGMP might use this basic architecture: IGMP operates between the client computer and a local multicast router. Switches featuring IGMP snooping derive useful information by observing these IGMP transactions. Protocol Independent Multicast (PIM...

Prefix decrement example

class Operators {     public static void main(String[] args) {         byte a = 2;         byte b = --a;                 System.out.println("a = " + a + ", b = " + b);     } } In the same way you can check for prefix and postfix increment operators.

Postfix decrement Example

class Operators {     public static void main(String[] args) {         byte a = 2;         byte b = a--;                 System.out.println("a = " + a + ", b = " + b);     } }

Use of datatypes-III

class Boolean {     public static void main(String[] args) {         boolean b = true;                 System.out.println(b);     } }

Use of datatypes-II

class Char {     public static void main(String[] args) {         char a = 'A';         char b = 'B';                 System.out.println((char)99);     } }

Use of datatypes - I

class Byte {     public static void main(String[] args) {         byte b = 128;         System.out.println(b);     } }