Tuesday, January 18, 2011

Understanding TCP-IP

Understanding TCP-IP

What is TCP/IP?

TCP/IP is the most popular and important protocol suite that is highly implemented on corporate and public internetworks. The internet communication is basically based on TCP/IP. Primarily TCP/IP is designed for government and military networks. In 90s, TCP/IP can be installed and used on Microsoft Windows operating system as required. But since late 90s, the TCP/IP is the default network protocol suite of Microsoft Windows and today, the TCP/IP is used in Microsoft NT, Microsoft 2000 and Microsoft XP and if you have any problem you have to download Microsoft TCP/IP protocol software. It is also the default networking protocol suite of Linux, Sun Solaris and other flavours of UNIX along with other operating systems. TCP/IP version 6 is the latest updated version of the TCP/IP protocol suite.


TCP/IP Protocols
As you read above that TCP/IP is a protocol suite which is very popular and must required for internet communications. A protocol suite is a bulk of protocols that works on different layers of the OSI reference model. The OSI layer model is a seven layer model that standardizes the protocols and reduces the complexity of understanding the network communication. The communication is possible through different protocols working on different layers of the model. The TCP/IP protocols work on network layer and transport layer of the OSI model where TCP works on transport layer and IP works on network layer.


TCP/IP Network Layer Protocols
As we know that TCP/IP is a protocol suite which is a bulk of different 3rd and 4rth layer protocols. The 3rd layer or network layer processes the data packet by learning the IP address of source and destination. The TCP/IP network layer protocols are IP, ICMP, ARP and RARP etc.

A little description of each of these network layer protocols are as follows:
• IP: The Internet Protocol (IP) is a network layer protocol is a routed protocol that follows a route guided by any routing protocol and provides best delivery routing of packets. It carries the datagram from source to destination by learning the ip address encapsulated on the IP header of the data packet.
• ICMP: The Internet Control Message Protocol (ICMP) is a network layer protocol that provides the information about the operational status of the network. The "ping" command is used for sending and receiving the Echo request or Echo reply by using ICMP. The actual message resides inside the IP packet.
• ARP: The Address Resolution Protocol (ARP) is a network layer protocol that resolves the known IP address of the networking device into the data-link address or MAC address.
• RARP: The Reverse Address Resolution Protocol (RARP) is a network layer protocol that resolves the known MAC address of the networking device into the IP address assigned to the specific device. This is the reverse of ARP
• DHCP: The Dynamic Host Configuration Protocol (DHCP) is a network layer protocol that provides a framework for the automatic configuration of the IP addresses of the network hosts.

TCP/IP Transport Layer Protocols
At transport layer, the datagram segment is transported from source to destination by using the connection oriented or connectionless services. At this layer, logical port numbers are learned. TCP and UDP are the examples of the TCP/IP transport layer protocols.
A little description of transport layer protocols is as follows:
• TCP: The TCP (Transmission Control Protocol) is a transport layer protocol that is used for reliable but slow data transfer. It is a connection oriented protocol which means that if the packet does not arrive at the destination, it is going to be re-transmitted.
UDP: The UDP (User Datagram Protocol) is a transport layer protocol that is used for fast but unreliable data transfer. It is a connectionless protocol which means that it has no mechanism of re-transmission of the packets that does not arrive at the destination.


TCP/IP Applications
TCP/IP supports many internet applications. Some of these applications are as follows:
• FTP: The FTP (File Transfer Protocol) is a connection oriented and reliable service that uses TCP for transferring the files between systems over the network or internetwork.
• TFTP: The TFTP (Trivial File Transfer Protocol) is an unreliable and connectionless service that uses UDP. The router uses TFTP for transferring the Cisco IOS images and the configuration files.
• HTTP: The HTTP (Hypertext Transfer Protocol) is a protocol that is used for browsing the web sites and World Wide Web communications.

Telnet and TCP/IP
The Terminal Emulation (Telnet) is a utility that provides the capability for remotely accessing the other computer. If you wants to login on a remote device such as computers, switches and routers etc, either at the same premises or from a different locations you should have to use this utility. You have to provide the ip address of remote device with the command "telnet". The well known logical port of telnet is 23.


