BCA / B.Tech 8 min read

Creating Links in Wired Network

Creating Links in Hindi | Process of creating links in a wired network in Hindi:


  • The process of creating links in a wired network is an important task in NS2, which enables data communication between nodes. The creation of nodes, adding connections, specifying the characteristics of links, and setting up traffic generation are necessary for creating a consistent and functional network.
  • By using NS2, researchers and students can study various aspects of wired networks, which is extremely important for networking research.
  • Creating connections or links in a wired network is an important process that is necessary for transmitting data between different nodes. To understand the process of creating links in a wired network using NS2 (Network Simulator 2),
  • we need to focus on some basic concepts, setup methods, and examples.
Process of creating links in wired networks in Hindi | Process of creating links in a wired network:

1. Introduction to wired networks: A wired network is a network in which nodes are connected through physical cables. These networks generally have high speed and stability because data is sent directly through the connection.

2. Importance of link creation in NS2: In NS2, the creation of links enables data transfer between different nodes. This ensures that data can reach from one node to another without any hindrance.

3. Process of creating a link:

a. Creation of a simulator: First, you need to create a simulator object:

set ns [new Simulator]

b. Creation of nodes: Then, you need to create the nodes that will be linked together:

  • set node1 [$ns node]
  • set node2 [$ns node]
  • set node3 [$ns node]
  • Here, we have created three nodes (node1, node2, and node3).

c. Adding links: Now, you can add links between the nodes. In NS2, this is done using the connect command:

  • # Adding links between nodes
  • $ns connect $node1 $node2
  • $ns connect $node2 $node3
  • This command establishes links between node1 and node2, and between node2 and node3.

d. Characteristics of a link: You can also specify the characteristics of a link, such as bandwidth, latency, and packet loss. Example:

  • # Setting bandwidth and latency for the connection
  • $ns duplex-link $node1 $node2 1Mb 10ms DropTail
  • $ns duplex-link $node2 $node3 1Mb 10ms DropTail
  • Here, by using the duplex-link command, we have set a bandwidth of 1 megabit per second (Mb) and a latency of 10 milliseconds between node1 and node2. DropTail refers to the queue management method.

e. Traffic generation: Now, you can set up traffic generation to transfer data between the nodes. Example:

  • set tcp_agent [$ns create-traffic-generator TCP]
  • $ns attach-agent $node1 $tcp_agent
  • $ns connect $tcp_agent $node2
  • This command attaches the TCP agent to node1 and connects it to node2.

f. Running the simulation: Once the links and traffic generation are set up, you can give the command to run the simulation:

$ns run

4. Observation of data transfer between links and nodes

  • During the simulation, data packets travel between the nodes, and you can see this in the trace file. This file helps you to understand how the data is flowing and if there are any obstacles.

In this Chapter

Creating Links in Wired Network
Auto-Configuration and Anycast
Modified EUI-64 | What is Modified EUI-64?
Architecture of Mobile Computing
Wireless LAN in Hindi | What is Wireless LAN?
Wireless User Devices
MAC Protocol | What is MAC Protocol?
IEEE 802.11 | What is IEEE 802.11
Mobile IP | What is Mobile IP
Wireless TCP/IP
Unicast & Multicast Communication
Bluetooth | What is Bluetooth?
NS2 & NAM | What are NS2 and NAM?
Purpose & installation of NS2 & NAM
Background of NS2 & NAM
Architecture of NS2 & NAM
Interface of OTcl & C++
Trace Files & Formats
Protocol Support of NS2
Simulation Object of NS2 & NAM
Basic Syntax of NS2 & NAM
Node Creation of NS2 & NAM
Running NS2 & NAM
Finish Procedure NS2 & NAM
Invoking external commands within NS2
Nodes & Agents of NS2 & NAM
NS2 Commands
Setting Link Parameters
Sending Traffics Through NS2 Links
Routing Protocol Support of NS2
Scenarios in Wired Networks
Additional Parameters
Setting node positions
God object & topography
Protocol Support
Scenarios in Wireless Networks
What is the Internet? Difference Between Intranet and Extranet
Types of Internet
OSI Model and its Layers
Computer Network (CN) All Important Questions and Answers in English (MDSU)
BCA | Computer Network | 2025 Paper | MDSU Exam Paper
Importance of the Layer Model in Computer Networks
Network Classification
Network Topology
Network Switching & Components
Ethernet
Token Ring
Basic Networking Concepts & Cabling
What is a Computer in English?
Bridges in Computer Networks
Routers in Computer Networks
Gateways in Computer Networks
Public & Private Networks
FDMA (Frequency Division Multiple Access)
BCA | CN(Computer Network) Paper | 2023 MDSU Exam Paper
What is World Wide Web (WWW)
TDMA, SDMA, CDMA
Personal Communication System | What is PCS
IPv4 | What is IPv4?
Subnetting IPv4 Address
Casting in IPv4
Private IPv4 Addressing
IPv4 Address Scheme
IPv6 Addressing Scheme
Types of IPv6 Addressing