Thursday, 10 July 2014

OSI Reference Model By Quontra Solutions

Before OSI it was difficult for the vendors to create network products OSI, why U need to study, its a structured approach to troubleshoot

Each has independent model
Before considering how to configure Cisco routers and switches, you must be introduced to basic networking concepts you’ll need to understand in order to grasp the advanced concepts discussed in later chapters

ISO developed the seven-layer.
Application Layer, Presentation Layer And Session Layers are Both called Upper Layer.

And Transport Layer, Network Layer, Data Link Layer And Physical Layers are both called Lower Layer.

Application Layer :- Top (seventh) layer of the OSI Reference Model is the application layer. It provides the user interface. Examples of TCP/IP applications include telnet, FTP, HTTP, HTTPS, SMTP, SNMP, DNS, ICMP And all of browser.
This layer deal with networking applications.
Examples:
Email
Web browsers
Presentation :- The Presentation layer gets its name from its purpose: It presents data to the Application layer and is responsible for data translation and code formatting
Exam Watch The presentation layer determines how data is represented to the user. Examples of presentation layer protocols and standards include ASCII, BMP, GIF, JPEG, WAV, AVI, and MPEG.
ASCII (the American Standard Code for Information Interchange, used by most devices today) uses seven bits to represent characters. EBCDIC (Extended Binary-Coded Decimal Interchange Code, developed by IBM)
PICT A picture format used by Macintosh programs for transferring QuickDraw graphics.
TIFF Tagged Image File Format; a standard graphics format for high-resolution, bitmapped images.
JPEG Photo standards brought to us by the Joint Photographic Experts Group. Other standards guide movies and sound:
MIDI Musical Instrument Digital Interface (sometimes called Musical Instrument Device Interface), used for digitized music.
MPEG Increasingly popular Moving Picture Experts Group standard for the compression and coding of motion video for CDs. It provides digital storage and bit rates up to 1.5Mbps.
QuickTime For use with Macintosh programs; manages audio and video applications.
RTF Rich Text Format, a file format that lets you exchange text files between different word processors, even in different operating systems.

This layer is responsible for presenting the data in the required format which may include:
Code Formatting
Encryption
Compression
Session :-   Exam Watch The session layer is responsible for setting up and tearing down network connections. Examples include RPCs and NFS.
The actual mechanics of this process, however, are implemented at the transport layer. To set up connections or tear down connections, the session layer communicates with the transport layer. Remote Procedure Call (RPC) is an example of an IP session protocol; the Network File System (NFS), which uses RPC, is an example application at this layer.

This layer establishes, manages, and terminates sessions between two communicating hosts.
Creates Virtual Circuit
Coordinates communication between systems
Organize their communication by offering three different modes
Simplex
Half Duplex
Full Duplex
Example:
·  Client Software
( Used for logging in)

Transport :-
This layer breaks up the data from the sending host and then reassembles it in the receiver.
It also is used to insure reliable data transport across the network.
Can be reliable or unreliable
Sequencing
Acknowledgment
Retransmission
Flow Control
Windows
Protocol Port
PDU – Segments
Data Link :-
This layer provides reliable transit of data across a physical link.
Performs Physical Addressing.
Combines bits into bytes and bytes into frames.
Preamble is sequence of 1’s and 0’s signifies the beginning of a frame.
Error detection, not correction.
FCS is used for error detection.
Access to media using MAC address.
LLC and MAC.
CRC run on the data field and and the values is kept in FCS.
Logical Link Control performs Link establishment.
MAC Performs Access method.
OSI (Open Systems Interconnection) Reference Model:
This is a protocol suit, and it follows Department of defense model.
The seven layers of OSI layer.
Application Layer
[NNTP • SIP • SSI • DNS • FTP • Gopher • HTTP • NFS • NTP • SMPP • SMTP • SNMP • Telnet • DHCP • Netconf • RTP • SPDY • etc.]
Presentation Layer
[MIME • XDR • TLS • SSL]
Session Layer
[Named Pipes • NetBIOS • SAP • L2TP • PPTP • SOCKS]
Transport Layer
[TCP • UDP • SCTP • DCCP • SPX]
Network Layer
[IP (IPv4, IPv6) • ICMP • IPsec • IGMP • IPX • AppleTalk]
Data Link Layer
[ATM • SDLC • HDLC • ARP • CSLIP • SLIP • GFP • PLIP • IEEE 802.3 • Frame Relay • ITU-T G.hn PPP •DLL • X.25 • Network Switch •]
Physical Layer
[EIA/TIA-232 • EIA/TIA-449 • ITU-T V-Series • I.430 • I.431 • POTS • PDH • SONET/SDH • PON • OTN • DSL • IEEE 802.3 • IEEE 802.11 • IEEE 802.15 • IEEE 802.16 • IEEE 1394 • ITU-T G.hn PHY • USB • Bluetooth • Hubs]

Cabling Networking cables