Linux TCP/IP Network Administration
Linux is a secure, scalable, dependable and reliable operating system based on shell programming. Linux also has a default support of TCP/IP protocol suite. The network administration of Linux is based on TCP/IP. You can use the TCP/IP tool "netconfig" for configuring the network interface card in Linux.


Alternatives to TCP/IP
Although the TCP/IP is the most popular protocol suite used in the network or internetwork communication but there are some other protocol suite also can be used as an alternative of TCP/IP. One of the alternatives is the Novell IPX/SPX protocol suite in which the IPX (Internet Packet Exchange) works at 3rd layer of OSI layer Model like IP in TCP/IP and SPX (Sequenced Packet Exchange) works at 4rth layer of OSI Model like TCP in the TCP/IP protocol suite. AppleTalk and DECNET are the other popular alternatives of the TCP/IP.

Ethernet Technology:

Ethernet is a media access method that is specified at the Data Link layer and uses specific Physical layer cabling and signalling techniques. It is important to be able to differentiate between the types of connectors that can be used to connect an Ethernet network together. I'll discuss the different unshielded twisted-pair cabling used today in an Ethernet LAN.
Network Cabling
It's important to understand the difference between the media access speeds Ethernet provides in computer cabling systems. However, it's also important to understand the connector requirements for each implementation before making any decision. The Electronic Industries Association and the newer Telecommunications Industry Association (EIA/TIA) is the standards body that creates the Physical layer specifications for Ethernet. The EIA/TIA specifies that Ethernet use a registered jack connector with a 4 5 wiring sequence on unshielded twisted-pair cabling (RJ-45).
The following points outline the computer network cabling requirements:
• 10Base2 50-ohm coaxial is also called thinnet which is up to 185 meters and supports 30 hosts per segment. Physical and logical bus is used with AUI connectors.
• 10Base5 50-ohm coaxial is also called thicknet which is up to 500 meters and supports 208 users per segment. It uses a physical and logical bus with AUI connectors. It is up to 2500 meters with repeaters and supports 1024 users for all segments.
• 10BaseT EIA/TIA category 3, 4, or 5, using two-pair unshielded twisted-pair (UTP) wiring supports one user per segment; up to 100 meters long.RJ-45 connector is used along with star topology.
• 100BaseTX EIA/TIA category 5, 6, or 7 UTP two-pair wiring supports one user per segment; up to 100 meters long. It uses an RJ-45 MII connector with a physical star topology and a logical bus.
• 100BaseFX Uses fiber cabling 62.5/125-micron multimode fiber supports point-to-point topology; up to 400 meters long. It uses an ST or SC connector, which are duplex media-interface connectors.
• 1000BaseCX Copper shielded twisted-pair that can only run up to 25 meters.
• 1000BaseT Category 5 is a four-pair UTP wiring that can run up to 100 meters.
• 1000BaseSX MMF using 62.5 and 50-micron core; uses a 780-nanometer laser and can go up to 260 meters.
• 1000BaseLX Single-mode fiber that uses a 9-micron core, 1300-nanometer laser and can go from 3 km up to 10 km.
UTP Connections (RJ-45)
The RJ-45 connector is clear so you can see the eight wires mentioned with different colours that connect to the connector's pins. All of theses wires are twisted together into four pairs. Four wires carry the voltage and are considered tip. The other four wires are grounded and are called ring. The RJ-45 connector is crimped onto the end of the wire, and the pin locations of the connector are numbered from the left, 8 to 1.
Twisted wires inside UTP cable eliminate cross talk noise.. Unshielded cable can be used since digital signal protection comes from the twists in the wire. The more twists per inch, the farther the digital signal can supposedly travel without interference. For example, cat 5 cabling such as network cabling cat 5 and category 5 cabling UK have many more twists per inch than category 3 UTP does. Different types of wiring are used for building internetworks. You will need to use either a straight-through or crossover cable.
Straight-Through Cable
In a UTP implementation of a straight-through cable, the wires on both cable ends are in the same order. You can determine that the wiring is a straight-through cable by holding both ends of the UTP cable side by side and seeing that the order of the wires on both ends is identical.
You can use a straight-through cable for the following tasks:• Connecting a router to a hub or switch
• Connecting a server to a hub or switch
• Connecting workstations t a hub or switch
Crossover Cable
In the implementation of a crossover, the wires on each end of the cable are crossed.
It is used to transmit and receive for both rip and ring. Notice that pin 1 on one side connects to pin 3 on the other side, and pin 2 connects to pin 6 on the opposite end.
You can use a crossover cable for the following tasks:
• Connecting uplinks between switches
• Connecting hubs to switches
• Connecting a hub to another hub
• Connecting a router interface to another router interface
• Connecting two PCs together without a hub or switch
When trying to determine the type of cable needed for a port, look at the port and see if it is marked with an "X." by using a straight-through cable when only one port is selected with an "X." and use a crossover when neither port has an "X." or when both ports are designated with an "X"
Rolled Over Cable
In the implementation of a rollover cable, the wires on each end of the cable are opposite. It broadcast to receive and receive to transmit on both side, for both tip and ring. Notice that pin 1 on one side connects to pin 8 on the other side, pin 2 connects to pin 7 on the opposite end, pin 3 connects to pin 6 on the opposite end and pin 4 connects to pin 5 on the opposite end.
You can use a rolled cable for the following tasks:
• For out of band console connection between the console port (RJ45) of the manageable switches and the com port (DB9) of the computer using a RJ45 to DB9 terminal.
• For out of band console connection between the console port (RJ45) of manageable routers and the com port (DB9) of the computer using a RJ45 to DB9 terminal.


