network

Socket Programming using UDP in C

1.0 Datagram sockets There are two major types of network sockets, viz. Stream sockets (SOCK_STREAM) and Datagram sockets (SOCK_DGRAM). The socket type defines the semantics of communication between this socket and its remote counterpart. Stream sockets provide full-duplex reliable sequenced data streams. Datagram sockets support connectionless unreliable messages between the source and destination sockets. Datagram …

Socket Programming using UDP in C Read More »

Network Traffic Control with tc command in Linux

1.0 Network Traffic Control Computer network traffic is the data moving across the network at a given time. Network bandwidth is the maximum amount of data that can be transmitted over the network in unit time. Computer networks face the possibility of network congestion, where excessive data is trying to pass through the network and …

Network Traffic Control with tc command in Linux Read More »

ip command in Linux with examples

1.0 INTRODUCTION The iproute2 package contains utilities for network and traffic control. The major commands in iproute2 package are the ip command for IPV4 and IPV6 configuration and tc for traffic control. These commands replace the older ifconfig and the route commands of the net-tools package. iproute2 package utilities use the Netlink interface to communicate …

ip command in Linux with examples Read More »

Wireless is disabled by hardware switch

While configuring the wired network on Ubuntu 12.04 Linux laptop, the wireless network connection broke down suddenly. On clicking the networking icon on the top panel, no wireless networks were displayed on the NetworkManager applet and a message Wireless is disabled by hardware switch was reported. The laptop wireless switch was in the on position. …

Wireless is disabled by hardware switch Read More »

sar command in Linux

The sar command under Linux and Unix systems gives the system activity reports. As the system works, a record of activities is kept in certain counters in the kernel. The sar command gives statistics regarding the CPU, I/O, paging, devices, memory, swap space, network, run queue length and load average, interrupts and power management. At …

sar command in Linux Read More »

Synchronize your computer’s clock using the NTP

Coordinated Universal Time The Coordinated Universal Time (UTC) is the universally accepted time standard based on atomic clocks with leap seconds added judiciously to keep it in tune with the traditional solar time. The UTC is available as standard from designated national measurement institutes (NMIs) in most countries. It is used as the standard by …

Synchronize your computer’s clock using the NTP Read More »

Starting a network server after communication interface is up

If you have a program that communicates over the network interface, say, eth0 and you wish to start the program automatically after the system startup, you need to ensure that the program starts after the interface eth0 is up. For Linux systems using the Upstart process management daemon, this can be done by starting the …

Starting a network server after communication interface is up Read More »