Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

LFCE Prep Course -- OSI Network Model (Part 1)

$
0
0

Join us in this weekly blog series to get a sneak peek at the new linux Foundation Certified Engineer Training Course . Download the full sample chapter: Linux Networking Concepts and Review.

Introduction

In this series, we're going to have a look at Linux networking concepts: the OSI model for networking, network topology, the domain name system, and how to start and stop networking services on various Linux distributions.

The first two parts of the series review the 7 OSI networking layers. Understanding the OSI model is necessary for understanding how computer networking works. The OSI layers are theoretical, but they help you understand how computers communicate; how interconnection devices such as Ethernet interfaces, repeaters, bridges, switches and routers work, and where they fit in computer networks; how WAN and LAN technologies work; and give insight into managing Web applications; and troubleshooting.

fig-1_1.png
LFCE Prep Course -- OSI Network Model (Part 1)

Used with permission

The OSI Model

The standard OSI network layers model has seven layers. Today we'll look at layers 7-4, and in part 2 examine layers 3-1.

The OSI (Open Systems Interconnection) Model was created to standardize the language used to describe networking protocols. It defines the manner in which systems communicate with one another using abstraction layers.

fig-2_1.png
LFCE Prep Course -- OSI Network Model (Part 1)

Used with permission

Each layer communicates with the layer directly above and below.

There are other models which are used to talk about networking. The most popular networking stack on the Internet today is the Internet Protocol Suite.

The Internet Protocol Suite can be described using a subset of the OSI Model.

fig-3_1.png
LFCE Prep Course -- OSI Network Model (Part 1)

Used with permission

OSI Layer 7: Application Layer

The Application Layer is the most well-known. This layer is at the top of the stack and deals with the protocols which make a global communications network function. Some of the common protocols which exist in the Application Layer are:

HTTP: Hypertext Transfer Protocol.

SMTP: Simple Mail Transfer Protocol.

DNS: Domain Name System.

FTP: File Transfer Protocol.

DHCP: Dynamic Host Configuration Protocol.

Protocols at this level are the most familiar to users. They are defined by RFC1123. To learn more, go to https://tools.ietf.org/html/rfc1123 .

fig-4_0.png
LFCE Prep Course -- OSI Network Model (Part 1)

Used with permission

OSI Layer 6: Presentation Layer

The Presentation Layer is commonly rolled up into a different layer. This layer deals with the formatting of data (e.g. conversion of EBCDIC to ASCII). For example, the HTTP protocol (an Application Layer protocol) has methods for converting character encoding. In other words, this Presentation Layer step happens at the Application Layer. Many networking stacks and protocols make no distinction between layers 6 and 7.

OSI Layer 5: Session Layer

The Session Layer deals with managing of session data. It creates a semi-permanent connection, which is then used for communications. Many of the RPC-type protocols depend on this layer:

fig-5_0.png
LFCE Prep Course -- OSI Network Model (Part 1)

Used with permission

NetBIOS: Network Basic Input Output System.

RPC: Remote Procedure Call.

PPTP: Point to Point Tunneling Protocol.

This layer is used by protocols which need reliable sessions, such as videoconferencing and SOCKS proxy. If an established connection is lost or disrupted, this layer may try to recover the connection. If a connection is not used for a long time, the session layer may close and then reopen it.

OSI Layer 4: Transport Layer

The Transport Layer is responsible for the end-to-end communication protocols. Data is properly multiplexed by defining the source and destination port numbers. This layer also deals with reliability by adding check sums, doing request repeats, and avoiding congestion. Some of the common protocols in the Transport Layer are:

TCP: Transmission Control Protocol:It is the main component of the TCP/IP (Internet Protocol Suite) stack.

UDP: User Datagram Protocol: This is another popular component of the Internet Protocol Suite stack.

SCTP: Stream Control Transmission Protocol.

It uses port numbers to allow for connection multiplexing.

fig-6_0.png
LFCE Prep Course -- OSI Network Model (Part 1)

Used with permission

Transport Layer Ports

Transport layer protocols use ports to distinguish between different types of traffic or to do multiplexing. The ports are classed three different ways:

Well-Known Ports (0-1023) - assigned by the IANA (Internet Assigned Numbers Authority). They usually require super-user privilege to be bound. Some of the well-known ports are: 22 TCP: SSH; 25 TCP: SMTP; 80 TCP: HTTP; 443 TCP: HTTPS.

Regi

Viewing all articles
Browse latest Browse all 11063

Trending Articles