Understanding Ethernet Networking
Ethernet refers to the family of Local Area Network implementation that was jointly developed by Digital Equipment Corporation, Intel Corporation and Xerox Corporation. It consists of certain specifications and standards as well as hardware devices and components.
Ethernet Connection
The Ethernet protocol provides for a verity of cabling options, one of which is a specification referred to as 10Base5.
Connecting cable is known as AUI (Attachment Unit Interface) and network attachment device is known as Media Attachment Unit (MAU) rather than transceiver.


CSMA/CD
Ethernet is a baseband LAN specification invented by Xerox corporation operates at 10 Mbps using CSMA/CD (Carrier Sense Multiple Access Collision Detection).
As a contention-based environment Ethernet allows any station on the network to transmit when ever the Ethernet network is quite. Collisions could be found whenever stations listen for traffic and hear nothing and transmit regularly. In this situation both types of transmissions are damaged and device should transmit later. Back-off algorithm is used whenever colliding stations should retransmit data.
Ethernet Network Design
Ethernet was designed to serve in network with sporadic, occasionally heavy traffic requirements. A network using Ethernet is usually considered as a low cost LAN.
Layer 1 and Layer 2 of OSI model related services are provided by Ethernet.
For creating an Ethernet network, you have usually implemented a network interface card on a primary circuit board. Cabling conventions of Ethernet describe use of transceiver for attaching cable to physical medium. Transceiver may perform some physical layer functions such as collision and detection. The transceiver cable connects end stations to a transceiver.

