0% found this document useful (0 votes)
6 views5 pages

Networking Fundamentals and Protocols

Network engineer details
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

Networking Fundamentals and Protocols

Network engineer details
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

31st Oct

Networking
-Exchanging of info or data between the host or nodes on a shared medium

OSI-Open System Interconnection model


7 layer model

Application-provides user interface where communication would be happening through


some protocols(http,https...)
Presentation-
Session-maintaining, creating, terminating
Transport-tcp/udp
Network-Logical address(can be changed)inter networking
LLC(acts as a bridge)
Datalink-physical address(cannot be changed)intra networkings
Physical

Data-Segmetation
L4+Data-Segment(L4 SP/DP)
L3+L4+Data-Packet(L3 SL/DL)
L2+L3+L4+Data-Frame(L2 SM/DM)

MSS - 1460 Bytes(Maximum Segment Size) = L4 Header + MSS


MTU - 1500 Bytes(IP Packet)= L3 Header+ L4 Header + MSS

01/Nov

Network - Inter network (communication based on logical addressing(IP Address))

IP Address : Logical Address, whether a host is available on the network or not

IP V4 - 32 bits - dotted decimal number

IP V6 -

[Link] (Universal Network ID)


[Link] (Universal Broadcast ID)

IANA- Internet Assigned Numbered Authority


4 Billion IPs
IP Class A-Public
B-Public
C-Public
D-Multicast
E-Research
Class A - 32 bits - Network and Hosts Part (8 bits Network part and 24 bits Host
part) [0(Reserved Address) & 127(Loop Back Address)]
Network Host
(00000000). (00000000. 00000000. 00000000)
Class B - 32 bits - Network and Hosts Part (16 bits Network part and 16 bits Host
part) 10
Class B - 32 bits - Network and Hosts Part (24 bits Network part and 8 bits Host
part) 110

Class A - 1-126
Class B - 127-191
Class C - 192-223

2nd/Nov

Subnet Mask - makes all the bits network part to 1 and host part to 0
Class A - [Link]
Class B - [Link]
Class C - [Link]

Subnetting - one of the conservation techniques to avoid wastage of IPs


-splitting up the larger network into smaller one's by borrowing host bits into
network bits
No of network to be formed = 2^n(n is the number of bits borrowed)
NID - All the host should be 0s
BID - All the host should be 1s

Class A
[Link]/8 network

00000111. 000 00000. 00000000. 00000000

000 7. 0. 0. 0 - 7. 31. 255. 255


001 7. 32. 0. 0 - 7. 63. 255. 255
010 7. 64. 0. 0 - 7. 95. 255. 255
011 7. 96. 0. 0 - 7. 127. 255. 255 Subnet Mask= 255. 224. 0. 0
100 7. 128. 0. 0 - 7. 159. 255. 255
101 7. 160. 0. 0 - 7. 191. 255. 255
110 7. 192. 0. 0 - 7. 223. 255. 255
111 7. 224. 0. 0 - 7. 255. 255. 255

CIDR replacing subneting, above scenerio can be written as [Link]/11 (which means
8+3, 3 host bits are borrowed)

3rd/ Nov

Class B
[Link]/18

10101100 . 00010000. 00 000000. 00000000

00 172. 16. 0. 0 - 172. 16. 63. 255


01 172. 16. 64. 0 - 172. 16. 127. 255 Subnet Mask= [Link]
10 172. 16. 128. 0 - 172. 16. 191. 255
11 172. 16. 192. 0 - 172. 16. 255. 255

Class C

197. 246. 171. 0/ 24 10 NETWORK

11000101. 11110110. 10101011. 0000 0000

0000 [Link] - [Link]


