Protocol Stacks

TCP/IP:-इस Protocol समूह से Modern Communication कर सकते हैं इसमें केबल 4 Layers होती हैं ।
1-Application  2-Transport  3-Internet  4-Network

Socket:-Tcp Protocol में Port का प्रयोग होता है और Port Number और IP मिलकर एक Socket बनाते है । 
IP-10.10.10.29
Port-23
Socket-10.10.10.10.29:23

Check the Protocol Port
Network Card+Properties+Sharing+Setting.

PAP:-(Password Authentication Protocol)
ये Authentication का कमजोर Method है इस में password और user name Plain text पर जाता है । 

CHAP:-(Chalange Hands Shakeauthentication Protocol)
ये Security का Strong Protocol है इसमे यूजर और password Incripted Chipher text form में जाता है । 

TCP:-(Transmission Control Protoco) TCP Protocol Connection Oriented होता है । 

IM:-(Instant messaging) ये E-mail से थोड़ी Difrent Service है ये smg की Delebry तुरंत देती है । इसमे XMPP , OSCAR ये IRC पर Basic होता है । 
XMPP:-Extensible Messaging and Presence Protocol 
OSCAR:-Open System for Communication in Realtime
IRC:-Internet Relay Chat
Example:-Fb Chat , gtalk , vtalk , jabbar , ATM.

UDP:-(User Data Gram Protocol) ये Connection Less Protocol है । इसकी Transfer Speed Tcp की अपेछा Fast होती है । लेकिन यह Data की कोई गारंटी नहीं लेता ।

ICMP:-(Internet Control Massage Protocol) यह Data massage को Control करता है यह Error Reporting Data है । Ping इसके दुयारा ही जाता है ।

ARP:-(Address Resulution Protocol) इस Protocol की Help से IP Address को Mac Address में Divice को Map करते है ।

RARP:-(Revirs Address Resolution Protocol) इस Protocol की Help से Mac Address को IP Address में Convert  करते है । Mac Address 48 -bit का होता है ।

Encapsulation:-Data bits का Fream और Fream का Packets में Convert होना । OSI Model और TCP /IP Model में Data Packed का Upper layer तक जाना Encapsulation कहलाता है ।



IP Addressing :-इस के 5 Class होते है । 
Class A  1-126
Class B  128-191
Class C  192-223
Class D  224-239
Class E  240-255

ClassLeftmost bitsStart addressFinish address
A0xxx0.0.0.0127.255.255.255
B10xx128.0.0.0191.255.255.255
C110x192.0.0.0223.255.255.255
D1110224.0.0.0239.255.255.255
E1111240.0.0.0255.255.255.255

Note:Class D,E का use Scientifle Lab में होता है । Class A में आगे की 8 Bit Network कि और पीछे Host की होती है । 
n.n.nnnnnn.hhhhhhhh.h.h
  Network   8Host    8h 8h
8Network   24Host

Class B की 16 BIT आगे और Network 16 BIT पीछे Host 
Class C की 24 BIT आगे और Network 8 BIT पीछे Host 

 IP Address Class Network and Host Capacities
IP Address Class
Total # Of Bits For Network ID / Host ID
First Octet of IP Address
# Of Network ID Bits Used To Identify Class
Usable # Of Network ID Bits
Number of Possible Network IDs
# Of Host IDs Per Network ID
Class A
8 / 24
0xxx xxxx
1
8-1 = 7
27-2 = 126
224-2 = 16,277,214
Class B
16 / 16
10xx xxxx
2
16-2 = 14
214 = 16,384
216-2 = 65,534
Class C
24 / 8
110x xxxx
3
24-3 = 21
221 = 2,097,152
28-2 = 254


IP address classes

Class1st Octet Decimal Range1st Octet High Order BitsNetwork/Host ID (N=Network, H=Host)Default Subnet MaskNumber of NetworksHosts per Network (Usable Addresses)
A1 – 126*0N.H.H.H255.0.0.0126 (27 – 2)16,777,214 (224 – 2)
B128 – 19110N.N.H.H255.255.0.016,382 (214 – 2)65,534 (216 – 2)
C192 – 223110N.N.N.H255.255.255.02,097,150 (221 – 2)254 (28 – 2)
D224 – 2391110Reserved for Multicasting
E240 – 2541111Experimental; used for research

Note: Class A addresses 127.0.0.0 to 127.255.255.255 cannot be used and is reserved for loopback and diagnostic functions.

Private IP Addresses

ClassPrivate NetworksSubnet MaskAddress Range
A10.0.0.0255.0.0.010.0.0.0 - 10.255.255.255
B172.16.0.0 - 172.31.0.0255.240.0.0172.16.0.0 - 172.31.255.255
C192.168.0.0255.255.0.0192.168.0.0 - 192.168.255.255


OSI Model


Layer #NameMnemonicEncapsulation UnitsDevices or ComponentsKeywords/Description
7ApplicationAlldataPCNetwork services for application processes, such as file, print, messaging, database services
6PresentationPeopledataStandard interface to data for the application layer. MIME encoding, data encryption, conversion, formatting, compression
5SessionSeemdataInterhost communication. Establishes, manages and terminates connection between applications
4TransportTosegmentsEnd-to-end connections and reliability. Segmentation/desegmentation of data in proper sequence. Flow control
3NetworkNeedpacketsrouterLogical addressing and path determination. Routing. Reporting delivery errors
2Data LinkDataframesbridge, switch, NICPhysical addressing and access to media. Two sublayers: Logical Link Control (LLC) and Media Access Control (MAC)
1PhysicalProcessingbitsrepeater, hub, transcieverBinary transmission signals and encoding. Layout of pins, voltages, cable specifications, modulation

OSI comparision with TCP/IP Protocol Stack

OSI #OSI Layer NameTCP/IP #TCP/IP Layer NameEncapsulation UnitsTCP/IP Protocols
7Application4ApplicationdataFTP, HTTP, POP3, IMAP, telnet, SMTP, DNS, TFTP
6Presentationdata
5Sessiondata
4Transport3TransportsegmentsTCP, UDP
3Network2InternetpacketsIP
2Data Link1Network Accessframes
1Physicalbits

0 comments:

Post a Comment