Showing posts with label ccna tutorial. Show all posts
Showing posts with label ccna tutorial. Show all posts

Monday, October 11, 2010

OSPF Routing Fundamentals

0 nhận xét


OSPF stands for Open Shortest Path First.
Definition: OSPF is a routing protocol used to determine the best route for delivering the packets within an IP networks. It was published by the IETF to serve as an Interior Gateway Protocol replacing RIP. The OSPF specification is published as Request For Comments (RFC) 1247.
Note that OSPF is a link-state routing protocol, whereas RIP and IGRP are distance-vector routing protocols. Routers running the distance-vector algorithm send all or a portion of their routing tables in routing-update messages to their neighbors.
OSPF sends link-state advertisements (LSAs) to all other routers within the same area. Information on attached interfaces, metrics used, and other variables is included in OSPF LSAs. OSPF routers  use the SPF (Shortest Path First) algorithm to calculate the shortest path to each node. SPF algorithm is also known as Dijkstra algorithm.

Advantages of OSPF

  • OSPF is an open standard, not related to any particular vendor.
  • OSPF is hierarchical routing protocol, using area 0 (Autonomous System) at the top of the hierarchy.
  • OSPF uses Link State Algorithm, and an OSPF network diameter can be much larger than that of RIP.
  • OSPF supports Variable Length Subnet Masks (VLSM), resulting in efficient use of networking resources.
  • OSPF uses multicasting within areas.
  • After initialization, OSPF only sends updates on routing table sections which have changed, it does not send the entire routing table, which in turn conserves network bandwidth.
  • Using areas, OSPF networks can be logically segmented to improve administration, and decrease the size of routing tables. 

Disadvantages of OSPF:

  • OSPF is very processor intensive due to implementation of SPF algorithm. OSPF maintains multiple copies of routing information, increasing the amount of memory needed.
  • OSPF is a more complex protocol to implement compared to RIP.

OSPF Networking Hierarchy:

As mentioned earlier, OSPF is a hierarchical routing protocol. It enables better administration and smaller routing tables due to segmentation of entire network into smaller areas. OSPF consists of a backbone (Area 0) network that links all other smaller areas within the hierarchy. The following are the important components of an OSPF network:
  • Areas
  • Area Border Routers
  • Backbone Areas
  • AS Boundary Routers
  • Stub Areas
  • Not-So-Stubby Areas
  • Totally Stubby Area
  • Transit Areas

ABR: Area Border Router
ASBR: Autonomous System Boundary Router


Areas: An area consists of routers that have been administratively grouped together. Usually, an area as a collection of contiguous IP subnetted networks. Routers that are totally within an area are called internal routers. All interfaces on internal routers are directly connected to networks within the area.
Within an area, all routers have identical topological databases.
Area Border Routers: Routers that belong to more than one area are called area border routers (ABRs). ABRs maintain a separate topological database for each area to which they are connected.
Backbone Area: An OSPF backbone area consists of all routers in area  0, and all area border routers (ABRs).  The backbone distributes routing information between different areas. 
AS Boundary Routers (ASBRs): Routers that exchange routing information with routers in other Autonomous Systems are called ASBRs. They advertise externally learned routes throughout the AS.
Stub Areas: Stub areas are areas that do not propagate AS external advertisements. By not propagating AS external advertisements,  the size of the topological databases is reduced on the internal routers of a stub area. This in turn reduces the processing power and the memory requirements of the internal routers.


Not-So-Stubby Areas (NSSA): An OSPF stub area has no external routes in it. A NSSA allows external routes to be flooded within the area. These routes are then leaked into other areas. This is useful when you have a non-OSPF router connected to an ASBR of a NSSA. The routes are imported, and flooded throughout the area. However, external routes from other areas still do not enter the NSSA.


Totally Stubby Area: Only default summary route is allowed in Totally Stubby Area.
Transit Areas: Transit areas are used to pass traffic from an adjacent area to the backbone. The traffic does not originate in, nor is it destined for, the transit area.

Link State Advertisements (LSAs):