0001 [Link]-[Link]
0010 [Link]-[Link]
0011 [Link]-[Link]
0100 [Link]-[Link]
0101 [Link]-[Link]
0110 [Link]-[Link] Subnet Mask= [Link]
0111 [Link]-[Link]
1000 [Link]-[Link]
1001 [Link]-[Link]
1010 [Link]-[Link]
1011 [Link]-[Link]
1100 [Link]-[Link]
1101 [Link]-[Link]
1110 [Link]-[Link]
1111 [Link]-[Link]

00000000

[Link]/8 network 2^n = 8? 2^5=32-2=30

00000011. 000 00000.0000000.0000000

NID BID NID= 00000011. 100 00000.0000000.0000000


000 [Link]-[Link] BID= 00000011. 100
11111.11111111.11111111
001 [Link]-[Link]
010 [Link]-[Link]
011 [Link]-[Link]
100 [Link]
101
110
111

[Link]/4 NETWORKS 2^2

00001010.

00=0
01=
10
11

2^1 2^0
0 0 0*2^1+0*2^0=0

0 1 0*2^1+1*2^0=1

1 0 1*2^1+0*2^0=2

1 1 1*2^1+1*2^0=2
2^2 2^1 2^0
0 0 0 0*2^2+0*2^1+0*2^0=0
0 0 1 0*2^2+0*2^1+1*2^0=1
0 1 0 0*2^2+1*2^1+0*2^0=2
0 1 1
100
101
110
111

1000

glbpgateway load balancing protocol

HSRp and vrrp


hasrp is ciosco prioperity and vrrp is open source, everything is same
hsrp has 5 states
hsrp prioirty is 100
has 2 versions
v 1 and 2
v1 suports 16 group of router
v2 supporets 4096 group routers
uses udp to exchange hellos
uses udp 1985

v1 use listens on [Link] which is class d


v2 uses [Link]
preempt to take active router we set up and always top priority gets active

command is "standby"

vrrp virtual routing redudancy


no port use like udp or port
uses protocol no as 112
same command vrrp 1
ip [Link]
many vendors will suport vrrp

VPN

GREtunnel vpn generic routing encapsulation ,actually developed by cisco


works at layer 3 of osi
it actually encapsulates ip [Link] will be pvt ip and outside will be
public ip.
Gre advantages:
simple to configure.
supports all traffic types like ip4 unicast,multicast,ip6 also
command interface tunnel
mention the tunnel source interface name
its swimple :
create a tunnel interface "interface tunnel 1
mention tunnel source which is outgoing interface
mention tunnel destination
mention tunneling mechanism as wether ipv6 or gre select gre select gre ip
tunnel mode gre ip
we need to have an ip address for that interface

Common questions

Powered by AI

Subnet masks are crucial in IP addressing as they define the division between the network and host parts of an IP address, determining which portion is used for networking and which identifies the host. This makes subnet masks instrumental in network configuration, enabling the segmentation of networks into manageable subnets, improving address utilization, and reducing broadcast domains. For example, a Class C subnet mask of 255.255.255.0 implies all bits in the first three octets define the network, while the last octet addresses hosts. Clear demarcation by subnet masks enhances performance, security, and management of IP address spaces within an organization .

Classless Inter-Domain Routing (CIDR) is a method for allocating IP addresses and routing Internet Protocol packets that enhances the traditional classful addressing. Unlike fixed classful subnetting, CIDR uses variable-length subnet masking (VLSM) to create flexible and efficient address spaces, minimizing IP wastage. CIDR allows for arbitrary lengths of prefixes (e.g., /11) instead of adhering strictly to Class A, B, or C boundaries, thus providing granular control over address allocation. This approach reduces fragmentation, makes routing more efficient, and supports hierarchical subnet allocation .

IPv4 uses a 32-bit address structure divided into four octets, represented in a dotted decimal format (e.g., 192.168.1.1), allowing for about 4 billion unique addresses. It supports address classes (A, B, C, D, E) with varying distribution between network and host portions. IPv6, however, has a 128-bit addressing structure, significantly expanding the address capacity. It is expressed in hexadecimal and separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334). Besides addressing more devices, IPv6 simplifies network configuration with auto-configuration abilities, better supports mobile networks, and includes security by design with IPsec .

