OSI Model: Difference between revisions
Content added Content deleted
No edit summary |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
! colspan="5" | OSI Model |
! colspan="5" | OSI Model |
||
|- |
|- |
||
! PDU |
|||
! Data unit |
|||
! Layer |
! Layer |
||
! style="width: |
! style="width:70em;" | Function |
||
! Examples |
! Examples |
||
|- |
|- |
||
| style="background:#d8ec9c;" rowspan="3" | Data |
| style="background:#d8ec9c;" rowspan="3" | Data |
||
| style="background:#d8ec9b;" | 7. Application |
| style="background:#d8ec9b;" | 7. Application |
||
| style="background:#d8ec9c;" | |
| style="background:#d8ec9c;" | * Supports Application and End-User processes.<br /> * Provides Application services for file transfers, e-mail, and other network software services. |
||
| HTTP, FTP, SMTP, SSH, TELNET |
| HTTP, FTP, SMTP, SSH, TELNET |
||
|- |
|- |
||
| style="background:#d8ec9b;" | 6. Presentation |
| style="background:#d8ec9b;" | 6. Presentation |
||
| style="background:#d8ec9b;" | |
| style="background:#d8ec9b;" | * Provides independence from differences in data representation (e.g., encryption) by translating from application to network format, and vice versa.<br />* Works to transform data into the form that application layer can accept.<br />* This layer formats and encrypts data to be sent across a network, providing freedom from compatibility problems. |
||
| HTML, CSS, GIF |
| HTML, CSS, GIF |
||
|- |
|- |
||
| style="background:#d8ec9b;" | 5. Session |
| style="background:#d8ec9b;" | 5. Session |
||
| style="background:#d8ec9b;" | |
| style="background:#d8ec9b;" | * Establishes, manages and terminates connections between applications.<br />* Sets up, coordinates, and terminates conversations, exchanges, and dialogues between the applications at each end.<br />* It deals with session and connection coordination. |
||
| RPC, PAP, SSL, SQL, NetBIOS, |
| RPC, PAP, SSL, SQL, NetBIOS, |
||
|- |
|- |
||
| style="background:#e7ed9c;" | Segments |
| style="background:#e7ed9c;" | Segments |
||
| style="background:#e7ed9c;" | 4. Transport |
| style="background:#e7ed9c;" | 4. Transport |
||
| style="background:#e7ed9c;" | |
| style="background:#e7ed9c;" | * Provides transparent transfer of data between end systems, or hosts, and is responsible for end-to-end error recovery and flow control.<br />* It ensures complete data transfer. |
||
| TCP, UDP, SCTP |
| TCP, UDP, SCTP |
||
|- |
|- |
||
| style="background:#eddc9c;" | Packet/Datagram |
| style="background:#eddc9c;" | Packet/Datagram |
||
| style="background:#eddc9c;" | 3. Network |
| style="background:#eddc9c;" | 3. Network |
||
| style="background:#eddc9c;" | |
| style="background:#eddc9c;" | * Provides routing technologies and handles logical addressing.<br />* Routing and forwarding are functions of this layer, as well as addressing, internetworking, error handling, congestion control and packet sequencing. |
||
| IPv4, IPv6, IPsec, AppleTalk, ICMP |
| IPv4, IPv6, IPsec, AppleTalk, ICMP |
||
|- |
|- |
||
| style="background:#e9c189;" | Bit/Frame |
| style="background:#e9c189;" | Bit/Frame |
||
| style="background:#e9c189;" | 2. Data link |
| style="background:#e9c189;" | 2. Data link |
||
| style="background:#e9c189;" | |
| style="background:#e9c189;" | * Handles Physical Addressing.<br />* Data packets are encoded and decoded into bits.<br />* It is divided into two sub layers: Media Access Control (MAC) layer and Logical Link Control (LLC) layer.<br />* The MAC sub layer controls how a computer on the network gains access to the data and permission to transmit it. <br />* The LLC layer controls frame synchronization, flow control and error checking. |
||
| PPP, IEEE 802.2, L2TP, MAC |
| PPP, IEEE 802.2, L2TP, MAC |
||
|- |
|- |
||
| style="background:#e9988a;" | Bit |
| style="background:#e9988a;" | Bit |
||
| style="background:#e9988a;" | 1. Physical |
| style="background:#e9988a;" | 1. Physical |
||
| style="background:#e9988a;" | |
| style="background:#e9988a;" | * Conveys the bit stream - electrical impulse, light or radio signal — through the network at the electrical and mechanical level.<br />* Provides the hardware means of sending and receiving data on a carrier, including defining cables, cards and physical aspects. |
||
| DSL, USB, ISDN, RS-232 |
| DSL, USB, ISDN, RS-232 |
||
|} |
|} |
||
Line 184: | Line 184: | ||
{{DISQUS}} |
{{DISQUS}} |
||
<comments></comments> |
Latest revision as of 21:50, 1 December 2019
Brief OSI Model
- OSI Layer Control information and Functions:
OSI Model | ||||
---|---|---|---|---|
PDU | Layer | Function | Examples | |
Data | 7. Application | * Supports Application and End-User processes. * Provides Application services for file transfers, e-mail, and other network software services. |
HTTP, FTP, SMTP, SSH, TELNET | |
6. Presentation | * Provides independence from differences in data representation (e.g., encryption) by translating from application to network format, and vice versa. * Works to transform data into the form that application layer can accept. * This layer formats and encrypts data to be sent across a network, providing freedom from compatibility problems. |
HTML, CSS, GIF | ||
5. Session | * Establishes, manages and terminates connections between applications. * Sets up, coordinates, and terminates conversations, exchanges, and dialogues between the applications at each end. * It deals with session and connection coordination. |
RPC, PAP, SSL, SQL, NetBIOS, | ||
Segments | 4. Transport | * Provides transparent transfer of data between end systems, or hosts, and is responsible for end-to-end error recovery and flow control. * It ensures complete data transfer. |
TCP, UDP, SCTP | |
Packet/Datagram | 3. Network | * Provides routing technologies and handles logical addressing. * Routing and forwarding are functions of this layer, as well as addressing, internetworking, error handling, congestion control and packet sequencing. |
IPv4, IPv6, IPsec, AppleTalk, ICMP | |
Bit/Frame | 2. Data link | * Handles Physical Addressing. * Data packets are encoded and decoded into bits. * It is divided into two sub layers: Media Access Control (MAC) layer and Logical Link Control (LLC) layer. * The MAC sub layer controls how a computer on the network gains access to the data and permission to transmit it. * The LLC layer controls frame synchronization, flow control and error checking. |
PPP, IEEE 802.2, L2TP, MAC | |
Bit | 1. Physical | * Conveys the bit stream - electrical impulse, light or radio signal — through the network at the electrical and mechanical level. * Provides the hardware means of sending and receiving data on a carrier, including defining cables, cards and physical aspects. |
DSL, USB, ISDN, RS-232 |
SuperNetting
- A network that is formed from the combination of two or more networks (or subnets) with a common Classless Inter-Domain Routing (CIDR) prefix.
- It must not contain other prefixes of networks that do not lie in the same routing path.
- Also called Supernetting, Prefix Aggregation, Route Aggregation, or Route Summarization.
- Steps for calculating a Supernet
192.168.98.0 192.168.99.0 192.168.100.0 192.168.101.0 192.168.102.0 192.168.105.0
- Addresses are converted to binary format:
Address | First Octet | Second Octet | Third Octet | Fourth Octet |
---|---|---|---|---|
192.168.98.0 | 11000000 | 10101000 | 01100010 | 00000000 |
192.168.99.0 | 11000000 | 10101000 | 01100011 | 00000000 |
192.168.100.0 | 11000000 | 10101000 | 01100100 | 00000000 |
192.168.101.0 | 11000000 | 10101000 | 01100101 | 00000000 |
192.168.102.0 | 11000000 | 10101000 | 01100110 | 00000000 |
192.168.105.0 | 11000000 | 10101000 | 01101001 | 00000000 |
- Bits at which the common pattern of digits ends are located.
- The number of common bits is counted.
- The summary route is found by setting the remaining bits to zero,
- It is followed by a slash and then the number of common bits.
First Octet | Second Octet | Third Octet | Fourth Octet | Address | Netmask |
---|---|---|---|---|---|
11000000 | 10101000 | 01100000 | 00000000 | 192.168.96.0 | /20 |
- The summarized route is 192.168.96.0/20. The subnet mask is 255.255.240.0.
- This summarized route also contains networks that were not in the summarized group:
192.168.96.0 192.168.97.0 192.168.103.0 192.168.104.0 192.168.106.0 192.168.107.0 192.168.108.0 192.168.109.0 192.168.110.0 192.168.111.0
- It must be assured that the missing network prefixes do not exist outside of this route.
- Example
- An ISP is assigned a block of IP addresses by a regional Internet registry (RIR) of 172.1.0.0 to 172.1.255.255.
- The ISP might then assign subnetworks to each of their downstream clients, e.g:
Customer A will have the range 172.1.1.0 to 172.1.1.255 Customer B would receive the range 172.1.2.0 to 172.1.2.255 Customer C would receive the range 172.1.3.0 to 172.1.3.255, and so on.
- Instead of an entry for each of the subnets 172.1.1.x and 172.1.2.x, etc., the ISP could aggregate the entire 172.1.x.x address range and advertise the network 172.1.0.0/16 on the Internet community, which would reduce the number of entries in the global routing table.
Misc
- OSPF is a layer 4 protocol
Encapsulated in an IP Packet(Protocol no 89) Uses Acknowledgement
- RIP is a layer 7 protocol(uses UDP port 512)
- BGP is a layer 7 protocol (uses Port no 179)
- A PC can have only 1 Default Gateway configured. Other Interfaces will generally not have any default gateway.
- References
{{#widget:DISQUS |id=networkm |uniqid=OSI Model |url=https://aman.awiki.org/wiki/OSI_Model }}