It is important to know different Link State Advertisements (LSAs) offered by OSPF protocol.
Type 1: Router link advertisements generated by each router for each area it belongs to. Type 1 LSAs are flooded to a single area only.
Type 2: Network link advertisements generated by designated routers (DRs) giving the set of routers attached to a particular network. Type 2 LSAs are flooded to the area that contains the network.
Type 3/4: These are summary link advertisements generated by ABRs describing inter-area routes. Type 3 describes routes to networks and is used for summarization. Type 4 describes routes to the ASBR.
Type 5: Generated by the ASBR and provides links external to the Autonomous System (AS). Type 5 LSAs are flooded to all areas except stub areas and totally stubby areas.
Type 6: Group membership link entry generated by multicast OSPF routers.
Type 7: NSSA external routes generated by ASBR. Only flooded to the NSSA. The ABR converts LSA type 7 into LSA type 5 before flooding them into the backbone (area 0).
Area
Restriction
Normal
None
Stub
Type 5 AS-external LSA NOT allowed
NSSA
Type 5 AS-external LSAs are NOT allowed, but Type 7 LSAs that convert to Type 5 at the NSSA ABR can traverse
Totally Stubby
Type 3, 4 or 5 LSAs are NOT allowed except the default summary route
more.

Friday, October 8, 2010

The Cisco Three-Layered Hierarchical Model

0 nhận xét

Cisco has defined a hierarchical model known as the hierarchical internetworking model. This model simplifies the task of building a reliable, scalable, and less expensive hierarchical internetwork because rather than focusing on packet construction, it focuses on the three functional areas, or layers, of your network:

Core layer: This layer is considered the backbone of the network and includes the high-end switches and high-speed cables such as fiber cables. This layer of the network does not route traffic at the LAN. In addition, no packet manipulation is done by devices in this layer. Rather, this layer is concerned with speed and ensures reliable delivery of packets.

Distribution layer: This layer includes LAN-based routers and layer 3 switches. This layer ensures that packets are properly routed between subnets and VLANs in your enterprise. This layer is also called the Workgroup layer.

Access layer: This layer includes hubs and switches. This layer is also called the desktop layer because it focuses on connecting client nodes, such as workstations to the network. This layer ensures that packets are delivered to end user computers.

Figure INT.2.1 displays the three layers of the Cisco hierarchical model.
Cisco hierarchical models

When you implement these layers, each layer might comprise more than two devices or a single device might function across multiple layers.The benefits of the Cisco hierarchical model include:


  • High Performance: You can design high performance networks, where only certain layers are susceptible to congestion.
  • Efficient management & troubleshooting: Allows you to efficiently organize network management and isolate causes of network trouble.
  • Policy creation: You can easily create policies and specify filters and rules.
  • Scalability: You can grow the network easily by dividing your network into functional areas.
  • Behavior prediction: When planning or managing a network, the model allows you determine what will happen to the network when new stresses are placed on it.

Core Layer

The core layer is responsible for fast and reliable transportation of data across a network. The core layer is often known as the backbone or foundation network because all other layers rely upon it. Its purpose is to reduce the latency time in the delivery of packets. The factors to be considered while designing devices to be used in the core layer are:
  • High data transfer rate: Speed is important at the core layer. One way that core networks enable high data transfer rates is through load sharing, where traffic can travel through multiple network connection
  •  Low latency period: The core layer typically uses high-speed low latency circuits which only forward packets and do not enforcing policy.
  •  High reliability: Multiple data paths ensure high network fault tolerance; if one path experiences a problem, then the device can quickly discover a new route.