The OSI model facilitates communication protocols in networking by providing a layered framework that standardizes functions of a telecommunication system to enable interoperability between various systems and protocols. Each of the seven layers has specific roles: 1. Application Layer offers a user interface and manages communication through protocols like HTTP. 2. Presentation Layer translates, encrypts, and compresses data. 3. Session Layer establishes, maintains, and terminates connections. 4. Transport Layer ensures reliable data transfer with protocols such as TCP/UDP. 5. Network Layer handles logical addressing and routing of data packets across networks. 6. Data Link Layer manages physical addressing and error detection, ensuring data integrity within a local network. 7. Physical Layer conveys the bit streams through the physical medium, defining hardware specifications and electrical signals .

Logical addresses, such as IP addresses, are used for identifying a device on a network and can be changed as devices move between different networks. They work at the Network Layer (Layer 3) of the OSI model and facilitate inter-networking. Physical addresses, or MAC addresses, are fixed identifiers assigned to Network Interface Cards and are used at the Data Link Layer (Layer 2) for intra-network communication. Unlike logical addresses, physical addresses remain constant and are hardware-specific, ensuring data is accurately transmitted within the same local network .

VRRP (Virtual Router Redundancy Protocol) is an open standard protocol used to automatically assign available IP routers to participating hosts. VRRP enhances network reliability by ensuring continuity of services even when a router fails. It elects a 'master' router, while other routers act as backups. Through a seamless IP takeover, a backup router becomes the master if the current master fails. VRRP does not rely on specific ports like UDP but operates under protocol number 112. The simplicity and interoperability with multiple vendors make VRRP a robust solution for maintaining network connectivity .

Subnetting is the practice of dividing a larger network into smaller, more manageable subnetworks by modifying the subnet mask. This process is a vital technique for IP address conservation, as it allows for efficient allocation of IP addresses by converting host bits into network bits, reducing wastage and accommodating more local networks within a given IP address range. The number of networks formed is calculated using 2^n, where n is the number of bits borrowed. For example, borrowing 3 bits in a Class A network could be represented as 7.0.0.0/11, meaning there are new subnets with fewer host addresses, optimizing IP usage .

The Maximum Segment Size (MSS) is the largest amount of data, in bytes, that can be transmitted in a single TCP segment, excluding the TCP header. It typically measures as 1460 bytes since it is determined as the MTU minus IP and TCP header sizes. The Maximum Transmission Unit (MTU) is the largest size of a packet that can be sent over a network connection, and it is generally 1500 bytes for Ethernet. Both MSS and MTU impact data transfer by determining packet size efficiency; larger packets can increase throughput efficiency but may lead to fragmentation, while smaller packets reduce network throughput due to overhead but can traverse varied networks without issue .

IP address classes (A, B, C, D, and E) offer a structured way to allocate IP addresses based on network size and usage across public and private networks. Class A supports large networks with many hosts, while Classes B and C cater to medium-sized and smaller networks. Classes D and E are reserved for multicast and research, respectively. The benefits include simplified routing, hierarchical addressing, and easier management of large databases in network infrastructure planning. However, the rigid structure can lead to inefficient IP address utilization and lacks flexibility, especially with the rapid growth in the number of connected devices, which CIDR and subnetting aim to address .

A GRE (Generic Routing Encapsulation) tunnel is advantageous in VPNs because it provides a simple method for transporting packets across different networks through encapsulation. GRE is versatile, supporting various traffic types such as IPv4 unicast, multicast, and IPv6. It is easy to configure and integrates seamlessly with existing network infrastructures. Although developed by Cisco, GRE is widely implemented for its ability to encapsulate diverse protocols, making it an effective choice for forming encrypted tunnels, enhancing the privacy and security of communications over public networks .

You might also like