Technical Interview Questions - Networking: What Is An IP Address?
Technical Interview Questions - Networking: What Is An IP Address?
Technical Interview Questions - Networking: What Is An IP Address?
What is an IP address?
An Internet Protocol address (IP address) is a numerical label that is assigned to any device participating
in a computer network that uses the Internet Protocol for communication between its nodes.[1] An IP
address serves two principal functions: host or network interface identification and location addressing.
Its role has been characterized as follows: "A name indicates what we seek. An address indicates where
it is. A route indicates how to get there
A mask used to determine what subnet an IP address belongs to. An IP address has two components,
the network address and the host address. For example, consider the IP address 150.215.017.009.
Assuming this is part of a Class B network, the first two numbers (150.215) represent the Class B
network address, and the second two numbers (017.009) identify a particular host on this network.
What is ARP?
ARP stands for "Address Resolution Protocol" and is a protocol that used to identify the hardware
address of a network host. This type of protocol is used for local area networking (LAN) and for creating
pathways for network traffic when the location for the next router must be identified. The method of
using Address Resolution Protocol is integrated with numerous different kinds of networks including
Internet, Ethernet, Wide Area Networks (WAN), IP (Internet Protocol) and Local Area Networks (LAN).
http://www.spamlaws.com/how-ARP-works.html
ARP cache poisoning, also known as ARP spoofing, is the process of falsifying the source Media Access
Control (MAC) addresses of packets being sent on an Ethernet network. It is a MAC layer attack that can
only be carried out when an attacker is connected to the same local network as the target machines,
limiting its effectiveness only to networks connected with switches, hubs, and bridges; not routers.
The principle of ARP spoofing is to send fake, or "spoofed", ARP messages to an Ethernet LAN. Generally,
the aim is to associate the attacker's MAC address with the IP address of another node (such as the
default gateway). Any traffic meant for that IP address would be mistakenly sent to the attacker instead.
The attacker could then choose to forward the traffic to the actual default gateway (passive sniffing) or
modify the data before forwarding it (man-in-the-middle attack). The attacker could also launch a
denial-of-service attack against a victim by associating a nonexistent MAC address to the IP address of
the victim's default gateway.
http://en.wikipedia.org/wiki/ARP_spoofing
The AND function (or operation) is pretty simple...two binary digits are
compared, and based on their combination, a result is produced. It's
not addition, multiplication, subtraction, division, etc... I mean,
there are only 3 outcomes possible when ANDing two binary digits.
CODE :
0 AND 0 = 0
0 AND 1 = 0
1 AND 1 = 1
Anding is a process in which we AND "IP address" with "subnet mask" to get Network ID.
http://www.hackthissite.org/articles/read/902
A Default gateway
is a node (a router) on a TCP/IP Network that serves as an access point
to another network. A default gateway is used by a host when the ip's
packet destination address belongs to someplace outside the local subnet.
Without a default gateway you will not be able to route packets out
of your LAN,
http://www.scripts4it.com/interview-questions/networking/what-is-a-default-gateway-what-
happens-if-i-dont-have-one
Can a workstation computer be configured to browse the Internet and yet NOT have a
default gateway?
Without default gateway you cannot browse internet. It doesnt matter if you are on public or
private network. Default Gateway is required to route your IP packets from your network to
the other networks.
http://wiki.answers.com/Q/Can_a_workstation_computer_be_configured_to_browse_the_Interne
t_and_yet_NOT_have_a_default_gateway
What is a subnet?
A subnet specifies a range of IP addresses. The special attribute of a subnet is that all the computers
within the subnet (a "sub-network") can talk directly to each other, and don't need a router to
communicate.
http://www.intermapper.com/faq-ip-address/429-what-is-a-subnet-why-do-i-care
What is APIPA?
A Windows-based computer that is configured to use DHCP can automatically assign itself an Internet
Protocol (IP) address if a DHCP server is not available. For example, this could occur on a network
without a DHCP server, or on a network if a DHCP server is temporarily down for maintenance.
With this feature, a Windows computer can assign itself an Internet Protocol (IP) address in the
event that a DHCP server is not available or does not exist on the network. This feature makes
configuring and supporting a small Local Area Network (LAN) running TCP/IP less difficult.
When a DHCP server fails, APIPA allocates addresses in the private range 169.254.0.1 to
169.254.255.254. Clients verify their address is unique on the LAN using ARP. When the
DHCP server is again able to service requests, clients update their addresses automatically.
In APIPA, all devices use the default network mask 255.255.0.0 and all reside on the same
What is an RFC? Name a few if possible (not necessarily the numbers, just the ideas
behind them)
Answer:
A Request For Comments (RFC) document defines a protocol or policy used on the Internet. An
RFC can be submitted by anyone. Eventually, if it gains enough interest, it may evolve into an
Internet Standard ( see FAQ XXX). Each RFC is designated by an RFC number. Once published,
an RFC never changes. Modifications to an original RFC are assigned a new RFC number.
http://www.gordano.com/kb.htm?q=270