A. Physical
A. Physical
A. Physical
· Ethernet Defines physical layer attributes , defines protocols to nodes in same network ie a
single link
· Allows different devices to communicate with other networks through devices known as routers
· A network of different networks is called internetwork most famous internetwork is the internet
· A node can have several client and server applications running at the same time
D. The Transport layer
· Decides which programs get what data eg. browser gets webpages and mail app gets emails
· TCP has mechanisms for reliable data transfer UDP does not
E. Application layer
1. Physical layer
· Attributes such as Vtg level of one bit, Duration of 1 bit, Use of pins in pin connectors, Topology,
How to establish and terminate connection
· Sender breaks the info into data frames and transmits each frame sequentially, then processes
the acknowledgement from the receiver
· LAN DL protocols ARCnet(token bus), Ethernet, Token Ring(ring or star network... only a host that
has the token can transmit data)
3. Network
· Prevent formation of bottlenecks by having too many packets in subnet at the same time
· Segmentation of data
· Marks packets with seqencing info if they are received out of order
· Allows individual applcations to acces processes with local address of process called ports and
the connection is called sockets
5. Session Layer
· Token mgmt
· Synchronization - inserts checkpoints so if the session is terminated abruptly only data after last
checkpoint is retransmitted
6.Presentation layer
· Electronics mail handling , vitual terminal to control remote systems,remote file access etc
Protocols
DEVICES
1.cables(physical)
2 types-copper and fiber
cat5e-reduce crosstalk
cat6- better than cat 5 and 5e but expensive and has less max length at high speed
2.hub(physical)
· lots of noise collision domain(only one device can comm at a time) if multiple send the signal can
interfere with each other leading to data losses
3.switch(dll)
4.router(network)
· inspect ip data and transmit to particular network using static tables or dynamically
· share data with each other using bgp or border gateway protocol for most optimum paths
PHYSICAL
· std cat6 cable has 8 wires of twisted pairs allow duplex comm....(.simplex is 1 direction)...
reserves 1-2 pairs for a single direction(full duplex 2 way at same time half duplex 2 way but at
diff times)
· ETHERNET: CSMA\CD -checks if a channel is clear and a device can send data. If 2 nodes try to
send data at the same time the computers detect the collision and stop sending data
· MAC address: 48bit 6groups of 2 digits in hex or 1digits in octet 2^48 possible adresses
· MAC is divided into 2 parts 1st 3 octets are
OUI-Manufacturer specific
Vendor assigned
eg (cisco)(vendorassigned)
· If LSB of 1st octet of destination address is 0 it meant for only that(unicast-send all meant for 1)
· If LSB of 1st octet of destination address is 1 it is multicast(send all accept by dest cofigred to
accept multicast)
Preamble
· 1st 7bytes alternate 1's & 0's buffer between frames last byte is SFD or start frame delimiter
(peamble over)
Destination MAC
Source MAC
NETWORK LAYER
· IP addresses 32 bit adresses of 4 octet 1 octet=0 to 255 they belong to networks not to devices
protocol-tcp\udp
Class A 1st Octet Network ID 2nd 3rd and 4th Octet is Host ID (24 bit for host space 2^24 max host)
ARP-IP to MAC
--- ARP message is broadcasted ARP response with MAC address is given
SUBNETTING
SUBNET ID
32 bit
wherever there is a corresponding 1 for ip in subnet mask is subnet id and remainder is host id
total number of subnet mask are 2 less than max since 0 not used and 255 for broadcast
In CIDR classes are abandoned - if one wants to increase the number of hosts increase a 0 in subnet mast
and make it 255.255.254.0
Router
Sends frame to router-decapsultes ethernet frame-uses arp for finding location-duplicates datagram-
decrements ttl-puts its own mac as src-encapsulates frame transmit
Routing table
Routing protocols
----+++Interior gateway protocol(within a single autonomous network eg. router in a corporation or ISP)
it sends info about the connection state to all the surrounnding neighbours the sending router computes
it for best path
--distance vector protocols
Eg. BGP
No Exterior gateway protocol will attempt connection to it can be used inside a network
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
TRANSPORT LAYER
Port 21-FTP
TCP SEGMENT
TCP Flags
URG-urgent
ACK-acknowledgement
PSh-Push
RST-reset
SYN-syncronize
FIN-finish
SYN
SYN\ACK
ACK
fin
ack
fin
ack
Socket states
Syn_SENT(syn sen)
Syn_RECEIVED(syn\ack received)
Established(ack received)
Fin_wait(fin rec)
close_wait(ack sen ...closed at tcp layer but app hasnt released hold on socket)
closed
APPLICATION LAYER
All layers
ARP request
checksum
decapsulation
checks port
Types
recursive resolution
· check in 13 root servers (respond in a tld name server that shld be queried)(anycast meaning
multiple servers having same ip)
A Record- point to a certain IPv4 address (multiple A records can exits at a single address)(DNS round
robin 1st configured ...
10.1.1.1 10.1.1.2
10.1.1.2 10.1.1.3
10.1.1.3 10.1.1.4
10.1.1.4 10.1.1.1
CNAME record - transfer traffic from one domain to another(google to www.google.com to ip)
.com TLD
google domain
www subdomain
authoritativ serve()
----Resource records
==DHCP discovery
DHCP lease
--DHCPOFFER
--DHCPREQUEST
--DHCPACK
DHCP release
Inbound:Port preservation router remembers port of client .Router directs all traffic toward a particular
port to that node
VPN
The App Trans network layer are encapsulted inside payload of transport layer and sent through tunnel
then layer are stripped away packet decrypted and encapsulated ad forwarded
Dial Up
· TCarrier technologies
2. T3 3 T1 lines
3. call and use data at the same time data transmitted at diff freq of call
4. ADSL- upload slower than download
· Cable broadband
· Fibre FTTX
10. Fibre to the neighbourhob fttn after that twisted pair copper
13. fttb and ftth may be fttp which is fibre to the premises
14. uses ONT convert optical protocols to twisted pair protocols
PPP(Point to Point protocol) - between ISP and client between 2 point(used by ISP to enable dial up)
WANs
Wireless Networking
\\WLAN - All devices comm with access points forward to connected to gateway router
Due to absence of switches wireless devices use diff freq bands to avoid collision domains
Security
MAC filtering
nslookup
15. google.com
Hosts files
eg 2001:0db6:85a3:0000:0000:8a3e:0270:7324
ff00:: -multicast
notation
2001:0db6:85a3:0000:0000:8a3e:0270:7324
can be
2001:db685a3::8a3e:270:7324
Ipv4 on Ipv6
1st 80 0s
16 1s
Ipv4 bits
Ipv6 on IPv4
IPv6 tunnels that encapsulate IPv6 in IPv4 header pass them through IPv4 network decapsulate and send
them along