NET
NET
NET
Introduction
What is Network+ ?!
Targets
At Least 2 Computers with Physical & Logical Connection with goal of sharing
resources
Network Infra Structure & Application Infra Structure
Network Infra:
Switch: connecting devices inside the network (location: middle)
Router: connecting different networks (location: edge of nw)
Firewall: stops unauthorized access to service providers (location: anywhere)
...
=> Network = Data Transfer Infrastructure
What's for?
Client & Server (Service & Resource Sharing)
Being a Server is relative. device can give service and get service.
Each server only 1 service.
Virtulization: dividing resources of a single server to many smaller servers.
Active Or Passive?!
Active device is anything that connects to power and you can configure it.
Transmission Types
Unicast(1 audience) /Multicast(group of audience) /Broadcast(audience is
everyone) (for Unknown Destination)
Negotiation
Speed & Duplex
Simplex (1 sender 1 receiver) / Half Duplex (both can send and receive but
turn based) / Full Duplex -> Rx & Tx
Twisted Pair -> Category, Class
MDI, MDIX, Auto MDIX
Star-Star
MAC Address (Burn-in Address or physical address) -> Unique /48bits /OUI (ieee
lookup) + Device ID / Hex (0 to F)
Binary to Decimal/ Decimal to Binary / Binary to HEX
Min & Max MAC Address -> Braodcast MAC Address
How to See/change MAC Address? (why??)
bit 7 = 0 -> Burn in Address
7 = 1 -> Manually Change
8 = 0 -> Unicast
8 = 1 -> Is not Unicast
all bits 1 -> broadcast
3-Error Checking (Detection): preventing error in header of the frame.
FCS -> CRC
4-Encapsulation/Decapsulation
Switch (Layer 2)
Plug & Play
in the middle of network
Just one type of interface / by many interfaces (ports)
Rackmount
Managable/Un-Managable
Transparent
IP Address Confilict
1) 192.168.25.10
255.255.224.0
2) 172.16.8.200 /22
3) 10.10.10.43 /16
IP Address Classification:
First Octet ->
A: 0-127 -> /8
B: 128-191 -> /16
C: 192-223 -> /24
D: 224-239 -> Without Subnet Mask
Classfull: A:8/B:16/C:24
Classless
127: Loopback
0.0.0.0: unspecific IP Address
169.254.0.0/16: Automatic Private IP Address
IP Public or Private
Private: 10.0.0.0 /8
172.16.0.0 to 172.31.0.0 /16
192.168.0.0 /16
Public
Internet
Example:
192.168.0.2/30
--> is this ip's in a Network?
192.168.0.10/28
Router: Layer 3 / location:Boundary / Not Plug & Play: config / more interface /
Less port
Routing: Packet forwarding from input interface to output interface based on
destination ip address by Routing Table
Routing Table: Network Destination / Netmask / Gateway / Interface / Metric
Dynamic or Static
Routing Scenario
Host routing
Router Routing
Broadcast Domain?
How to Devide a Switch to multiple Broadcast Domain?
Valnning
Broadcast problem
Inter-Vlan Routing -> L3 Switch (MLS)
Access Layer / Distribute layer / Core layer
Ping -> App -> TCP/IP Connections -> ICMP -> Echo request & Echo Reply
ncpa.cpl
IPconfig
Ipconfig /?
IPconfig /all
Route Print
Transmit Failed. General Failure -> no packet created -> No suitable route : there
is no route in host routt table and there is no gateway.
Destination Host Unreachable -> No ARP Reply : there is a way in router table then
made made a ARP reply and sent to know the MAC of gateway but the gateway is not
accessible so there is no ARP Reply
Request Time Out -> No Echo Reply -> Drop -> Enable Routing & Remote Access
Ping /?
-n
-t
-l
Bytes & RTT &
TTL=time to live / every time routed, minus one TTL / to prevent packets from going
forever
Tracert : makes a packet with TTL=1 and sends, keeps doing that till it reaches the
destination. each times knows wich routher is where.
Port Types:
1- Well-Known ports (0-1023)
2- Registered ports (1024-49151)
3- Dynamic Ports (49152-65535)
Netstat (-n/-a/interval)
netstat -na 3 | findstr x
FTP:21
File Transfer Protocol
Telnet:23
a network protocol used to virtually access a computer and provide a two-way,
collaborative and text-based communication channel between two machines.
SSH:22
Secure Socket Shell, is a network protocol that gives users, particularly system
administrators, a secure way to access a computer over an unsecured network.
Kerberos:88
Kerberos is a protocol for authenticating service requests between trusted hosts
across an untrusted network, such as the internet. Kerberos support is built in to
all major computer operating systems, including Microsoft Windows, Apple macOS,
FreeBSD and Linux.
POP3:110
Post Office Protocol 3, or POP3, is the most commonly used protocol for receiving
email over the internet. This standard protocol, which most email servers and their
clients support, is used to receive emails from a remote server and send to a local
client.
POP3 is not intended to support email manipulation or synchronization on the
server, since the email is meant to be downloaded to the client and then deleted
from the server. For these use cases, the more advanced and complex Internet
Message Access Protocol (IMAP) is used.
IMAP4:143
Internet Message Access Protocol, or IMAP, is a standard email retrieval (incoming)
protocol. It stores email messages on a mail server and enables the recipient to
view and manipulate them as though they were stored locally on their device(s).
NTP:123
Network Time Protocol (NTP) is an internet protocol used to synchronize with
computer clock time sources in a network.
RDP:3389
Remote desktop protocol (RDP) is a secure network communications protocol developed
by Microsoft.
LDAP:389 LDAPS:636
LDAP (Lightweight Directory Access Protocol) is a software protocol for enabling
anyone to locate data about organizations, individuals and other resources such as
files and devices in a network -- whether on the public internet or a corporate
intranet.
SMTP:25
SMTP (Simple Mail Transfer Protocol) is a TCP/IP protocol used in sending and
receiving email between mail servers.
SMB:445
The Server Message Block protocol (SMB protocol) is a client-server communication
protocol used for sharing access to files, printers, serial ports and other
resources on a network.
DNS:53
NBT:137,138,139
NetBIOS over TCP/IP
SNMP:161
Simple Network Management Protocol (SNMP) is an application-layer protocol for
monitoring and managing network devices on a local area network (LAN) or wide area
network (WAN).
The purpose of SNMP is to provide network devices, such as routers, servers and
printers, with a common language for sharing information with a network management
system (NMS).
DHCP:67,68
DHCP (Dynamic Host Configuration Protocol) is a network management protocol used to
dynamically assign an IP address to any device, or node, on a network so it can
communicate using IP.
HTTP:80 HTTPS:443
Types of connections
Connection-less
Speed -> for question -> UDP
Connection Oriented
Quality -> for Encryption -> TCP
TCP:
Connection Negotiation (3-Way Hand shaking)
Sequencing / Window Size
Connection Maintenance
Ack / Selective Ack / Nack
Connection Termination
Fin
Dynamic Route
Layer 5: Session
Authentication/Authorization
Duplexing/Speed
Termination/Restoration
Quality Control
Layer 6: Presentation
Encryption/Decryption
Compression/Decompression
File Formatting
Encoding
Layer 7: Application
Determining the exchange protocol
GUI
Specify the destination address
2- Authorization
Permission/Right/Access
3- Accounting
Qouta/Credit
Packet capture
the action of capturing Internet Protocol (IP) packets for review or analysis.
------------------------------------
DHCP