How to Set Ethernet Full and Half Duplex
Full Duplex Ethernet
Full duplex provides the means of transmitting and receiving simultaneously on a single wire. Full duplex Ethernet is used between two endpoint like for between switches and servers, between switches and routers etc. Full duplex also permit bandwidth on Ethernet and Fast Ethernet networks very easy and cost effective and also fast.. By using features such as Fast EtherChannel, "bundles" of Fast Ethernet connections can be grouped together to increase bandwidth to increase bandwidth up to 4000%.
Full duplex broadcasting is used in Gigabit Ethernet to increase collective bandwidth ranging from 2 Gbps to 2 Gbps for point to point links and also used to increase distances of for specific type of media. Further more Gigabits Ethernet Channel allows creating 8 Gbps connections between switches. Full duplex Ethernet minimize chances of collisions so that CSMS/CD does not need to be used for flow control.
. However, a full duplex flow control method has been put forward in the standards committee with flow control as on option clause. This standard is referred to as IEEE 802.3x; it formalizes full duplex technology and it's expected to be supported in future Gigabit Ethernet products. Because of the volume of full duplex 100 mbps network interfaces cards (NICs), it is likely that this standard will realistically apply to Fast Ethernet.
Half Duplex 10g Ethernet
For half duplex transmission, CSMA/CD will be utilized to ensure that stations can communicate over a single wire and that collision recovery can take place. CSMS/CD implementation should be same as for Ethernet and Fast Ethernet and also it allows creation of shared Gigabit Ethernet using hub of half duplex via point to point connections.
Because the CSMA/CD protocol is delay sensitive, a bit budget per collision domains must be created. When CSMS/CD is used delay sensitivity is always there however full duplex operation has no delay sensitivity and collision domains are defined as time passes fo maximum length frame transmission.
This transmission, in turn, governs the maximum separation between two end stations on a shared segment. When network speed grows, frame transmission speed decreases and collision domains diameters is maximum. Budget of collision domain is used as maximum signal delay time for different networking components like repeaters, MAC layer and medium also.
Increase in speed of Ethernet speed depends upon some terms that how you are implementing CSMS/CD. Speed which is more than 100 Mbps packet sizes are shorter than length of slot time in bits. (Slot-time is defined as the unit of the time for Ethernet MAC to handle collisions). Handling slot time problem you may find carrier extensions in Ethernet specifications. Carrier extensions are used to add bits to frames until frames meets the minimum requirements which slot time is needed. Following this method, smaller packet sizes can cover with minimum slot time required and it permit seamless operation with current Ethernet CSMS/CD.
More change to the Ethernet requirement is the adding up of frame bursting. Frame bursting is an optional feature in which, in a CSMA/CD environment, and an end station can transmit a burst of frames over the wire without having to relinquish control.
Other devices are put back to stop transmission when there is no idle time on wire.
.The transmitting station that is bursting onto the wire fills the inter-frame interval with extension bits such that the wire never appears free to any other end station.






Ethernet:
Ethernet is the most common LAN (Local Area Network) technology in use today.
Ethernet was developed by Xerox in the 1970s, and became popular after Digital Equipment Corporation and Intel joined Xerox in developing the Ethernet standard in 1980.
Ethernet was officially accepted as IEEE standard 802.3 in 1985.
The original Xerox Ethernet operated at 3Mbps. Ethernet networks up to 10Gbps now exist.
Ethernet Cabling
The first Ethernet standard, 10Base-5, ran over thick coaxial cable. A later standard, Ethernet 10Base-2, ran over a much thinner coaxial cable. These two versions of Ethernet were colloquially known as thicknet and thinnet.
Modern Ethernet standards run on UTP (Unshielded Twisted Pair) or fiber-optic cabling.
Ethernet Standard Cable Specification
10Base-T Category 3 UTP
100Base-TX Category 5 UTP
1000Base-T Cat 5e UTP
1000Base-SX Optical Fiber
Ethernet Topologies
Ethernet 10Base-5 and 10Base-2 used a bus topology. Bus topologies were difficult to maintain and troubleshoot.
Modern Ethernet networks use a star topology with an Ethernet hub, switch, or router at the center of the star.
It is still possible to create a two-node Ethernet network in a bus topology using a null-Ethernet cable between the two devices.
Ethernet DTE and DCE
All nodes on an Ethernet network are either DTE (Data Terminal Equipment) or DCE (Data Communications Equipment).
Ethernet DTE are devices such as computers and printers which are trying to communicate on the Ethernet network.
Ethernet DCE are devices such as switches and routers which are trying to help other devices communicate on the Ethernet network.
Ethernet CSMA/CD
Like any network, Ethernet must have an algorithm for determining when each network node is allowed to communicate.
In Ethernet, this algorithm is known as CSMA/CD (Carrier Sense Multiple Access / Collision Detection).
CSMA/CD has proven to be a very capable, if highly anarchistic, algorithm.




Ethernet at the Physical Layer
Ethernet is the most popular Local Area Network architecture that was jointly developed by Digital Equipment Corporation, Intel Corporation and Xerox Corporation. It consists of certain specifications and standards as well as hardware devices and components. Ethernet provides services corresponding to physical layer and data link layer of the OSI reference model. Each Ethernet physical layer protocol has a three part name that summarizes its characteristics. The components specified in the naming convention correspond to LAN speed, signalling method, and physical media type.
The following table summarizes the differences between the various physical-layer specifications of Ethernet:

