Networking:
Networking means connecting two or
more devices (nodes) for communication purpose. A node can be a computer,
printer, or any other device capable of sending and/or receiving data generated
by other nodes on the network.
Computer Network:
A computer network is a group of interconnected computer or A computer network is any set of
computers or devices connected to each other with the ability to exchange data.
Types of networks:
Local Area Network (LAN): A network covering a small geographic
area, like a home, office, or building. Current LANs are most likely to be
based on Ethernet technology. For example, a library may have a wired or
wireless LAN for users to interconnect local devices (e.g., printers and
servers) and to connect to the internet. On a wired LAN, PCs in the library are
typically connected by category 5 (Cat5) cable, running the IEEE 802.3 protocol
through a system of interconnection devices and eventually connect to the
internet.
Metropolitan Area Network (MAN): A Metropolitan Area Network is a network
that connects two or more Local Area Networks or Campus Area Networks together
but does not extend beyond the boundaries of the immediate town/city. Routers,
switches and hubs are connected to create a Metropolitan Area Network.
Wide Area Network
(WAN): A WAN is a data communications network that covers a
relatively broad geographic area (i.e. one city to another and one country to
another country) and that often uses transmission facilities provided by common
carriers, such as telephone companies.
Global Area Network
(GAN): Global area networks (GAN) specifications are in development
by several groups, and there is no common definition. In general, however, a
GAN is a model for supporting mobile communications across an arbitrary number
of wireless LANs, satellite coverage areas, etc.
Internetwork: Two or more
networks or network segments connected using devices, such as a router. Any
interconnection among or between public, private, commercial, industrial, or
governmental networks may also be defined as an internetwork. In modern
practice, the interconnected networks use the Internet Protocol. There are at
least three variants of internetwork, depending on who administers and who
participates in them:
- Intranet
- Extranet
- Internet
Intranet: An intranet is a set of networks,
using the Internet Protocol and IP-based tools such as web browsers and file
transfer applications, that is under the control of a single administrative
entity. That administrative entity closes the intranet to all but specific,
authorized users. Most commonly, an
intranet is the internal network of an organization. A large intranet will
typically have at least one web server to provide users with organizational
information.
Extranet: An extranet is a network or
internetwork that is limited in scope to a single organization or entity but
which also has limited connections to the networks of one or more other
usually, but not necessarily, trusted organizations or entities (e.g. a
company's customers may be given access to some part of its intranet creating
in this way an extranet, while at the same time the customers may not be
considered 'trusted' from a security standpoint). Technically, an extranet may
also be categorized as a CAN, MAN, WAN, or other type of network, although, by
definition, an extranet cannot consist of a single LAN; it must have at least
one connection with an external network.
Internet: The
Internet is a specific internetwork. It consists of a worldwide interconnection
of governmental, academic, public, and private networks based upon the
networking technologies of the Internet Protocol Suite. It is the successor of
the Advanced Research Projects Agency Network (ARPANET) developed by DARPA of
the U.S. Department of Defense. The Internet is also the communications
backbone underlying the World Wide Web (WWW). The 'Internet' is most commonly
spelled with a capital 'I' as a proper noun, for historical reasons and to
distinguish it from other generic internetworks.
Participants
in the Internet use a diverse array of methods of several hundred documented,
and often standardized, protocols compatible with the Internet Protocol Suite
and an addressing system (IP Addresses) administered by the Internet Assigned
Numbers Authority and address registries. Service providers and large
enterprises exchange information about the reachability of their address spaces
through the Border Gateway Protocol (BGP), forming a redundent world-wide mesh
of transmission paths.
Network
topology:
Computer networks may be classified according to
the network topology upon which the network is based, such as Bus network, Star
network, Ring network, Mesh network, Star-bus network, Tree or Hierarchical
topology network, etc.Network Topology signifies the way in which devices in
the network see their logical relations to one another. The use of the term
"logical" here is significant. That is, network topology is independent
of the "physical" layout of the network. Even if networked computers
are physically placed in a linear arrangement, if they are connected via a hub,
the network has a Star topology, rather than a Bus Topology. In this regard the
visual and operational characteristics of a network are distinct; the logical
network topology is not necessarily the same as the physical layout.
Open Systems and the Open Systems Interconnection (OSI) model:
A set of protocols
that would allow any two different systems to communicate regardless of their
underlying architecture is called an open system. The ISO has addressed the
problem of allowing many devices to communication and has developed its Open
System Interconnect (OSI) model. If fully developed, it would allow any two
computers to communicate provided they are connected.
In its most basic form, it divides network
architecture into seven layers which, from top to bottom, are the Application,
Presentation, Session, Transport, Network, Data-Link, and Physical Layers. It
is therefore often referred to as the OSI Seven Layer.
Description of Open Systems Interconnection(OSI) layers
OSI
Model
|
|||
Data
unit
|
Layer
|
Function
|
|
Host
layers |
Data
|
1. Application
|
Network
process to application
|
2. Presentation
|
Data
representation and encryption
|
||
3. Session
|
Interhost
communication
|
||
Segment/Datagram
|
4. Transport
|
End-to-end
connections and reliability
|
|
Media
layers |
Packet
|
5. Network
|
Path
determination and logical addressing
|
Frame
|
6. Data Link
|
Physical
addressing (MAC & LLC)
|
|
Bit
|
7. Physical
|
Media,
signal and binary transmission
|
|
Network Interface Cards: A network card, network adapter
or NIC (network interface card) is a piece of computer hardware designed
to allow computers to communicate over a computer network. It
provides physical access to a networking medium and often provides a low-level
addressing system through the use of MAC addresses. It allows users to connect
to each other either by using cables or wirelessly.
1.Repeaters: repeater is an electronic device that receives a signal
and retransmits it at a higher level or higher power, or onto the other side of
an obstruction, so that the signal can cover longer distances without
degradation. In most twisted pair Ethernet configurations, repeaters are
required for cable runs longer than 100 meters.
2.Hubs: hub contains multiple ports. When a packet
arrives at one port, it is copied to all the ports of the hub for transmission.
When the packets are copied, the destination address in the frame does not
change to a broadcast address. It does this in a rudimentary way, it simply
copies the data to all of the Nodes connected to the hub.
3.Bridges: A network bridge connects multiple network
segments at the data link layer (layer 2) of the OSI model. Bridges do not
promiscuously copy traffic to all ports, as hubs do, but learns which MAC
addresses are reachable through specific ports. Once the bridge associates a
port and an address, it will send traffic for that address only to that port.
Bridges do send broadcasts to all ports except the one on which the broadcast
was received. Bridges learn the association of ports and addresses by examining
the source address of frames that it sees on various ports. Once a frame
arrives through a port, its source address is stored and the bridge assumes
that MAC address is associated with that port. The first time that a previously
unknown destination address is seen, the bridge will forward the frame to all
ports other than the one on which the frame arrived.
Bridges
come in three basic types:
- Local bridges: Directly connect local area networks (LANs)
- Remote bridges: Can be used to create a wide area network (WAN) link between LANs. Remote bridges, where the connecting link is slower than the end networks, largely have been replaced by routers.
- Wireless bridges: Can be used to join LANs or connect remote stations to LANs.
4.Switches: A switch is a device that performs
switching. Specifically, it forwards and filters OSI layer 2 datagrams (chunk
of data communication) between ports (connected cables) based on the
Mac-Addresses in the packets. This is distinct from a hub in that it only
forwards the datagrams to the ports involved in the communications rather than
all ports connected. Strictly speaking, a switch is not capable of routing
traffic based on IP address (layer 3) which is necessary for communicating
between network segments or within a large or complex LAN. Some switches are
capable of routing based on IP addresses but are still called switches as a
marketing term. A switch normally has numerous ports with the intention that
most or all of the network be connected directly to a switch, or another switch
that is in turn connected to a switch.
5.Routers: Routers are networking devices that
forward data packets between networks using headers and forwarding tables to
determine the best path to forward the packets. Routers work at the network
layer of the TCP/IP model or layer 3 of the OSI model. Routers also provide
interconnectivity between like and unlike media (RFC 1812). This is
accomplished by examining the Header of a data packet, and making a decision on
the next hop to which it should be sent (RFC 1812) They use preconfigured
static routes, status of their hardware interfaces, and routing protocols to
select the best route between any two subnets. A router is connected to at
least two networks, commonly two LANs or WANs or a LAN and its ISP's network.
Some DSL and cable modems, for home (and even office) use, have been integrated
with routers to allow multiple home/office computers to access the Internet
through the same connection. Many of these new devices also consist of wireless
access points (waps) or wireless routers to allow for IEEE 802.11b/g wireless
enabled devices to connect to the network without the need for a cabled
connection.
Protocols:
A protocol is a set of rules that
governs data communication to occur. It defines the format and the order of
message exchanged between two or more communication entities, as well as the
actions taken on the transmission and/or receipt of a message or other event. A
protocol defines what is communicated, how it is communicated, and when it is
communicated. Without protocol two computer can be connected but not
communicate. It is essential to use same protocol for communication between two
devices. When several protocols work at a time it is called protocol suit. At
present three widely used protocol suits are TCP/IP, IPX/SPX and AppleTalk.
Connection-Oriented and Connectionless services:
When an application uses the
connection-oriented service, the client program and the server program send
control packets to each other before sending packets with the actual data to be
transferred. This so called handshaking procedure alerts client and server,
allowing them to prepare for an onslaught of data packets. Once the handshaking
procedure is finished, a connection is said to be established between the two
end systems. The Internet connection oriented service has a name
-Transmission Control Protocol
(TCP); the initial version of TCP protocol is defined in the Internet Request
for Comments RFC 793.
There is no handshaking with the
Internet’s connectionless service. When one side of an application wants to
send packets to other side of the application, the sending program simply sends
the packets. Since there is no handshaking procedure prior to data packet
transmission, data can be deliver sooner. A source never knows for sure which
packets have arrived at the destination. The Internet’s connectionless service
is called User Datagram Protocol (UDP); UDP is define in the Internet Request
for Comments RFC 768.
Routing Protocols: A routing protocol sends and receives routing
information packets to and from other routers. Routing protocols implement
algorithms that tell routers the best paths through internetworks. Routing
protocols include Border Gateway Protocol (BGP), Interior Gateway Routing
Protocol (IGRP), Routing Information Protocol, and Open Shortest Path First
(OSPF) to name a few. Routing protocols provide the layer 3 network state
update.
Routed Protocols: A routed protocol can be routed by a router,
which means that it can be forwarded from one router to another. Such as
Internet Protocol (IP), Novell Internetwork Packet eXchange (IPX), and
AppleTalk are routed protocols.
In short, routing protocols
route datagrams through a network. Routing is a layer 3 function, thus, routing
and routed protocols are network-layer entities. Routing tables on the layer 3
switch (router) are populated by information from routing protocols. A routed
protocol will enter an interface on a router, be placed in a memory buffer,
then it will be forwarded out to an interface based on information in the
routing table.
Routed versus routing protocols:
Confusion often arises between routing protocols and routed
protocols. While routing protocols help the router in the decision-making
on which paths to send traffic, routed protocols are responsible for the actual
transfer of traffic between Layer3 devices. Specifically, a routed protocol is
any network protocol that provides enough information in its network layer
address to allow a packet to be forwarded from one host to another host based
on the addressing scheme, without knowing the entire path from source to
destination. Routed protocols define the format and use of the fields
within a packet. Packets generally are conveyed from end system to end system.
Internet Address or IP:
IP address is a network layer
protocol address for a host in a TCP/IP network. IP address is used to uniquely
identify each host in a network. An IP address in the current version of protocol
is a 32-bit binary address that uniquely and universally defines the connection
of a host or a router to the Internet. IP address is needed in order to
communicate with other hosts in the network using the TCP/IP suite of
protocols.
IP Addresses are Unique:
The IP addresses are unique in
the sense of that each address define one, and only one, connection in the Internet
Two device on the internet can never have the same address at the same
time. However, if a device has two
connections to the Internet, via two networks, it has two IP address.
IP Addresses are Universal:
The IP addresses are Universal in
the sense that the addressing system must be accepted by any host that wants to
connected to the Internet.
Originally,
an IP address was defined as a 32-bit number and this system, now
named Internet Protocol Version 4 (IPv4), is still in use today. However, due
to the enormous growth of the Internet and the resulting depletion of the
address space, a new addressing system (IPv6), using 128 bits for the address,
had to be developed. IPv6 is now being deployed across the world; in many
places it coexists with the old standard and is transmitted over the same
hardware and network links. This
document only covers IPv4.
There are two common notations to show an
IP address: Binary notation and dotted decimal notation.
In binary notation, the IP address is displayed as
32 bits. To make the address more readable, one or more spaces is usually
inserted between each octet (8 bit). The following example of an IP address. In
binary notation: 11000000 10101000
00000000 00000011.
In decimal notation: 192.168.0.3
Each IP address divided into two parts: Network ID or Netid + Host ID or Hostid
In a specific network, Network ID of each IP address is same
but Host ID must be different.
IP versions
Two versions of the Internet Protocol (IP) are in use: IP Version 4 and IP Version 6. Each version defines an IP address differently. Because of its prevalence, the generic term IP address typically still refers to the addresses defined by IPv4. The gap in version sequence between IPv4 and IPv6 resulted from the assignment of number 5 to the experimental Internet Stream Protocol in 1979, which however was never referred to as IPv5.IPv4 addresses
Main article: IPv4#Addressing
IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers, each ranging from 0 to 255, separated by dots, e.g., 172.16.254.1. Each part represents a group of 8 bits (octet) of the address. In some cases of technical writing, IPv4 addresses may be presented in various hexadecimal, octal, or binary representations.
IPv4 subnetting
In the early stages of development of the Internet Protocol,[1] network administrators interpreted an IP address in two parts: network number portion and host number portion. The highest order octet (most significant eight bits) in an address was designated as the network number and the remaining bits were called the rest field or host identifier and were used for host numbering within a network.This early method soon proved inadequate as additional networks developed that were independent of the existing networks already designated by a network number. In 1981, the Internet addressing specification was revised with the introduction of classful network architecture.[2]
Classful network design allowed for a larger number of individual network assignments and fine-grained subnetwork design. The first three bits of the most significant octet of an IP address were defined as the class of the address. Three classes (A, B, and C) were defined for universal unicast addressing. Depending on the class derived, the network identification was based on octet boundary segments of the entire address. Each class used successively additional octets in the network identifier, thus reducing the possible number of hosts in the higher order classes (B and C). The following table gives an overview of this now obsolete system.
| Class | Leading bits in address (binary) | Range of first octet (decimal) | Network ID format | Host ID format | Number of networks | Number of addresses per network |
|---|---|---|---|---|---|---|
| A | 0 | 00000000-01111111 0 - 127 |
a | b.c.d | 27 = 128 | 224 = 16777216 |
| B | 10 | 10000000-10111111 128–191 |
a.b | c.d | 214 = 16384 | 216 = 65536 |
| C |
110 |
