Beruflich Dokumente
Kultur Dokumente
1 Types of Network
Bridge: A bridge is a device that divides a network segment into two segments. Conversely, it
conditionally connects two broadcast domains together.
Switch: A switch is a device that creates multiple collision domains so that multiple devices can
simultaneously send and receive data. Switch is actually a multiport bridge. The process
performed by a switch is called bridging.
Router: A router is a device that performs switching at layer 3 of the OSI reference model.
Switching is done directly for known networks. For remote networks, the next hop for a given
Destination IP Network is determined either manually or automatically and populated in the
routing table.
Modem: The modem is a network device that modulates and demodulates computer network
signals on a telephone line. A modem is used to terminate an analogue loop like a telephone
network analogue.
Modes of signalling:
Simplex: The sender can only send data and receiver can only receive data.
Duplex: Data can be sent and received by both end devices.
Half duplex is a duplex mechanisms where data can be sent by both devices but one at a
time.
Full duplex is a mechanism where both end devices can simultaneously send and receive
data.
Types of Signaling
Unicast: Data is received by all devices but only the recipient accepts the data. All others
reject the data.
Multicast: Data is received by all devices but only devices belonging to the same multicast
group accept the data. Rest all reject data.
Broadcast: Data is received and unconditionally accepted by all.
Bandwidth:
A band is a set of contiguous frequencies used for radio transmissions.
Bandwidth is the difference between the highest frequency and the lowest frequency of a band.
If only one frequency can be used out of the multiple frequencies of a band at any given instant, it
is called baseband.
If two or more than two frequencies can be used out of the multiple frequencies/channels of a band
at any given instant, it is called broadband.
Bandwidth in computer networks is hence also measured in bps (bits per second).
Note: 1000 bits are referred to as 1 Kilobit (Kb).
1024 bits are referred to as kibibit (Kib).
Notations- B: Byte (8 bits) b: bit
1.7 MAC address & IP Address
Every device is recognised using an address.
IP address is a 32 bit (v4) or a 128 bit (v6) address used to identify end devices.
MAC address is a 48 bit address used to identify intermediate devices between end devices.
Note: If hypothetically all devices were directly connected to each other, one would not have required two
addresses.
1.8 OSI Reference Model and TCP/IP Model
The Open Systems Interconnection model (OSI Model) is a conceptual model that characterizes and
standardizes the communication functions of a telecommunication or computing system without regard of
their underlying internal structure and technology. Its goal is the interoperability of diverse communication
systems with standard protocols.
OSI consists of 7 layers.
Layer
Function
Name/Number
Layer 7 :
Provide User
Application
interface
Layer 6:
Encode and decode
Presentation
data between layer
5 and 7
Layer 5: Session
Manage and
maintain
communication
session. Identify
data types
Layer 4: Transport
Provide end to end
connectivity
between services
Layer 5: Network
Provide logical
addressing
Layer 6: Data Link
Provide physical
addressing
Layer 7: Physical
Send and receive
raw data over wired
or wireless network
Data encapsulation
Data encapsulation
identifier
Protocol
identifier
FILE
FILE NAME
Segment
Port number
Port number
Packet
IP address
Protocol
number
Frame
MAC address
Ether type
Bits
TCP/IP does recognize four broad layers of functionality which are derived from the operating scope of
their contained protocols: the scope of the software application; the end-to-end transport connection; the
internetworking range; and the scope of the direct links to other nodes on the local network.
Despite using a different concept for layering than the OSI model, these layers are nevertheless often
compared with the OSI layering scheme in the following way:
The Internet application layer includes the OSI application layer, presentation layer, and most of the
session layer.
Its end-to-end transport layer includes the graceful close function of the OSI session layer as well as the
OSI transport layer.
The internetworking layer (Internet layer) is a subset of the OSI network layer.
The link layer includes the OSI data link layer and sometimes the physical layers, as well as some
protocols of the OSI's network layer.
1.9 Protocols
HTTP: The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed,
collaborative, hypermedia information systems. Port number of HTTP is 80.
FTP: The File Transfer Protocol (FTP) is a standard network protocol used to transfer computer
files from one host to another host over a TCP-based network, such as the Internet. Port number
of FTP is 20,21.
Telnet: Telnet is a session layer protocol used on the Internet or local area networks to provide a
bidirectional interactive text-oriented communication facility using a virtual terminal connection.
Port number of telnet is 23. A secured version of telnet is SSH which encrypts the data it sends.
Port number of SSH is 22.
POP: The Post Office Protocol (POP) is an application-layer Internet standard protocol used by
local e-mail clients to retrieve e-mail from a remote server over a TCP/IP connection. Port number
of POP is 110. POP deletes the email on the server after retrieving them.
IMAP: The Internet Message Access Protocol (IMAP) is an application-layer Internet standard
protocol used by local e-mail clients to retrieve e-mail from a remote server over a TCP/IP
connection. It differs from POP as it leaves the message on the original server. Port number of
IMAP is 143.
SMTP: Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic mail (email)
transmission. Port number of SMTP is 25.
TFTP: Trivial File Transfer Protocol (TFTP) is a simple, lock-step, File Transfer Protocol which
allows a client to get from or put a file onto a remote host using UDP. Port number of TFTP is 69.
DNS: Domain Name System (DNS) is a hierarchical distributed naming system for computers,
services, or any resource connected to the Internet or a private network. The DNS service maps
the IP address to the domain name. Port number of DNS is 53.
DHCP: Dynamic Host Configuration Protocol (DHCP) is a standardized network protocol used on
Internet Protocol (IP) networks for dynamically distributing network configuration parameters, such
as IP addresses for interfaces and services. Port number of DHCP is 67 for server and 68 for
client. DHCP uses discover, offer, request and acknowledge packets to assign IP address and
related parameters to clients.
ICMP: Internet Control Message Protocol is used to indicate error or exchange connection based
information between devices. ICMP operates directly on IP and does not have port number. It has
a protocol number 1.
ARP: Address Resolution Protocol (ARP) is a telecommunication protocol used for resolution of
network layer addresses into link layer addresses. ARP operates at data link layer. Hence, it has
ether type of 0x0806.
RARP: Reverse ARP resolves link layer address into network layer address.
TCP: Transmission Control Protocol is a connection oriented reliable protocol. Protocol number of
TCP is 6.
UDP: User datagram protocol is a connection-less unreliable protocol. Protocol number of UDP is
17.
1.10 Basic Router Configurations
The various parts of a router include main board, processor, memory, power supply unit and ports.
Types of memory:
RAM (Random Access Memory): Holds the running configuration. The running configuration is the
settings and configurations that the router is currently using. It also holds the runtime copy of IOS
(Internetworking Operating System).
NVRAM(Non volatile RAM): Holds the startup configuration. Running configuration is saved here.
Flash memory: Holds the saved compressed copy of the IOS. When router starts, IOS is loaded
from flash memory into RAM.
Types of ports
Line: Used for configuration of a device.
Interface: Used for communication. When an interface is used as a secondary method to configure
a device, it is referred to as a virtual line.
2.1 IP Routing
Types of routing
Static : The next hop to a destination IP network is manually entered in the routing table.
Dynamic: The next hop to a destination network is automatically discovered by the use of routing
protocols.
2.2 Types of Routing Protocols
Distance vector: These routing protocols operate by periodically updating their neighbours about
known networks. The distance referred to is the hop count and the vector is the interface from
which data will exit. RIP and EIGRP are distance vector routing protocol, tough EIGRP is a hybrid
and is also called advanced distance vector routing protocol.
RIP: RIP is the first protocol of the Internet. It uses the Bellman Ford algorithm to find out the
lowest hop count path. RIP is the least complex routing protocol. RIP cannot operate more
than 15 hops.
EIGRP: Enhance Interior gateway routing protocol is a Cisco proprietary routing protocol
providing better path cost calculation and proactive approach towards link failure scenarios by
use of tables that hold backup routes in case the primary route fails.
LAB: Configuring EIGRP.
Configure topology as per figure 2.1. Assign IP address accordingly.
Configure Mumbai Router as per figure 2.3. Note the neighborship being established.
Verify the routing table of New York router for EIGRP routes as per figure 2.6
Link state: These protocols advertise the status of their link to all the devices in the network. Link
state routing protocols observe shortest path first paradigm. OSPF and IS-IS are link state routing
protocols
OSPF: Open Shortest Path First is an open link state routing protocol. OSPF was made as an
alternative to EIGRP as EIGRP is cisco proprietary. OSPF uses the concept of areas for
hierarchical configuration approach. OSPF uses Djkstras Algorithm to determine shortest
path.
ISIS: Intermediate system-Intermediate system is another link state routing protocol.
Conceptually, it is similar to OSPF. However, it differs from OSPF from implementation point
of view as IS-IS does not work on IP while OSPF uses IP as its carrier protocol.
2.3 VLAN (Virtual LAN): A VLAN is a logical LAN that is used to manage LAN. A VLAN helps in grouping
interfaces based on common attributes. Ex: All devices from accounts department can be grouped together
despite they being connected to different switches.
Types of VLAN interfaces:
Access: Access interface is an interface that is a member of only one VLAN
Trunk: Trunk interface is not a member of any VLAN and unconditionally allows traffic from all
VLANS to flow through.
VTP: Vlan Trunking protocol is used to replicate VLAN database between VTP server and clients. Note that
interface membership is not replicated.
VTP Modes:
Server: VLANs can be created on the server which will replicate to clients in the same domain.
Client: VLANs cannot be created on a client. VLANs from server are replicated to clients and only those
VLANs can be used.
Transparent: VLANs can be created here. However, they are not replicated anywhere. Transparent VTP
mode allows database to replicate between server and client without updating itself.
Trunking Types: To identify which VLAN traffic is coming from, switches tag the frames with VLAN id as
they exit a trunk interface. There are two types of tagging.
ISL: Inter switch link is a Cisco Proprietary tagging mechanism. It is an external tagging method
which increases the size of the frame.
IEEE 802.1Q: This is an open tagging method. It is an internal tagging method and does not
increase the size of the frame.
InterVLAN Routing: traffic from one VLAn cannot communicate with other vlan. To achieve this, interVLAN
routing is performed and the router performing this is referred to as router-on-a-stick.
LAB:
Configure topology as per figure 2.7. Assign IP addresses accordingly.