Characteristics
Ethernet Value
10Base5
10Base2
10BaseT
10BaseFL
100BaseT
Data rate (mbps) 10 10 10 10 10 10
Signalling method Baseband Baseband Baseband Baseband Baseband Baseband
Maximum segment length 500 500 500 500 500 500
Media 50-ohm coaxial 50-ohm coaxial 50-ohm coaxial UTP cable Fiber-optic UTP cable

topology Bus Bus Bus Star Point-to-Point Bus
Ethernet Topology
Ethernet topology is based on following three categories:
• Ethernet 10 Mbps: A single LAN specification that operate at 10 Mbps over coaxial Ethernet 10base2 or 10base5 cable.
• 100-Mbps Ethernet: A single LAN specification, also known as Fast Ethernet that operates at 100 Mbps over UTP Ethernet cable.
• 1000-Mbps Ethernet: A single LAN specification, also known as Gigabit Ethernet that operates at 1 Gbps (1000 Mbps) over fiber optics and twisted pair Ethernet cables.
100BaseT Overview
100BaseT uses the existing IEEE 802.3 CSMA/CD specification. As a result, 100BaseT retains the IEEE 802.3 frame format, size and error-detection mechanism. In addition, it supports all applications and networking software currently running on 802.3 networks. 100BaseT maintains dual speeds of 10 and 100 Mbps using 100BaseT Fast Link Pulses (FLPs). 100BaseT hubs must detect dual speeds much like Token Ring 4/16 hubs, but adapter cards can support 10Mbps, 100 Mbps, or both.
100BaseT Signalling
100BaseT supports two signalling types:
• 100BaseX
• 4T+
Both signalling types are interoperable at the station and hub levels. MII ( Media Independent Interface) which same like AUI interface provides interoperability at base level. The hub provides interoperability at the hub level.
The 100BaseX signalling scheme has a convergence sublayer that adapts the full duplex continuous signalling mechanism of the FDDI Physical Medium Dependent (PMD) layer to the half duplex, start-stop signalling of the Ethernet MAC sublayer. 100BaseTX's use of the existing FDDI specification has allowed quick delivery of products to market. 100BaseX is the signalling scheme used in the 100BaseTX and the 100BaseFX media types.
The 4T+ signalling scheme uses one pair of wires for collision detection and the other three pairs to transmit data. It also permits 100BaseT to work with existing Category 3 cabling while all four pairs are installed on desktop. 4T+ is the signalling scheme used in the 100BaseT4 media type, and it supports half duplex operation only.
100BaseT Hardware
Components used for a 100BaseT physical connection include the following:
Physical medium: This device caries signals between computers and can be one of three 100BaseT media types:
• 100BaseTX
• 100BaseFX
• 100BaseT4
Medium Dependent Interface (MDI): The MDI is a mechanical and electrical interface between the transmission medium and the physical layer device.
Physical Layer Device (PHY): the PHY provides either 10 or 100 Mbps operation and can be a set of integrated circuits (or a daughter board) on a Ethernet port, or an external device supplied with an MII cable that plugs into an MII port on a 100BaseT device (similar to a 10 Mbps Ethernet transceiver).
Media Independent Interface (MII): It is used with a 100 Mbps external transceiver to attach a 100 Mbps Ethernet device to several of these three media types. The MII has a 40 pin plug and cable that stretches up to 0.5 meters.
Cables and Connectors
What is AUI?
Ethernet is usually implemented a network interface card on a primary circuit board. Ethernet cabling standards indicates that how to utilize a transceiver to connect a cable to the physical network medium. The transceiver performs a lot of of the physical layer functions, as well as collusion discovery. Transceiver cable is connected end stations to a transceiver.
Ethernet provides for a verity of cabling options such as 10Base2, 10base5 and 10baseT. The 10base2 Ethernet connection is very rare nowadays because the 10base2 drivers are not so longer available while the 10base5 cable is referred as an AUI (Attachment Unit Interface) and the network attachment device is called a MAU (Media Attachment Unit), instead of a transceiver.
AUI Cable
The AUI connector is connecting with AUI to AUI cable. The AUI to AUI interface cable can be connected with the switch AUI port with the help of AUI and transceiver.