At the core layer, efficiency is the key term. Fewer and faster systems create a more efficient backbone. There are various equipments available for the core layer. Examples of core layer Cisco equipment include:


  • Cisco switches such as 7000, 7200, 7500, and 12000 (for WAN use)




  • Catalyst switches such as 6000, 5000, and 4000 (for LAN use)




  • T-1 and E-1 lines, Frame relay connections, ATM networks, Switched Multimegabit Data Service (SMDS)

    Distribution Layer

    The distribution layer is responsible for routing. It also provides policy-based network connectivity, including:
    • Packet filtering (firewalling): Processes packets and regulates the transmission of packets based on its source and destination information to create network borders.
    • QoS: The router or layer 3 switches can read packets and prioritize delivery, based on policies you set.
    • Access Layer Aggregation Point: The layer serves the aggregation point for the desktop layer switches.
    • Control Broadcast and Multicast: The layer serves as the boundary for broadcast and multicast domains.
    • Application Gateways: The layer allows you to create protocol gateways to and from different network architectures.
    • The distribution layer also performs queuing and provides packet manipulation of the network traffic.
    It is at this layer where you begin to exert control over network transmissions, including what comes in and what goes out of the network. You will also limit and create broadcast domains, create virtual LANs, if necessary, and conduct various management tasks, including obtaining route summaries. In a route summary, you consolidate traffic from many subnets into a core network connection. In Cisco routers, the command to obtain a routing summary is:

    show ip route summary

    You can practice viewing routing information using a free CCNA exam router simulator available from SemSim.com. You can also determine how routers update each other’s routing tables by choosing specific routing protocols.

    Examples of Cisco-specific distribution layer equipment include 2600,4000, 4500 series routers

    Access Layer

    The access layer contains devices that allow workgroups and users to use the services provided by the distribution and core layers. In the access layer, you have the ability to expand or contract collision domains using a repeater, hub, or standard switch. In regards to the access layer, a switch is not a high-powered device, such as those found at the core layer.



  •  High reliability: Multiple data paths ensure high network fault tolerance; if one path experiences a problem, then the device can quickly discover a new route.
    more.

    RIP Routing Fundamentals

    0 nhận xét



    RIP stands for Routing Information Protocol.
    RIP is a dynamic, distance vector routing protocol and was developed for smaller IP based networks. As mentioned earlier, RIP calculates the best route based on hop count.
    There are currently two versions of RIP protocol.
    • RIPv1, and
    • RIPv2
    RIPv1: RIP version 1 is among the oldest protocols.
    Limitations of RIPv1:
    1. Hop Count Limit: Destination that is more than 15 hops away is considered unreachable by RIPv1.
    2. Classful Routing Only: RIP is a classful routing protocol. RIPv1 doesn't support classless routing. RIP v1 advertises all networks it knows as classful networks, so it is not possible to subnet a network using RIP v1.
    3. Metric limitation: The best route in RIP is determined by counting the number of hops required to reach the destination. A lower hop count route is always preferred over a higher hop count route. One disadvantage of using hop count as metric is that if there is a route with one additional hop, but with significantly higher bandwidth, the route with smaller bandwidth is taken. This is illustrated in the figure below:

    The RIP routed packets take the path through 56KBPS link since the destination can be reached in one hop. Though, the alternative provides a minimum bandwidth of 1MBPS (though using two links of 1MBPS, and 2MBPS each), it represents 2 hops and not preferred by the RIP protocol.


    Features of RIP v2:

    RIP v2 is a revised version of its predecessor RIP v1. The following are the important feature enhancements provided in RIPv2:
    1. RIPv2 packets carry the subnet mask in each route entry, making RIPv2 a classless routing protocol. It  provides support for variable-length subnet masking (VLSM) and classless addressing (CIDR).
    2. Next Hop Specification: In RIPv2, each RIP entry includes a space where an explicit IP address can be entered as the next hop router for datagrams intended for the network in that entry.
    For example, this field can be used when the most efficient route to a network is through a router that is not running RIP. Since, that a router will not exchange RIP messages, explicit Next Hop field allows the router to be selected as the next hop router.

    3. Authentication: RIPv1 does not support authentication. This loophole may be used maliciously by hackers, that may resulting in delivering the data packets to a fictitious destination as determined by the hacker. RIPv2 provides a basic authentication scheme, so that a router can accept RIP messages from a neighboring router only after ascertaining its authenticity.
    4. Route Tag: Each RIPv2 entry includes a Route Tag field, where additional information about a route can be stored. It provides a method for distinguishing between internal routes (learned by RIP) and external routes (learned from other protocols).

    Limitations of RIP v2:

    One of the biggest limitations of RIPv1 still remains with RIPv2. It is hop count limitation, and metric. The hop count of 16 still remains as unreachable, and the metric still remains hop count. A smaller hop count limits the network diameter, that is the number of routers that can participate in the RIP network.
    Example Question:
    While the packet travels from source to destination through an Internetwork, which of the following statements are true? (Choose 2 best answers).
    A. The source and destination hardware (interface) addresses change
    B. The source and destination hardware (interface) addresses remain constant.
    C. The source and destination IP addresses change
    D. The source and destination IP addresses remain constant.
    Ans. A, D
    Explanation: While a packet travels through an Internetwork, it usually involves multiple hops. It is important to know that the logical address (IP address) of the source (that created the packet) and destination (final intended destination) remain constant, whereas the hardware (interface) addresses change with each hop.
    more.

    Tuesday, October 5, 2010

    Routing Fundamentals

    2 nhận xét

    When IP packets travel over the Internet, routing information is exchanged between the devices that control the flow of information over the Internet. These devices are known as routers, and they use the IP address as the basis for controlling the traffic. These devices need to talk the same language to function properly, though they belong to different administrative domains. For example, one router may be in Newyork(US), and the receiving router may be in London (UK). It is necessary that a routing protocol is followed for smooth flow of traffic. Given below are the widely used routing protocols for routing Internet traffic:
    • RIP v1
    • RIP v2
    • OSPF
    • IGRP
    • EIGRP
    • BGP
    Notations used: Routing Information Protocol (RIP), Open Shortest Path First (OSPF), Interior Gateway Routing Protocol (IGRP), Enhanced Interior Gateway Routing Protocol (EIGRP), and Border Gateway Protocol (BGP).
    One often get confused between a routing protocol and a routed protocol. A routing protocol such as RIP is used to route information packets over the Internet, where as a routed protocol such as IP (or IPX) is the payload (contains data) that get routed from source to the destination.
    Routing protocols are primarily distinguished into three types:
    • Distance Vector Protocols
    • Link State Protocols
    • Hybrid Protocols
    RIP is an example of distance vector protocol. IS-IS is an example of Hybrid protocol, and OSPF is an example of Link State Protocol.
    The table below provides the routing protocol used with different routed protocols:
    Routing Protocol Routed Protocol
    RIP, OSPF,IS-IS, BGP,EIGRP IP
    RIP, NLSP, EIGRP IPX
    RTMP, EIGRP AppleTalk
    The list of routed, and routing protocols given in the above table is not complete, and given to serve as an example only.
    Routing Metric: This is a fundamental measure that routing protocols use for determining appropriate route to deliver packets. Each routing protocol uses its own measure of metric, and a sample of routing metrics used by different routing protocols is given below:
    Routing Protocol Metric
    RIPv2 Hop count
    EIGRP Bandwidth, Delay, Load, Reliability, and MTU
    OSPF Cost (Higher bandwidth indicates lower cost)
    IS-IS Cost
    The best route in RIP is determined by counting the number of hops required to reach the destination. A lower hop count route is always preferred over a higher hop count route. One disadvantage of using hop count as metric is that if there is a route with one additional hop, but with significantly higher bandwidth, the route with smaller bandwidth is taken. This is illustrated in the figure below:

    The RIP routed packets take the path through 56KBPS link since the destination can be reached in one hop. Though, the alternative provides a minimum bandwidth of 1MBPS (though using two links of 1MBPS, and 2MBPS each), it represents 2 hops and not preferred by the RIP protocol.

    Link State vs. Distance Vector

    Distance Vector routing protocols usually send their entire routing table to their nearest neighbors at regular intervals. A router that receives several such routing tables filter the routes and arrive at its own and retransmits it to its neighbouring routers. There will some period of time where different routers hold non-optimized routes initially. After some time, known as convergence time, a final routing table is arrived at by all the routers. A faster convergence time results in a stable network. 
    RIP, as mentioned earlier uses hop count as the metric for computing a route to a given destination. Other Distance Vector routing protocols, such as IGRP, improve on this by using hop count, bandwidth, current load, cost, and reliability to determine the best path.
    Link State routing protocols usually send only the routing changes to every other router within their area. Unlike Distance Vector, routers using Link State routing protocols maintain a picture of the entire network. A router can use this network wide information to determine the best route for traffic.
    Example Question:
    What is true about IP routing?
    A. The frame changes at each hop
    B. The source IP address changes at each hop
    C. The destination IP address changes at each hop
    D. The hardware interface addresses remain constant

    Correct answer: A

    Explanation:
    IP Packets are transported from source network to the destination network by what is known as routing. Hop-by-hop routing model is used by the Internet for delivery of packets. At each hop, the destination IP address is examined, the best next hop is determined by the routing protocol (such as RIP, OSPF or BGP) and the packet is forwarded by one more hop through this route. The same process takes place at the next hop. During this process, the logical addresses remain same. In an IP network, the logical addresses are IP addresses. The hardware interface addresses, such as MAC address change with each hop.
    more.

    Monday, October 4, 2010

    Subnet masking -II

    0 nhận xét


    What we discussed in the previous section is Classful subnet masking. A Subnetmask normally contains the host portion of the bits also. This is called Classless Inter Domain Routing (CIDR). This will enable more networks for a given class of network address. For example, allowing 3 host bits towards subnet portion in our previous IP address, will allow us to offer 2X2X2 or 8 additional subnetworks. Traditionally, all zeros, and all ones subnets are not used, and hence we are left with 6 subnets.
    192.189.210.078: 1100 0000.1011 1101.1101 0010.0100 1110 Class C IP Address
    255.255.255.224: 1111 1111.1111 1111.1111 1111.1110 0000 Class C subnet mask with 3 additional bits of host portion used for Subnetting.
    Broadcast address: 1100 0000.1011 1101.1101 0010.0101 1111 :192.189.210.95
    The above is the broadcast address for a given subnet (192.189.210.078). Under Classful routing, the broadcast address would have been 192.189.210.255.
    Note that by using Subnetting, we are able to increase the number of networks available within a given IP address. On the otherhand, we will be loosing the number of hosts available within a subnet to 24  or 16 hosts per subnet. Again, all zeros, and all ones host addresses are traditionally reserved for other purposes.
    CIDR (Classless InterDomain Routing) notation: Subnet mask is also represented as below:
    192.189.210.078/27, where 27 is the number of bits in the network portion of the IP address.
    Why use CIDR?
    Normally, ISPs allocate the IP addresses for individuals or Corporates.  The reason being that it is almost impossible to allocate a classful IP address to every individual or a corporate. Using CIDR, the biggest ISPs are given large pool of IP address space. The ISP's customers such as individual or Corporates are then allocated networks from the big ISP's pool. This kind of arrangement will enable efficient management and utilization of the Internet.
    Classful addresses can easily be written in CIDR notation
    Class A =  A.B.C.D/8, Class B = A.B.C.D/16, and Class C = A.B.C.D/24
    Where A,B,C,D are dotted decimal octets.
    Example Question:
    You have an IP of 156.233.42.56 with a subnet mask of 7 bits. How many hosts and subnets are possible?
    A. 126 hosts and 510 subnets
    B. 128 subnets and 512 hosts
    C. 510 hosts and 126 subnets
    D. 512 subnets and 128 hosts

    Correct answer: C
    Explanation:
    Class B network has the form N.N.H.H, the default subnet mask is 16 bits long.
    There is additional 7 bits to the default subnet mask. The total number of bits in subnet are 16+7 = 23.
    This leaves us with 32-23 =9 bits for assigning to hosts.
    7 bits of subnet mask corresponds to (2^7-2)=128-2 = 126 subnets.
    9 bits belonging to host addresses correspond to (2^9-2)=512-2 = 510 hosts.
    more.

    Thursday, September 30, 2010

    Subnet masking

    0 nhận xét



    Subnetting an IP Network is done primarily for better utilization of available IP address space, and routing purpose. Other reasons include better organization, use of different physical media (such as Ethernet, WAN, etc.),  and securing network resources.
    A subnet mask enables you to identify the network and node parts of the address. The network bits are represented by the 1s in the mask, and the node bits are represented by the 0s. A logical AND operation between the IP address and the subnet mask provides the Network Address.
    For example, using our test IP address and the default Class C subnet mask, we get:
    192.189.210.078: 1100 0000.1011 1101.1101 0010.0100 1110 Class C IP Address
    255.255.255.000: 1111 1111.1111 1111.1111 1111.0000 0000 Default Class C subnet mask
     192.189.210.0         1100 0000 1011 1101 1101 0010 0000 0000
    As can be seen above, by using and AND operator, we can compute the network portion of an IP address.  The network portion for the IP address given in the above example is 192.189.210.0, and the host portion of the IP address is 078.
    Given below is a table that provides binary equivalent of decimal values.  For binary conversion, take first octet of a given IP address (in dotted decimal form), and lookup the binary value. Then take the second octet and lookup the binary value, and so on.
    Binary Conversion Table
    Decimal Binary Decimal Binary Decimal Binary Decimal Binary
    0 0000 0000 64 0100 0000 128 1000 0000 192 1100 0000
    1 0000 0001 65 0100 0001 129 1000 0001 193 1100 0001
    2 0000 0010 66 0100 0010 130 1000 0010 194 1100 0010
    3 0000 0011 67 0100 0011 131 1000 0011 195 1100 0011
    4 0000 0100 68 0100 0100 132 1000 0100 196 1100 0100
    5 0000 0101 69 0100 0101 133 1000 0101 197 1100 0101
    6 0000 0110 70 0100 0110 134 1000 0110 198 1100 0110
    7 0000 0111 71 0100 0111 135 1000 0111 199 1100 0111
    8 0000 1000 72 0100 1000 136 1000 1000 200 1100 1000
    9 0000 1001 73 0100 1001 137 1000 1001 201 1100 1001
    10 0000 1010 74 0100 1010 138 1000 1010 202 1100 1010
    11 0000 1011 75 0100 1011 139 1000 1011 203 1100 1011
    12 0000 1100 76 0100 1100 140 1000 1100 204 1100 1100
    13 0000 1101 77 0100 1101 141 1000 1101 205 1100 1101
    14 0000 1110 78 0100 1110 142 1000 1110 206 1100 1110
    15 0000 1111 79 0100 1111 143 1000 1111 207 1100 1111








    16 0001 0000 80 0101 0000 144 1001 0000 208 1101 0000
    17 0001 0001 81 0101 0001 145 1001 0001 209 1101 0001
    18 0001 0010 82 0101 0010 146 1001 0010 210 1101 0010
    19 0001 0011 83 0101 0011 147 1001 0011 211 1101 0011
    20 0001 0100 84 0101 0100 148 1001 0100 212 1101 0100
    21 0001 0101 85 0101 0101 149 1001 0101 213 1101 0101
    22 0001 0110 86 0101 0110 150 1001 0110 214 1101 0110
    23 0001 0111 87 0101 0111 151 1001 0111 215 1101 0111
    24 0001 1000 88 0101 1000 152 1001 1000 216 1101 1000
    25 0001 1001 89 0101 1001 153 1001 1001 217 1101 1001
    26 0001 1010 90 0101 1010 154 1001 1010 218 1101 1010
    27 0001 1011 91 0101 1011 155 1001 1011 219 1101 1011
    28 0001 1100 92 0101 1100 156 1001 1100 220 1101 1100
    29 0001 1101 93 0101 1101 157 1001 1101 221 1101 1101
    30 0001 1110 94 0101 1110 158 1001 1110 222 1101 1110
    31 0001 1111 95 0101 1111 159 1001 1111 223 1101 1111








    32 0010 0000 96 0110 0000 160 1010 0000 224 1110 0000
    33 0010 0001 97 0110 0001 161 1010 0001 225 1110 0001
    34 0010 0010 98 0110 0010 162 1010 0010 226 1110 0010
    35 0010 0011 99 0110 0011 163 1010 0011 227 1110 0011
    36 0010 0100 100 0110 0100 164 1010 0100 228 1110 0100
    37 0010 0101 101 0110 0101 165 1010 0101 229 1110 0101
    38 0010 0110 102 0110 0110 166 1010 0110 230 1110 0110
    39 0010 0111 103 0110 0111 167 1010 0111 231 1110 0111
    40 0010 1000 104 0110 1000 168 1010 1000 232 1110 1000
    41 0010 1001 105 0110 1001 169 1010 1001 233 1110 1001
    42 0010 1010 106 0110 1010 170 1010 1010 234 1110 1010
    43 0010 1011 107 0110 1011 171 1010 1011 235 1110 1011
    44 0010 1100 108 0110 1100 172 1010 1100 236 1110 1100
    45 0010 1101 109 0010 1101 173 1010 1101 237 1010 1101
    46 0010 1110 110 0110 1110 174 1010 1110 238 1110 1110
    47 0010 1111 111 0110 1111 175 1010 1111 239 1110 1111








    48 0011 0000 112 0111 0000 176 1011 0000 240 1111 0000
    49 0011 0001 113 0111 0001 177 1011 0001 241 1111 0001
    50 0011 0010 114 0111 0010 178 1011 0010 242 1111 0010
    51 0011 0011 115 0111 0011 179 1011 0011 243 1111 0011
    52 0011 0100 116 0111 0100 180 1011 0100 244 1111 0100
    53 0011 0101 117 0111 0101 181 1011 0101 245 1111 0101
    54 0011 0110 118 0111 0110 182 1011 0110 246 1111 0110
    55 0011 0111 119 0111 0111 183 1011 0111 247 1111 0111
    56 0011 1000 120 0111 1000 184 1011 1000 248 1111 1000
    57 0011 1001 121 0111 1001 185 1011 1001 249 1111 1001
    58 0011 1010 122 0111 1010 186 1011 1010 250 1111 1010
    59 0011 1011 123 0111 1011 187 1011 1011 251 1111 1011
    60 0011 1100 124 0111 1100 188 1011 1100 252 1111 1100
    61 0011 1101 125 0111 1101 189 1011 1101 253 1111 1101
    62 0011 1110 126 0111 1110 190 1011 1110 254 1111 1110
    63 0011 1111 127 0111 1111 191 1011 1111 255 1111 1111
    Example Question: Which of the following is a Class C IP address?
          A. 10.10.14.118
          B. 135.23.112.57
          C. 191.200.199.199
          D. 204.67.118.54

                             
    Correct Answer: D.
    Explanation:
    IP addresses are written using decimal numbers separated by decimal points. This is called dotted decimal notation of expressing IP addresses. The different classes of IP addresses is as below:
    Class
    Format 
    Leading Bit  pattern
    Network address Range   
    Maximum  networks
    Maximum hosts     
    A
    N.H.H.H
     0
     0-126
     127
     16,777,214
    B
    N.N.H.H   
     10
     128-191
     16,384
     65,534
    C
    N.N.N.H
     110
     192-223
     2,097,152
     254
    Network address of all zeros means "This network or segment".
    Network address of all 1s means " all networks", same as hexadecimal of all Fs.
    Network number 127 is reserved for loopback tests.
    Host (Node) address of all zeros mean "This Host (Node)".
    Host (Node) address of all 1s mean "all Hosts (Nodes) " on the specified network.
    more.

    IP Addressing

    0 nhận xét







    An IP address is a unique logical identifier for a node or host connection on an IP network. An IP address is a 32 bit binary number, and represented as 4 decimal values of 8 bits each. The decimal values range from 0 to 255. This is known as "dotted decimal" notation.
    Example: 192.189.210.078
    It is sometimes useful to view the values in their binary form.
    192     .189     .210     .078
    11000000.10111101.11010010.1001110

    Every IP address consists of network identifier and node identifier. The IP network is divided based on Class of network. The class of network is determined by the leading bits of the IP address as shown below.

    Address Classes

    There are 5 different address classes. You can determine which class any IP
    address is in by examining the first 4 bits of the IP address.
    • Class A addresses begin with 0xxx, or 1 to 126 decimal.
    • Class B addresses begin with 10xx, or 128 to 191 decimal.
    • Class C addresses begin with 110x, or 192 to 223 decimal.
    • Class D addresses begin with 1110, or 224 to 239 decimal.
    • Class E addresses begin with 1111, or 240 to 254 decimal.
    Addresses beginning with 01111111, or 127 decimal, are reserved for loopback and for internal testing on a local machine. Class D addresses are reserved for multicasting. Class E addresses are reserved for future use. They should not be used for host addresses.

    Now we can see how the Class determines, by default, which part of the IP address belongs to the network (N) and which part belongs to the Host/node (H).

    • Class A: NNNNNNNN.HHHHHHHH.HHHHHHHH.HHHHHHHH
    • Class B: NNNNNNNN.NNNNNNNN.HHHHHHHH.HHHHHHHH
    • Class C: NNNNNNNN.NNNNNNNN.NNNNNNNN.HHHHHHHH
    In the example, 192.189.210.078 is a Class C address so by default the Network part of the address (also known as the Network Address) is defined by the first three octets (192.189.210.XXX) and the node part is defined by the last one octets (XXX.XXX.XXX.078).

    In order to specify the network address for a given IP address, the node section is set to all "0"s. In our example, 192.189.210.0 specifies the network address for 192.189.210.078. When the node section is set to all "1"s, it specifies a broadcast that is sent to all hosts on the network. 192.189.210.255 specifies the broadcast address.

    Private Subnets

    There are three IP network addresses reserved for private networks. The addresses are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. They can be used by anyone setting up internal IP networks, such as an intranet. Internet routers never forward the private addresses over the public Internet.
    more.

    Popular Posts