diff_months: 21

Socket Programming & Internet Protocol Communication - IT Assignment Help

Flat 50% Off Order New Solution
Added on: 2022-08-20 00:00:00
Order Code:
Question Task Id: 403265
  • Country :

    Canada

Assignment Task
 

 

Introduction to Socket Programming
A socket is an endpoint used for in Internet protocol communication; an IP address followed by a colon and a number: 172.217.2.110:80. The latter is the socket connection for www.google.com web server. This lab not meant to be a complete investigation of socket programming but is designed to 'get your feet wet' and begin to recognize ways in which networking tools can be used for troubleshooting.The Client / Server Model is the basic architecture of socket programming. The server program executes first, creating a socket and listens for data to be received; the client executes second; it makes a connection to the listening port and sends the first network packet to the server. After initial contact, either the client or the server is capable of sending and receiving data through a full duplex connection.The TCP protocol handles lost packets, duplicate packets, packet sequencing, flow control and congestion control. The diagram below gives a graphic view of socket programming using the TCP/IP protocol stack.

Ports
Sockets are the UNIQUE endpoints of an Internet communication which allow data to be exchanged. There are 65,535 ports on a PC. Suppose you are running an ftp client, a telnet client, and a web browser concurrently. When data arrives at the data-link layer, to which application should the packet be delivered? Well part of the packet contains a value holding a port number, and it is this number which determines to which application the packet should be delivered. Some of the common protocol ports are listed below:
Protocol Port

  • File Transfer Protocol (FTP) 20/21
  • Secure Shell (SSH) 22
  • Telnet 23
  • Simple Mail Transport Protocol (SMTP) 25
  • Domain Name System (DNS) 53
  • Dynamic Host Configuration Protocol (DHCP) 67/68

Internet Message Access Protocol (IMAP) 143
Ports 0 – 1023, are called “well-known ports” and are reserved by the IETF. Servers or clients that you create will not be able to bind to these ports unless you have root privilege.Ports 1024 – 65535 are available for programs you write but beware other network applications maybe running and using these port numbers as well, so do not make assumptions about the availability of specific port numbers. Keep your port number above 59000 to avoid conflict with other applications.Find a YouTube video that describes socket programming. I recommend the following video, where a simple socket connection is set up between server and client.[Python Tutorial -- NetworkingThis video is written in Python, but you are free to use whatever language you prefer. Make sure that whatever tutorial you choose, that there is a server and a client, and that there is a simple 'Hello World' message being passed between the two.You are free to _copy_ the code from whatever video you follow, without modification. *This isn't a programming lab*. But I do recommend that you type in manually whatever code you are given and do make sure to *attribute* whatever tutorial or video you choose to follow in your program's comments.Once you have your server compiled and running. Type netstat -a to show the open port. Notice the port is “listening for client connections”. Take a screen shot.Compile and run your client. Type netstat -a and show the connected port. Notice the port is now “established”. Take a screen shot and name your file learnname_established.jpeg [0.4 Marks]Your client will connect to the port on localhost that you have opened. Instead of "Hello World", you should send your username to the server. [0.4 Marks]Capture that packet using WireShark. Use a filter to capture only traffic on localhost. [IPv4 loopback address is: 127.0.0.1 and IPv6 loopback address iss.
The filter command is:

  • For Ipv4 enabled systems use command: ip.addr==127.0.0.1
  • For IPv6 enabled systems use command: ipv6.addr == ::1


Grading:

  • learnname_listening.jpeg
  • learnname_established.jpeg
  • learnname_message.jpeg
  • learnname_packet.jpeg

 

 

This IT Assignment has been solved by our IT Experts at Exam Question Bank. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
    

Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

  • Uploaded By : Katthy Wills
  • Posted on : March 01st, 2020
  • Downloads : 0
  • Views : 383

Order New Solution

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more