Gigabit Ethernet Physical Layer Implementation
The Gigabit Ethernet specification addresses three forms of transmission media: long-wave (LW) laser over single-mode and multimode fiber (to be known as1000Base LX), sort-wave (SW) laser over multimode fiber (to be known as 1000BaseSX), and the 1000BaseCX medium, which allows for transmission over balanced shielded 150 ohm copper cable. The IEEE 802.3ab committee is examining the use of UTP cable for Gigabit Ethernet transmission (1000BaseT); that standard is expected sometime in 1999.
1000BaseT draft specification would be used to enable Gigabit Ethernet to extend distances up to 100 meters for category 5 UTP cable which is widely used for cabling in buildings.
The Fibre Channel PMD specification currently allows for 1.062 gigabit signalling in full duplex, Gigabit Ethernet will increase this signalling rate to 1.25 Gbps. The 8B/10B encoding allows a data transmission rate of 1000 Mbps.Existing type of connector for Fibre Channel and for Gigabit Ethernet is SC connector for both single and multimode fibre. The Gigabit Ethernet specification calls for media support for multimode fiber-optic cable, single-mode fiber-optic cable, and a special balanced shielded 150 0hm copper cable.

Some Important Port Numbers:

Port Number Description
1 TCP Port Service Multiplexer (TCPMUX)

5 Remote Job Entry (RJE)
7 ECHO
18 Message Send Protocol (MSP)
20 FTP -- Data

21 FTP -- Control
22 SSH Remote Login Protocol

23 Telnet

25 Simple Mail Transfer Protocol (SMTP)

29 MSG ICP
37 Time
42 Host Name Server (Nameserv)
43 WhoIs
49 Login Host Protocol (Login)
53 Domain Name System (DNS)

69 Trivial File Transfer Protocol (TFTP)

70 Gopher Services

79 Finger

80 HTTP

103 X.400 Standard

108 SNA Gateway Access Server
109 POP2
110 POP3

115 Simple File Transfer Protocol (SFTP)
118 SQL Services
119 Newsgroup (NNTP)

137 NetBIOS Name Service

139 NetBIOS Datagram Service
143 Interim Mail Access Protocol (IMAP)
150 NetBIOS Session Service
156 SQL Server

161 SNMP

179 Border Gateway Protocol (BGP)

190 Gateway Access Control Protocol (GACP)
194 Internet Relay Chat (IRC)

197 Directory Location Service (DLS)
389 Lightweight Directory Access Protocol (LDAP)
396 Novell Netware over IP
443 HTTPS

444 Simple Network Paging Protocol (SNPP)
445 Microsoft-DS
458 Apple QuickTime

546 DHCP Client

547 DHCP Server
563 SNEWS
569 MSN
1080 Socks

Network Engineer Interview Questions with Answers: The Great Interview Tips for Network Engineer Job Seekers

What is ping? Why you use ping?
PING Stands for Packet InterNet Gopher. PING is used for connectivity checking of any network or any host or device of any or other networks.

Routers are always preferrable for routing services. Routers work at which OSI layers?
Router works at network layer for providing routing services between or among several networks.
A gateway works in which layer?
Transport layer of OSI model.
How can you check the connectivity of any network?
By using ping command.
What is a gateway?
A gateway acts a door for the packet to reach the ‘outside’ of the internal network.
What are the differences among router, switch, bridge and hub?
Router, switch, bridge and hub are network devices. Yet there are some differences among them. The main differences are:
• Router: A layer 3 device, can work on physical, data and network layer.
• Switch: A layer 2 device, can work on data link layer
• Bridge: A layer 2 device, can work on data link layer.
• Hub: A layer 1device, just a multi-port repeater and works on physical layer

