Java_Networking_Practicals_With_Output
Java_Networking_Practicals_With_Output
Executed Output:
Sending frame 0: A
ACK received for frame 0
Sending frame 1: B
ACK received for frame 1
Sending frame 2: C
Timeout/Error for frame 2, resending...
Sending frame 2: C
ACK received for frame 2
Sending frame 3: D
ACK received for frame 3
Sending frame 0: A
Sending frame 1: B
Sending frame 2: C
ACK received for frame 0
Sending frame 3: D
Sending frame 4: E
Sending frame 5: F
Timeout/Error, resending from frame 1
Sending frame 1: B
Sending frame 2: C
ACK received for frame 1
Practical 2: Socket Programming and Client-Server Model
Executed Output:
Server side:
Client says: Hello Server!
Client side:
Message sent to server.
Practical 3: ARP / RARP Protocol Simulation
Executed Output:
MAC Address for IP 192.168.0.1 is 00:0a:95:9d:68:16
Practical 4: PING and TRACEROUTE Simulation
Executed Output:
PING google.com ...
64 bytes from 142.250.72.14: icmp_seq=1 ttl=118 time=18.3 ms
64 bytes from 142.250.72.14: icmp_seq=2 ttl=118 time=18.2 ms
Traceroute:
1 192.168.1.1 2.345 ms
2 10.10.0.1 3.567 ms
3 ***
4 google.com 18.2 ms
Practical 5: HTTP Socket for Web Page Upload/Download
Executed Output:
HTTP/1.1 200 OK
Date: Sat, 10 May 2025 10:00:00 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 1270
<html><body>Example Domain</body></html>
Practical 6: RPC (Remote Procedure Call) Simulation
Executed Output:
Result from remote procedure: 8