Networking cables are used to connect one network device to other network devices or to connect two or more computers to share printer, scanner, Router, Switch, Hub etc. Different types of network cables like Optical fiber cable, Coaxial cable, Twisted Pair cables are used reckon on network’s size, topology and protocol.

10 MBps Ethernet (IEEE 802.3)
Specification 10Base5 10Base2 10BaseT
No of segment 500m 185m 100m
Highest segment number 5 5 1024
Highest segment node 3 3 1024
Number of nodes per segment 100 30 2
Tap distance 2.5km - -
Highest hub connectivity 4 - -
Repeater distance 2.5km 925m -
Topology Bus Bus Star
Cabling Thick coaxial Thin coaxial UTP
Transmission Half duplex Half duplex Half duplex

100 MBps Ethernet (fast Ethernet)

Specification 100BaseT4(802.3u) 100BaseT2(802.3y) 100BaseTX(802.3u)
Cabling Cat3 UTP Cat3 UTP Cat5 UTP
Topology Star Star Star
Bandwidth 100mbps 100mbps 100mbps
Transmission mode Half duplex Full duplex Full duplex
Area coverage 100m 100m 100m

1000 mbps Gigabit Ethernet

Name Cabling Topology Transmission Bandwidth Area
100BaseT(802.3ab) Cat5 or Cat5e UTP Star Full duplex 1000mbps 100m
1000BaseTX(802.3ab) Cat6 or higher UTP Star Full duplex 1000mbps 100m
1000BaseLX(802.3z) 1270-nm Fiber optic Star Full duplex 2000mbps 550m(multimode) 5km(single mode)
1000BAseSX(802.3z) 770nm or 860nm Fiber optic Star Full duplex 1000mbps 220 or 550m
1000BAseLH(802.3z) 1300nm or 1310nm Fiber optic Star Full duplex 1000mbps 10km
1000BaseZX 1550nm Fiber optic Star Full duplex 1000mbps 70km

what is Encapsulation?

The term “encapsulation” is used to describe a process of adding headers and trailers around some data. For example, when you send an email using your favourite email program (like Outlook or Thunderbird) that email is sent from the Application layer to the Transport layer. The Transport layer encapsulates the data and adds its own header (with its own information, such as which port will be used) and passes the data to the Internet layer, which again encapsulates the received data and adds its own header, usually with information about the source and destination IP addresses. The Internet layer than passes the data to the Network Access layer. This layer is the only layer that adds both a header and a trailer. The data is then sent through a physical network link.
Each layer adds its own information:
encapsulation
The term “decapsulation” refers to the process of removing headers and trailers as data passes from lower to upper layers. This process happens on a computer that is receiving data.

Frame, packet, segment

Frame – the term “frame” refers to the encapsulated data defined by the Network Access layer. A frame can have a header and a trailer that encapsulate a data section.
Packet – the term “packet” is used to describe the encapsulated data defined by the Internet layer. A packet can have a header with the source and destination IP addresses.
Segment – the term “segment” describes encapsulated data defined by the Transport layer. A segment can have a header with informations such as source and destionation port numbers, sequence and acknowledgment numbers, etc.

What is Ethernet ?

Ethernet is the most used networking technology for LANs today. It defines wiring and signaling for the Physical layer of the OSI model. For the Data Link layer, it defines frame formats and protocols.
Ethernet is described as IEEE 802.3 standard. It uses Carrier Sense Multiple Access with Collision Detection (CSMA/CD) access method and supports speeds up to 100 Gbps. It can use coaxial, twisted pair and fiber optic cables. Ethernet uses frames to with source and destination MAC addresses to deliver data.

Friday, 4 July 2014

Explanation of MAC & IP addresses

MAC address

A Media Access Control (MAC) address is a 48-bit address that is used for communication between two hosts in an Ethernet environment. It is a hardware address, which means that it is stored in the firmware of the network card.
A MAC address is supposed to be globaly unique. Each network card vendor gets its share of addresses (represented by the first 24 bits).
The address is written in the form of 12 hexadecimal digits. For example, consider the following MAC address:
D8-D3-85-EB-12-E3
Every hexadecimal character represents 4 bits, so the first six hexadecimal characters represent the vendor (in this case, Hewlett Packard).

How to find out your own MAC address?

If you are using Windows, enter the Command Prompt (Start – Programs – Accessories – Command Prompt). Type the ipconfig/all command and you should see a field called Physical address under the Ethernet adapter settings:
  
ipconfig/all command
If you are using Linux, type the ifconfig command. You should see your MAC address referred to as HWaddress.
ifconfig mac address

IP address

