Professional Documents
Culture Documents
Experiment7 E059 MC
Experiment7 E059 MC
7
(PART B: TO BE COMPLETED BY STUDENTS)
(Students must submit the soft copy as per following segments within two hours of the
practical. The soft copy must be uploaded on the Blackboard or emailed to the concerned
lab in charge faculties at the end of the practical in case the there is no Black board access
available)
B.1 Code:
/*
*/
package ipinip;
/**
* @author mpstme.student
*/
class Source {
sourceIP = x;
destinationIP = y;
packet = z;
};
String send() {
return xx;
class Router {
sourceIP = x;
destinationIP = y;
packet = z;
};
String send() {
void printer() {
System.out.print(packet);
String remove() {
class Destination {
public Destination(String z) {
sourceIP = splited[0];
destinationIP = splited[1];
packet = splited[2];
};
/**
System.out.println("Source: ");
System.out.println("Router 1: ");
System.out.println("Router 2: ");
System.out.println(destination.packet);
System.out.println(destination.sourceIP);
System.out.println(destination.destinationIP);
B.2 Input/Output:
run:
Source:
Router 1:
hello
192.168.0.11
192.168.0.21
B.3 Conclusion:
We have successfully implemented IP-in-IP protocol.