Skip to content

nahad3/twister

 
 

Repository files navigation

Twister API

Build Status:

Build Status

How To:

Clone

The Twister source can be clone using the following command:

  git clone https://github.com/twister2016/twister

Compile and Install

The Twister package can be install using the following commands:

	make install

Applications

  • ARP Application This application implements the address resolution protocol, it takes input as IP address and finds the MAC address of that machine if it exist on same network.
  • Ethernet Echo Application This application performs Layer-2 forwarding for each packet that is received on the port. All the other fields in the packets remain the same - only the MAC addresses are affected.
  • Gateway Application This application plays the role of layer-3 router at smaller scale. The purpose is to harness the abstraction and functionality of Twister API to write sophisticated networking applications. This router forwards the packets received from one network to another using layer-3 forwarding. It also responds to the ARP requests as well as PING request on its both interfaces.
  • Ping This application sends the ICMP packets (ping), it takes IP from console, and sends the ICMP packets to this machine. When it gets the ICMP reply packet, it displays the ICMP parameters to user, like TTL, RTT, sequence number etc.
  • UDP Echo This application is an example of packet processing built on Twister API to echo back the UDP traffic.
  • ICMP Echo This application responds for the ICMP(Ping) packets.
  • Multi-Ethernet Echo This applications is an example of Layer-2 packet processing built on Twister API which also takes advantage of more than one ethernet port.
  • Reverse Application This application implements the reverse address resolution protocol. It sends the RARP request and displays the IP resolved from RARP response.

How to Compile:

To compile any applications, from the root directory of the Twister repository execute the following commands:

cd examples/<Application Name>
make clean
make

License

Releases

No releases published

Packages

No packages published

Languages

  • C 95.7%
  • Makefile 2.8%
  • Other 1.5%