Beruflich Dokumente
Kultur Dokumente
OSI Model
OSI means Open System Interconnect model. Developed by the International Organization for Standardization in 1974. It consists of seven layers. Each layer has a different but specific processing function.
Advice Upper Layer Person or Software Layer Sales Take Not Lower Layer or Do Hardware Layer Please
3
Application Layer
Application Layer is responsible for providing Networking Services to user. It also known as Desktop Layer. Identification of Services is done using Port Numbers. This layer supports application and end-user processes. Communication partners are identified, quality of service is identified, user authentication and privacy are considered, and any constraints on data syntax are identified. Everything at this layer is application-specific. Tiered application architectures are part of this layer.
Ports are nothing but Socket i.e. Entry and Exit Point to the Layer Total No. Ports 0 65535 Reserved Ports 0 1023 Open Ports 1024 65535 4
Client
Web Server
Client
Web Server
Client
FTP Server
HTTP
80
21 25 23 69
8
Application
80 21 25 53 67 69
Data
Presentation Layer
Application Presentation Session Transport Network Data Link Physical Encoding Decoding Encryption Decryption Compression Decompression
10
Presentation Layer is responsible for converting data into standard format. Examples : ASCII, EBCDIC, JPEG, MPEG, BMP, MIDI, WAV, MP3 Following tasks are perform at presentation layer :
How data flows from Presentation Layer Application Presentation Session Transport Network Data Link Physical
11
Data Data
Session Layer
Session Layer is responsible establishing, maintaining and terminating session. Session ID also works at Session Layer. Creates Virtual Circuit Organize their communication by offering three different modes Simplex Half Duplex Full Duplex Examples : RPC Remote Procedure Call . SQL Structured Query language. NFS Network File System. PDU - Formatted Data
12
Half Duplex
It uses only one wire pair with a digital signal running in both directions on the wire. It also uses the CSMA/CD protocol to help prevent collisions and to permit retransmitting if a collision does occur. If a hub is attached to a switch, it must operate in halfduplex mode because the end stations must be able to detect collisions. Half-duplex Ethernet typically 10BaseT is only about 30 to 40 percent efficient because a large 10BaseT network will usually only give you 3 to 4Mbps at most.
13
Full Duplex
In a network that uses twisted-pair cabling, one pair is used to carry the transmitted signal from one node to the other node. A separate pair is used for the return or received signal. It is possible for signals to pass through both pairs simultaneously. The capability of communication in both directions at once is known as full duplex.
14
15
Transport Layer
Transport Layer is responsible for endto-end connectivity. It is also known as heart of OSI Layers. Following task are performed at Transport Layer : Identifying Service Multiplexing & De-multiplexing Segmentation Sequencing & Reassembling Flow Control Error Correction Acknowledgment PDU - Segments
16
Identifying Service
TCP Transmission Control Protocol Connection Oriented Acknowledgement Reliable Slower Port No. 6 e.g. HTTP, FTP, SMTP
Connection Less No Acknowledgement Unreliable Faster Port No. 17 e.g. DNS, DHCP, TFTP
17
Transport
TCP - 6 UDP - 17
Segmentation
Hello! How are you ? Hello! How are you ? Hello! How Are You ?
19
you Hello! Hello! HowHow ? Are are you ? You Hello! Hello! How are How ? you ? You Hello! How ? Are Hello! How Are You ? are
20
Hello! Hello! How are you ? Hello! How are How are you ? Hello! How Are You ? you ?
1/5 2/5 3/5 4/5 5/5
You
4/5
Hello! How
1/5 2/5
?
5/5
Are
3/5
21
Error Correction
Segment Missing Hello! Hello! How are you ? Hello! How are How are you ? Hello! How Are You ? you ?
1/5 2/5 3/5 4/5 5/5
You
4/5
Hello! How
1/5 2/5
?
5/5
Are
3/5
22
23
24
Distinguishes between upper-layer applications Establishes end-to-end connectivity between applications Defines flow control Provides reliable or unreliable services for data transfer
TCP
UDP
SPX
Network
IP
IPX
25
Reliable Service
Sender
Receiver
Synchronize Acknowledge, Synchronize Acknowledge Connection Established Data Transfer (Send Segments)
26
Network Layer
Network Layer is responsible for providing best path to data to reach destination. Logical Addressing sits on this layer. Device working on Network Layer is Router. Sometimes referred to as the Cisco Layer. End to End Delivery Provide logical addressing that routers use for path determination Segments are encapsulated Internetwork Communication Packet forwarding Packet Filtering Makes Best Path Determination Fragmentation
PDU Packets IP/IPX
27
It is divided into two parts Routed Protocols e.g. IP, IPX, Apple Talk. Routing Protocols e.g. RIP, IGRP, OSPF, EIGRP
28
Routed Protocols
Segment
192.168.1.1
192.168.1.2
29
Routing Protocols
www.zoomgroup.com
30
Application Presentation Session e.g. Router Transport Network Data Link Physical
31
Datalink Layer
Performs Physical Addressing This layer provides reliable transit of data across a physical link. Combines bits into bytes and bytes into frames Access to media using MAC address Error detection, not correction LLC and MAC Logical Link Control performs Link establishment MAC Performs Access method
Preamble
DMAC
SMAC
Data length
DATA
FCS
32
Datalink Layer
divided into
LLC Logical Link Control It talks about Wan protocols e.g. PPP, HDLC, Frame-relay MAC Media Access Control It talks about Physical Address. It is 48 bit Addressing i.e. 12 digit Hexadecimal No. It is also responsible for Error Detection. Device working on Data Link Layer is Switch, Bridge, NIC.
33
PC-A CRC No. 33333 PC-B Source MAC 00-20-18-C0-07-71 CRC No. 11114 Error Detected 33333 11114 46323 99434 43434 99323 55434 89696 22222 32434 00000 Destination MAC Packet Error Detected 00-20-18-C0-07-72
B
Packet
192.168.1.1 00-20-18-C0-07-71
192.168.1.2 00-20-18-C0-07-72
34
Packet
20202 11114 46323 99434 43434 99323 55434 89696 22222 32434 00000
192.168.1.1 00-20-18-C0-07-71
192.168.1.2 00-20-18-C0-07-72
35
Application Presentation Session Transport e.g. Switch Network Data Link Physical
36
Layer 2
MAC Layer802.3
Number of Bytes
6
Destination Address
6
Source Address
2 Length
Variable Data
4 FCS
Preamble
MAC Address
synchronize senders and receivers
37
Ethernet frame
Ethernet CSMA /CD - Carrier Sense Multiple Access / Collision Detection local area network A broadcast network - all frames that cross a segment can be heard by all machines on the segment All machines have equal access, they wait for a quiet time to transmit, collisions occur when two machines transmit at the same time. When a collision occurs both the machines apply a back off time that prevents them from colliding again Services both the Physical and Data Link layers
FSC
Data
Type
Source
Destination
SOF
Preambl e
MAC Address
MAC Address
Start of Frame
4 bytes
46-1500 bytes
2 bytes
6 bytes
6 bytes
1 byte
38 7 bytes
OR
Each segment has its own collision domain. All segments are in the same broadcast domain.
39
All data that is to be encapsulated. length is determined by how long the station can hold a token
Packet's address
1 byte
1 byte
1 byte
varies
6 bytes
6 bytes
1 byte
1 byte
1 byte 40
Switches
Switch
Memory
Each segment is its own collision domain. Broadcasts are forwarded to all segments.
41
Physical Layer
Physical Layer is responsible for electrical, mechanical or procedural checks. Data will be converted in Binary that is 0s & 1s. Data will be in the form of electrical pulses if it is Coaxial or Twisted Pair cable and in the form of Light if it is Fiber Optic Cable. Devices working at Physical Layer are Hubs, Repeaters, Cables, Modems etc.
42
Frame
43
Application Presentation Session Transport Network e.g. Hub Data Link Physical
A
Application Presentation Session Transport Network Data Link Physical
Data Data
B
Application Presentation Session Transport TH Network NH Data Link DTD H Physical
45
Data
Data
Data
Data
TH Data Segment
Packet NH Segment Packet DHFrameDT
Bits
Bits
OSI Layers Application Presentation Session Transport Network Data Link Physical
TCP/IP Layers
Application
Physical Layer
Defines
Media type Connector type Signaling type
Physical 802.3
02.3 is responsible for LANs based on the carrier sense multiple access collision detect (CSMA/CD) access methodology. Ethernet is an example of a CSMA/CD network.
47
48
All devices are in the same collision domain. All devices are in the same broadcast domain. Devices share the same bandwidth.
49
50
Data Encapsulation
Application Presentation Upper-Layer Data TCP Header Upper-Layer Data Session
Transport Network
IP Header
Data
LLC Header
Data
FCS
Data-Link
Frame
MAC Header
Data
FCS
0101110101001000010
Physical
Bits
51
Data Encapsulation
52
After riding your new bicycle a few times in Bangalore, you decide that you want to give it to a friend who lives in DADAR, 53 Mumbai.
Make sure you have the proper directions to disassemble and reassemble the bicycle. 54
Call your friend and make sure you have his correct address.
55
Disassemble the bicycle and put different pieces in different boxes. The boxes are labeled 56 1 of 3, 2 of 3, and 3 of 3.
Upon examining the destination address, Dadar post office determines that your boxes should be delivered to your written home 59 address.
Your friend calls you and tells you he got all 3 boxes and he is having another friend named BOB reassemble the 60 bicycle.
BOB is finished and presents the bicycle to your friend. Another way to say it is that your friend is finally getting 62 him present.
64
Type of Transmission
Unicast Multicast Broadcast
65
Broadcast Domain
A group of devices receiving broadcast frames initiating from any device within the group Routers do not forward broadcast frames, broadcast domains are not forwarded from one broadcast to another.
66
Collision
The effect of two nodes sending transmissions simultaneously in Ethernet. When they meet on the physical media, the frames from each node collide and are damaged.
67
Collision Domain
The network area in Ethernet over which frames that have collided will be detected. Collisions are propagated by hubs and repeaters Collisions are Not propagated by switches, routers, or bridges
68
Data-Link
802.2
Physical
802.3
EIA/TIA-232 V.35
69
Layer 3 : (cont.)
Network Layer End-Station Packet
IP Header Source Address Destination Address Data
Logical Address
172.15.1.1
Network Node
Route determination occurs at this layer, so a packet must include a source and destination address. Network-layer addresses have two components: a network component for internetwork routing, and a node number for a device-specific address. The example in the figure is an example of an IP packet and 70 address.
Layer 3 (cont.)
Address Mask
172.16.122.204 255.255.0.0
172 16 122 204
10101100
255
00010000
255
01111010
0
11001100
0
11111111
11111111
Network
00000000
00000000
Host
71
72
HTTP (hyper text transfer protocol) Port no =80 Used to transfer HTML documents across the internet To using to access the web page SNMP (Simple network management protocol) Port no: 161 It enables you to monitor a network from a single workstation called SNMP manager You can make inquires to another network device running an SNMP agent SMTP (simple mail transfer protocol) Port no = 25 Used to send the email NNTP (Network News transfer protocol) Port no = 119 I t is used for sending news ESMTP (enhanced simple mail transfer protocol)
Used to send the email
NET BIOS (Network Basic Input Output system) Port no = Used to resolve the machine name to IP address
79