Experiment No 1A. Networking Commands
Experiment No 1A. Networking Commands
Experiment No 1A. Networking Commands
Networking Commands
2. ping
ping is a simple way to send network data to, and receive network data from, another
computer on a network. It is frequently used to test, at the most basic level, whether
another system is reachable over a network, and if so, how much time it takes for that
data to be exchanged.
Eg: ping google.com
Ping the host google.com to see if it is alive.
3. traceroute
traceroute prints the route that packets take to a network host. It is used to find
network path from machine to server.
The server name above is destination name or IP address.
Syntax: traceroute <server name>
4. nslookup
two modes: interactive and non-interactive. Interactive mode allows the user
to query name servers for information about various hosts and domains or to
print a list of hosts in a domain. Non-interactive mode is used to print just the
name and requested information for a host or domain. It helps to find domain
5. netstat
The netstat
command is used to print network connections, routing tables, interfacestatistics,
masquerade connections, and multicast memberships. It is used for finding
problems in the network and to determine the amount of traffic on the network as a
performance measurement.
Eg: netstat –an
Shows information about all active connections to the server, including the source
and destination IP addresses and ports, if you have proper permissions.
Conclusion: Thus we have successfully performed the above commands and
obtained the output.
THEORY:
Computer network is a group of two or more computers that connect with each other
to share a resource. One can share printers, fax machines, scanners, network
connection, local drives, copiers and other resources. In computer network
technology, there are several types of networks that range from simple to complex
level. However, in any case in order to connect computers with each other or to the
existing network or planning to install from scratch, the required devices and rules
(protocols) are mostly the same.
Computer network components include the major parts that are needed to install a
network both at the office and home level. Before delving into the installation
process, you should be familiar with each part so that you could choose and buy the
right component that fits with your network system.
Major computer network components
Computer network requires the following devices (some of them are optional):-
Hub
Switches
Router
Modem
Gateway
Modem
Repeater
CrossOver Cable
Network Interface card, one of the main computer network components, comes with
different speeds, 10Mbps, 100Mbps, and 1000Mbps, so on. Recent standard network
cards built with Gigabit (1000Mbps) connection speed. It also supports to connect
slower speeds such as 10Mbps and 100Mbps. However, the speed of the card depends
on your LAN speed.
For example, if you have a switch that supports up to 100Mbps, your NIC will also
transfer a data with this same speed even though your computer NIC has still the
capability to transfer data at 1000Mbps (1Gbps). In modern computers, network
adapter is integrated with a computer motherboard. However if you want advanced
and fast Ethernet card, you may buy and install on your computer using the PCI slot
found on the motherboard (desktop) and ExpressCard slots on laptop.
2. Hub
Hub is a device that splits a network connection into multiple computers. It is like a
distribution center. When a computer request information from a network or a
specific computer, it sends the request to the hub through a cable. The hub will
receive the request and transmit it to the entire network. Each computer in the
network should then figure out whether the broadcast data is for them or not.
Currently Hubs are becoming obsolete and replaced by more advanced
communication devices such as Switches and Routers.
3. Switch
Switch is a telecommunication device grouped as one of computer network
components. Switch is like a Hub but built in with advanced features. It uses physical
device addresses in each incoming messages so that it can deliver the message to the
right destination or port. Like Hub, switch don’t broadcast the received message to
entire network, rather before sending it checks to which system or port should the
message be sent. In other words switch connects the source and destination directly
which increases the speed of the network. Both switch and hub have common
features: Multiple RJ-45 ports, power supply and connection lights.
Coaxial cable: Coaxial cable more resembles like TV installation cable. It is more
expensive than twisted-pair cable but provide high data transmission speed.
Fiber-optic cable: It is a high-speed cable which transmits data using light beams
through a glass bound fibers. Fiber-optic cable is high data transmission cable
comparing to the other cable types. But the cost of fiber optics is very expensive
which can only be purchased and installed on governmental level.
5. Router: When we talk about computer network components, the other device that
used to connect a LAN with an internet connection is called Router. When you have
two distinct networks (LANs) or want to share a single internet connection to
multiple computers, we use a Router. In most cases, recent routers also include a
switch which in other words can be used as a switch. You don’t need to buy both
switch and router, particularly if you are installing small business and home
networks. There are two types of Router: wired and wireless. The choice depends on
your physical office/home setting, speed and cost.
6. Gateway
Gateway Rule - Gateway should belong to same subnet to which your PC belongs. In
a communications network, a network node equipped for interfacing with another
network that uses different protocols. A gateway may contain devices such as
protocol translators, impedance matching devices, rate converters, fault isolators, or
signal translators as necessary to provide system interoperability. It also requires the
establishment of mutually acceptable administrative procedures between both
networks. A protocol translation/mapping gateway interconnects networks with
different network protocol technologies by performing the required protocol
conversions. Loosely, a computer or computer program configured to perform the
tasks of a gateway. For a specific case, see default gateway.
Gateways, also called protocol converters, can operate at any network layer. The
activities of a gateway are more complex than that of the router or switch as it
communicates using more than one protocol.It works on OSI layers 4 to 7.
7. Repeater
The term "repeater" originated with telegraphy in the 19th century, and referred to an
electromechanical device used to regenerate telegraph signals. Use of the term has
continued in telephony and data communications.It works on OSI layer. In
telecommunication, the term repeater has the following standardized meanings:
Advantages:
Makes it easy to expand a network over a large distance.
Connection between various types of media [e.g. fiber optic, UTF,
coaxial cable] is possible.
Disadvantages:
Traffic cannot be filtered to ease congestion.
9. RJ-45 Connector:
The connectors used for registered jack installations are primarily the modular
connector and the 50-pinminiature ribbon connector types. For example, RJ11 uses a
six-position two-conductor connector (6P2C), RJ14 uses a six-position four-
conductor (6P4C) modular plug and jack, while RJ21 uses a 25-pair (50-pin)
miniature ribbon connector.
10. Modem
A modem is a device or program that enables a computer to transmit data
over, for example, telephone or cable lines. Computer information is stored digitally,
whereas information transmitted over telephone lines is transmitted in the form of
analog waves. A modem converts between these two forms. The most common use
for modems is for both sending and receiving of the digital information between
personal computers. This information used to be transmitted over telephone lines, the
last dial-up standard, to an analog modem that would convert the signal back to a
digital format for a computer to read.
Router Switch
Hub Switch