What is the range of class A address?
0-127 is the range of class A address.
Tell an IP which has class C range. Also tell why that IP is an class C address.
• IP of Class C: 193.1.1.1
• Why this is a class C address: Class C addresses have the range of 192 - 223
Name a device which can operate at physical layer of OSI model.
Hub.
Note: Remember, hub is the device that can work only into the physical layer of OSI model. But switch, router can also be used instead of a hub. So, all the answers hub, switch or router are all correct.
What is the major differences between a router and a switch?
A router can divide the broadcast domain and collision domain. But a switch can only divide the collision domain. Router can communicate among different networks where as the switch can not communicate different networks.
Hub operates at which layers of OSI model? Is it wise to use a hub for huge networks? Why or why not?
• Hub operates at only physical layer of OSI model.
• No, it's not so wise to use hub for a huge network.
• Hubs can't divide the broadcast domain or the collision domain. So, if we use hubs then there creates huge broadcast domain. When there are huge broadcast, the network gets problem time to time. So, it's not wise to use hubs to support a huge network.
How many layers are in OSI model? Name them
There are seven layers of OSI model. The layers are:
1. Application layer
2. Presentation layer
3. Session layer
4. Transport layer
5. Network layer
6. Data link layer
7. Physical layer
Note: You can remember the seven layer model by a simple sentence. Please Do Not Touch Steven's Pet Alligator. See, the starting of each word forms the layer.
Why do you need to use a router?
Router can easily divide the broadcast domain and collision domain. So, to communicate among several networks, routers are used.
What is the second layer of OSI model?
Data Link layer.
Name two network devices which can work as layer 2 device.
Switch and router
What is OSI model?
OSI revers for Open System Interconnection Reference Model. It is an abstract model for layered communications and computer network protocol design. There are seven layers of OSI model which, from top to bottom, are the Application, Presentation, Session, Transport, Network, Data-Link, and Physical Layers.
OSI model also referred as OSI layered model, OIS layered technology, 7 layer model, OSI seven layer model, OSI reference model.
What is the data unit of Data Link layer?
Frame
What are the difference between TCP and UDP?
• TCP: Connection oriented protocol, acknowledged one, Point to point communication.
• UDP: Connection less protocol, unreliable, less traffic
What is the port no of DNS and Telnet?
• DNS port no: 53
• Telnet port no: 23
What is the port no of SMTP and POP3?
• SMPT port no: 25
• POP3 port no: 110
What is the functionality of network layer? Name the data unint of network layer.
• Functionality of network layer: Path determination and logical addressing
• Data unit of network layer: Packet
Which three layers of OSI model is treated as "Media Layers"?
Physical layer, data link layer and network layer are treated as "Media Layers".
What is deadlock?
Deadlock is a situation when two or more processes are waiting indefinitely for an event that can be caused by only one of the waiting processes. The implementation of a semaphore with a waiting queue may result in this situation.
Mention the advantages and disadvantages of a router.
Advantages:
• Router can limit the collision domain and broadcast domain
• Router can function both on LAN & WAN.
• Different media & architectures can be connected among themselves through router.
• Router can determine best path/route for data to reach
• the destination.
• Router can filter the broadcasts.
• For communicating different networks, routers must be used.
Disadvantage:
• Router is more expensive than any other networking devices like Hub, Bridge & Switch.
• Router only work with routable protocols.
• Routing updates consume some bandwidth.
• Increase latency due to greater degree of packet
• filtering.
• Routers function as software based and so it's slower compared to switch.
Mention the private IP address rannge of class B and C.
• For Class B: 172.16.0.0 – 172.31.255.255
• For Class C: 192.168.0.0 – 192.168.255.255
What is the IP range of class C IP address?
240.0.0.0 255.255.255.255
What is the default subnet mask of class C IP address?
255.255.255.0
Why do you need subnet mask?
Subnet mask is required to divide a large network into several small networks.
Tell the full name: DNS, FTP
• DNS: Domain Name System
• FTP: File Transfer Protocol
What is the functionality or ARP?
ARP refers to Address Resolution Protocol. ARP is a computer networking protocol for determining a network host's link layer or hardware address when only its Internet Layer (IP) or Network Layer address is known.
Which one is reliable: TCP or UDP?
TCP is reliable and UDP is an unreliable service.
How DHCP works?
DHCP works by four-steps: (1) IP request, (2) IP offer (3) IP selection and (d) Acknowledgement.
What is POP3? Why you require POP3?
POP stands for Post Office Protocol. This is used to describe how e-mail clients interact with mail servers. The POP3 Server is a type of mail server used for incoming mail. POP is only used to receive messages.
What is the difference between Layer 2 Switch and Layer 3 Switch?
Layer 2 switch is based on MAC addresses which operates on Data Link Layer of OSI mode. And Layer 3 switching is based on network topology table populated and works on Network layer.