10 Socket programming using TCP or UDP
Output for TCP
1. Server output
Waiting for a connection...
Connection from ('127.0.0.1', 54321)
Received: Hello, TCP server!
2. Client Output
Received: Hello, TCP server!
Output for UDP
1. Server Output
UDP Server is up and listening...
Received Hello, UDP server! from ('127.0.0.1', 54321)
Sent Hello, UDP server! back to ('127.0.0.1', 54321)
2. Client Output
Sending: Hello, UDP server!
Received: Hello, UDP server!
Assignment 2
1) Write short note on:
i)Ethernet
ii)IPv6
iii) ssh
2) Explain the purpose of following protocols with their header format:
i)ARP
ii)ICMP
iii)DNS
3) Discuss Persistent and Non-Persistent Protocols used in Transport and Application layers of TCP/IP
protocol suite