StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...

Networking and communication sys (sockets) - Assignment Example

Cite this document
Summary
PART 1: General Knowledge of Sockets and Threads (7%) 1. Internet socket or network socket is an end point for the two- way communication link where information is exchanged in one or more processes running on one or more computers in the network. It allows a client to send requests to a server and a server to receive these requests and respond to them.  Fig 1 Server-Client Model (Richtie R, 1995) 2…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER96% of users find it useful
Networking and communication sys (sockets)
Read Text Preview

Extract of sample "Networking and communication sys (sockets)"

Download file to see previous pages

In contrast, for example, when we send letter through post office, no connection is established between the sender and receiver of the letter .To reestablish connection in this connectionless communication system, next letter is the only option. Fig 2 Connection –oriented and Connectionless Socket Programming(Ginni T. 2010) 3. Analyzing the flow of code from top to bottom gives a better understanding. Set up few variables to store information on the IP address and port on which the socket server will be executed to generate socket.

Next, bound it to the specified addresses and port. Wait for incoming requests to establish connections. Once a client connection is received, the socket accepts the request to handle information exchange. Client now sends some data as input, which is read by the server socket and executed. Both generated sockets are terminated after server sends output back to the client (as in Khanna S.1995). Summarizing, the four important steps in socket programming between client and server involves; opening the socket; opening an input and output stream to the socket; reading from and writing to the socket according to server protocols; cleaning up . 4. Socket is implemented at the client side for sending requests to the machine port, and requires IP/hostname (address) of the server while Server Socket, executed on the server side, listens and answers client queries in reference to its port number. 5. Thread is the smallest unit of processes during execution that can be scheduled by an operating system.

It is used for duplication of computer programs, when two or more tasks are executed concurrently. The thread has four high level states namely, ready, running, waiting and dead. Fig 3. A process with two threads of execution (Shaw Philip 2011) 6. Threads can be created by either implementing runnable interface when requirement is of single thread and extending the thread class for multiple threads. Depending on number of threads either of the two process is preferred. Extending Thread Class Fig4.

Thread Creation(Olira G.) is preferred while creating multiple threads. 7. When a thread instead of being scheduled by current operating system is lined up by virtual machine, its called green thread whereas working thread usually handles many concurrent tasks, allocating one thread to perform one task. 8. Thread is the smallest unit of processes during execution, which can be organized by an operating system whereas runnable is an interface used to create threads in the same process. Implementing a Runnable may have some advantages over extending thread while creating single thread. 9. Multithreading is the execution of different parts of a process called threads, simultaneously at the same time without interfering with each other.

In reference to multithreading, synchronization is the capability to control the access of multiple threads (or tasks) to the shared resources so that one thread do not alter a shared variable while another is in the process and hence, avoiding errors. In the diagram there are three threads of a single process, each with a different query and response. Fig5. Synchronization in Multithreading(LandrieuS.,2008) 10. Preemptive scheduling is the act of temporarily interrupting a task being carried out by the processor and resuming it later.

Time slicing is the time period for which

...Download file to see next pages Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Networking and communication sys (sockets) Assignment”, n.d.)
Retrieved from https://studentshare.org/family-consumer-science/1410784-networking-and-communication-sys-sockets
(Networking and Communication Sys (sockets) Assignment)
https://studentshare.org/family-consumer-science/1410784-networking-and-communication-sys-sockets.
“Networking and Communication Sys (sockets) Assignment”, n.d. https://studentshare.org/family-consumer-science/1410784-networking-and-communication-sys-sockets.
  • Cited: 0 times

CHECK THESE SAMPLES OF Networking and communication sys (sockets)

The security technology of e-commerce

The author of the essay comments on the peculiar features of the e-commerce security technology.... Reportedly, e-commerce is associated with a business carried out through the Internet.... To be precise, it evolves online banking, purchasing and selling products online.... … In today's internet environment, the consumer faces a lot of risks while conducting business through the internet....
8 Pages (2000 words) Essay

Computer networking and management

This can also fall into the commercialization of networking.... Constant changes to the network environment and the incredible traffic load from various sources of data request and exchange are challenging and sometime overwhelming to the network manager.... From the various platforms that interact within a network such as the server(s),… The advent of sophisticated, packet-level network-management tools allow administrators to determine the types of traffic flowing across their networks, and create security and It is also possible for network managers to restrict or otherwise bock the service for specific types of traffic or threats....
20 Pages (5000 words) Essay

The Ways How Human Resource management Controls Social Networking

Social networking is a useful tool, which can be used by companies as a way of communication between supervisors and subordinates.... long with the benefits of quick communication, social networking websites provide the opportunity to share the information needed between two employees, companies and subordinates.... This paper will suggest the ways how HRM can control the use of social networking websites of their workers, what policies should be created for use of such sites and how to make the beneficial use of social networking because, on the other hand, it is an efficient source of spreading the business....
8 Pages (2000 words) Literature review

Multicast routing in mobile networking

In Proceeding of the ACM Symposium on Mobile Ad Hoc networking and Computing (MobiHOC)... In Proceedings of the SCS communication Networks and Distributed Systems modeling and Simulation ConferenceJ.... Madruga) With regard to throughput rate runned when the numbers of receivers are one and two, MAODV is higher than MULTICAST ROUTING IN MOBILE networking Multicast routing in mobile networking....
2 Pages (500 words) Essay

The Concept of Networking

The concept explains all the aspects that all together form the communication process (Microsoft, 2014).... The discussion emphasizes the principles and operations of layered communication protocols.... The layered communication protocols of networking are discussed hereunder.... The paper "The Concept of networking " highlights that in general, the DNS concept is a technique through which the DNS address provided to the main server of an organization can be translated into an IP address for easy recognition over the World Wide Web....
9 Pages (2250 words) Essay

Wireless Network Capabilities

This essay “Wireless Network Capabilities” focuses on the technical capabilities of the recent advancements in wireless networks and the feasibility of using a new handset product known as HyperSlim PX on such wireless computing and networking capabilities.... hellip; The author states that the past few decades have witnessed a tremendous growth in the population of wireless network users who are increasingly demanding high performance and reliability of wireless computing and networking services....
12 Pages (3000 words) Essay

Analysis of Internet Protocol Networks

hellip; Protocols in data communication are the rules and procedures that govern communications between different devices on a network.... Its goals were to encourage communication among research institutions and have a system that could withstand nuclear disasters....
13 Pages (3250 words) Coursework

Telecommunications and Networking - Reliability and Quality of Service

As the paper outlines, the overall effectiveness of a communication network or channel can be measured in terms of its Quality of Service requirements and specifications.... The overall effectiveness of a communication network or channel can be measured in terms of its Quality of Service requirements and specifications.... Modern businesses are in pursuit of higher speed communication systems that are able to save time and make businesses run smoothly....
10 Pages (2500 words) Assignment
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us