Common routing protocol

Problem Explain any common routing protocol in detail. For example: BGP, OSPF, RIP. Solution BGP: Border Gateway Protocol BGP is the core routing protocol of the Internet . When a BGP router first comes up on the Internet, either for the first time or after being turned off, it establishes connections with the other BGP routers with which it directly communicates. The first thing it does is download the entire routing table of each neighboring router. [Read More]

Compare and contrast IPv4 and IPv6

Problem Compare and contrast the IPv4 and IPv6 protocols. Solution IPv4 and IPv6 are the internet protocols applied at the network layer. IPv4 is the most widely used protocol right now and IPv6 is the next generation protocol for internet. Table Cell Table Cell IPv4 is the fourth version of Internet protocol which uses 32 bit addressing IPv6 is a next generation internet protocol which uses 128 bits addressing. [Read More]

What is a network/subnet mask

Problem What is a network / subnet mask? Explain how host A sends a message / packet to host B when: (a) both are on same network and (b) both are on different networks. Explain which layer makes the routing decision and how. Solution A mask is a bit pattern used to identify the network/subnet address. The IP address consists of two components: the network address and the host address. [Read More]

What happens after typing a URL into a browser

Problem Explain what happens, step by step, after you type a URL into a browser. Use as much detail as possible. Solution Take the URL of my website as example: k2code.blogspot.com. There’s no right, or even complete, answer for this question This question allows you to go into arbitrary amounts of detail depending on what you’re comfortable with. Here’s a start though: Lets assume a simple http request. [Read More]

What is a Graph data structure?

Graphs consist of 2 ingredients : Vertices (V) , also called nodes and can be pictured as dots Edges (E) , the line connecting the nodes. Types of Graphs Depending on the edges, there two types of graphs: Undirected Graphs - A graph that entail edges with ordered pair of vertices, however it does not have direction define. Example of such a graph is the ‘Family tree of the Greek gods’ **Directed Graphs (**aka Arcs) - Directed Graph: A graph that entail edges with ordered pair of vertices and has direction indicated with an arrow. [Read More]

Troubleshooting DNS servers

There may be broadly 2 problems we face when dealing with DNS server: The DNS server is not responding to clients. The DNS server does not resolve names correctly. Dealing with them 1 by 1. The DNS server is not responding to clients Cause 1: Network failure Solution: Check if the hardware is fully ok, i.e. adapters are properly plugged or not. Then check network connectivity by pinging other computers or routers (such as its default gateway) that are used and available on the same network as the affected DNS servers. [Read More]

Socket Programming In C

Today we will discuss about Sockets programming paradigm, elements of Sockets applications, and the Sockets API. The Sockets API allows to develop applications that communicate over a network. The network can be a local private network or the public Internet. An important item about Sockets programming is that it’s neither operating system specific nor language specific. Sockets applications can be written in the Ruby scripting language on a GNU/Linux host or in C on an embedded controller. [Read More]

Simplified IP Addressing

Basics The first question concerns what constitutes a Class A, or a Class B, etc. network. Novices have trouble remembering where each class begins and ends. Table 3 shows a schema to help with this. First, let’s discuss some basics of binary numbers. A byte is a grouping of eight binary bits. Since a binary bit is either a 0 or a 1, a byte consists of eight 0s and/or 1s. [Read More]

Basic Interview Questions on networking

What is DHCP? DHCP stands for Dynamic Host Configuration Technology. The basic purpose of the DHCP is to assign the IP addresses and the other network configuration such as DNS, Gateway and other network settings to the client computers. DHCP reduces the administrative task of manually assigning the IP addresses to the large number of the computers in a network. What is DNS and how it works? DNS stands for Domain name system and it translates (converts) the host name into the IP address and IP address into to the host name. [Read More]