An IP address is a 32-bit number that identifies a host on a network. It is usually written in the form of four decimal numbers seperated by periods (e.g. 10.0.50.1).    
In contrast to MAC address, an IP address is a logical address. Any device that wants to communicate with other device using TCP/IP needs to have an IP address. It can be configured manually or it can be obtained from a DHCP server.
The term “IP address” is usually used for IPv4, which is the fourth version of the IP protocol. A newer version exists, IPv6, and uses 128-bit addressing.
Private IP addresses
There are three ranges of addresses that can be used in a private network (e.g. your home LAN). These addresses are not routable through the Internet.
Private addresses ranges:
10.0.0.0 – 10.255.255.255
172.16.0.0 – 172.31.255.255
192.168.0.0 – 192.168.255.255
How to find out your IP address
Windows users:
Enter the Command Promt (Start – Programs – Accessories – Command Prompt). Enter ipconfig. You should see a field called IP address.
ipconfig

Explanation of Network Topology

A network consists of multiple computers connected using some type of interface, each having more interface devices such as a NIC and or a serial device for Point-to-Point Protocol networking. every computer is supported by network software that provides the client functionality. So The hardware used to transmit data across the network is called the media. It may include  fiber optic,  wireless transmission or copper cable. The standard cabling used for the purposes of this document is 10Base-T category 5 ethernet cable. So this is twisted copper cabling which appears at the surface to look similar to TV coaxial cable. It’s terminated on each end by a connector that looks like a telephone connector. And It’s maximum segment length is 100 meters.
Network Categories:-
There are two types of network categories which are below:
  1. Server based
  2. Peer-to-peer
In a server based network, there are computers set up to be primary providers of services such as mail service or file service. The computers providing the service are called servers and use the service are called client computers and the computers that request.
In a peer-to-peer network, various computers on the network can act both as servers and clients. For instance, many Microsoft Windows based computers will allow print sharing and file. These computers can act both as a client and a server and are also referred to as peers.Now Many networks are combination peer-to-peer and server based networks.This Network operating system uses to communicate on the network to other computers. network operating system supports the applications on that computer. Network OperatingSystem includes Windows XP, Windows NT, Novell Netware, Unix, Linux, Dos and others.
Three Network Topologies :-
The network topology describes the method to use do the physical wiring of the network. The main ones are bus, ring, and star.
1. Bus – Both ends of the network must be terminated with a terminator. A cask connector can be used to extend it.
2. Star – All devices rotate around a central hub, which controls the network communications, and can communicate with other hubs.This topology Range limits are about 100 meters from the hub.
3. Ring – All devices are connected from one to another, as like a ring. A data token is used to grant authorization for each computer to communicate.

MAC & IP addresses

MAC address


A Media Access Control (MAC) address is a 48-bit address that is used for communication between two hosts in an Ethernet environment. It is a hardware address, which means that it is stored in the firmware of the network card.
A MAC address is supposed to be globaly unique. Each network card vendor gets its share of addresses (represented by the first 24 bits).
The address is written in the form of 12 hexadecimal digits. For example, consider the following MAC address:
D8-D3-85-EB-12-E3
Every hexadecimal character represents 4 bits, so the first six hexadecimal characters represent the vendor (in this case, Hewlett Packard).

How to find out your own MAC address?


If you are using Windows, enter the Command Prompt (Start – Programs – Accessories – Command Prompt). Type the ipconfig/all command and you should see a field called Physical address under the Ethernet adapter settings:

ipconfig/all command
If you are using Linux, type the ifconfig command. You should see your MAC address referred to as HWaddress.
ifconfig mac address

IP address

An IP address is a 32-bit number that identifies a host on a network. It is usually written in the form of four decimal numbers seperated by periods (e.g. 10.0.50.1).    
In contrast to MAC address, an IP address is a logical address. Any device that wants to communicate with other device using TCP/IP needs to have an IP address. It can be configured manually or it can be obtained from a DHCP server.
The term “IP address” is usually used for IPv4, which is the fourth version of the IP protocol. A newer version exists, IPv6, and uses 128-bit addressing.
Private IP addresses
There are three ranges of addresses that can be used in a private network (e.g. your home LAN). These addresses are not routable through the Internet.
Private addresses ranges:
10.0.0.0 – 10.255.255.255
172.16.0.0 – 172.31.255.255
192.168.0.0 – 192.168.255.255
How to find out your IP address
Windows users:
Enter the Command Promt (Start – Programs – Accessories – Command Prompt). Enter ipconfig. You should see a field called IP address.
ipconfig

Ping (Packet Internet Groper)

A ping is perhaps the most commonly used tool when troubleshooting a network. Ping (Packet Internet Groper) tool is included with most operating systems. It is invoked using a ping command. Ping command uses ICMP (Internet Control Message Protocol). Ping works by sending an ICMP echo request message to the specified IP address. If the computer with the destination IP address is reachable, it responds with an ICMP echo reply message.
A ping command usually outputs some other information about a network performance, e.g. a round-trip time, a time to send an ICMP request packetand receive an ICMP reply packet.
Here is an output of the ping command from Windows 7:
ping
In the example above we have pinged the ip address 10.10.100.1. By default, ping on Windows sends four ICMP request packets. As you can see from the output above, the host with the IP address of 10.10.100.1 is reachable and has replied with four ICMP reply packets. You can also see that the remote host has replied within 1 ms, which indicates that the network is not congested.