Docsity

1644_Cloud Computing_Assignment 1, Assignments of Computer Programming

Toggle sidebar
bg1
ASSIGNMENT 1 FRONT SHEET
Qualification BTEC Level 5 HND Diploma in Computing
Unit number and title Unit 16: Cloud computing
Submission date 6/19/2022
Date Received 1st
submission
Re-submission Date Date Received 2nd
submission
Student Name Mai Tran Tuan Anh Student ID GCD201452
Class GCD0904 Assessor name Tran Trong Minh
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature Tuan Anh
Grading grid
P1 P2 P3 P4 M1 M2 D1
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33

Partial preview of the text

Download 1644_Cloud Computing_Assignment 1 and more Assignments Computer Programming in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 16: Cloud computing Submission date 6/19/2022 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Mai Tran Tuan Anh Student ID GCD Class GCD0904 Assessor name Tran Trong Minh Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Tuan Anh Grading grid P1 P2 P3 P4 M1 M2 D

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date: Internal Verifier’s Comments: Signature & Date:

  • I. CLIENT – SERVER.......................................................................................................................................................
      1. Definition of cloud computing.............................................................................................................................
      1. Definition of client – server.................................................................................................................................
      1. Categories of client-server computing.................................................................................................................
      1. Characteristic of client-server computing............................................................................................................
      1. Advantages and disadvantages............................................................................................................................
      1. Example...............................................................................................................................................................
  • II. P2P...........................................................................................................................................................................
      1. Definition.............................................................................................................................................................
      1. Types..................................................................................................................................................................
      1. Characteristics...................................................................................................................................................
      1. Advantages and disadvantages..........................................................................................................................
      1. Example.............................................................................................................................................................
  • III. High performance computing...............................................................................................................................
      1. Definition...........................................................................................................................................................
      1. Parallel programming........................................................................................................................................
      1. Cluster programming.........................................................................................................................................
      1. Distributed system.............................................................................................................................................
  • IV. DEPLOYMENT MODELS.........................................................................................................................................
      1. Public cloud.......................................................................................................................................................
      1. Private cloud......................................................................................................................................................
      1. Community cloud...............................................................................................................................................
      1. Hybrid cloud......................................................................................................................................................
  • V. SERVICE MODEL.....................................................................................................................................................
      1. Software as a Service (SaaS)..............................................................................................................................
      1. Platform as a Service (PaaS)...............................................................................................................................
      1. Infrastructure as a Service (IaaS).......................................................................................................................
  • VI. CLOUD ARCHITECTURE.........................................................................................................................................
  • VII. 5 CHARACTERISTICS OF CLOUD COMPUTING......................................................................................................
      1. On-Demand Self Service....................................................................................................................................
      1. Broad network access........................................................................................................................................
      1. Rapid elasticity...................................................................................................................................................
      1. Resource pooling...............................................................................................................................................
      1. Measured service...............................................................................................................................................
  • VIII. VIRTUALIZATION AND MULTICORE....................................................................................................................
      1. Virtualization.....................................................................................................................................................
      1. Multicore...........................................................................................................................................................
  • IX. EXPLAIN WHY ATN SHOULD USE CLOUD..............................................................................................................
      1. Scenario.............................................................................................................................................................
      1. Solution..............................................................................................................................................................
  • X. WHICH DEPLOYMENT MODEL SHOULD BE USED AND WHY..................................................................................
  • XI. WHICH SERVICE MODEL SHOULD BE USED AND WHY..........................................................................................
  • XII. WHICH PROGRAMMING LANGUAGE SHOULD BE USED......................................................................................
  • XIII. WHICH DATABASE SHOULD BE USED.................................................................................................................
  • XIV. WHICH CLOUD PLATFORM SHOULD BE USED....................................................................................................
  • XV. BIBLIOGRAPHY.....................................................................................................................................................
  • Figure 1: Cloud computing...........................................................................................................................................
  • Figure 2: Client-server.................................................................................................................................................
  • Figure 3: Peer-to-peer model....................................................................................................................................
  • Figure 4: HPC model..................................................................................................................................................
  • Figure 5: Parallel programming.................................................................................................................................
  • Figure 6: Example of cluster model...........................................................................................................................
  • Figure 7: Distributed model.......................................................................................................................................
  • Figure 8: Public cloud.................................................................................................................................................
  • Figure 9: Private cloud...............................................................................................................................................
  • Figure 10: Community cloud......................................................................................................................................
  • Figure 11: Hybrid cloud..............................................................................................................................................
  • Figure 12: SaaS..........................................................................................................................................................
  • Figure 13: PaaS..........................................................................................................................................................
  • Figure 14: IaaS...........................................................................................................................................................
  • Figure 15: Cloud architecture....................................................................................................................................
  • Figure 16: Virtualization............................................................................................................................................
  • Figure 17: Multicore..................................................................................................................................................
  • Figure 18: NodeJS code.............................................................................................................................................
  • Figure 19: MongoDB..................................................................................................................................................
  • Figure 20: Heroku website.........................................................................................................................................

server. Servers wait for requests from clients to arrive before responding. Clients should not need to be aware of the specifics of the system (i.e., the hardware and software) that is providing the service if a server provides a standardized transparent interface. Clients are typically found at workstations or on personal computers, while servers are typically found elsewhere on the network, on more powerful devices. When clients and the server are working together frequently, this computing approach is extremely effective. Figure 2 : Client-server

  • The client-server interaction uses a request–response message pattern and must follow a common communications protocol that formally defines the rules, terminology, and conversation patterns that must be followed. The TCP/IP protocol suite is commonly used for client-server communication. The TCP protocol keeps a connection open until the client and server have finished exchanging messages. TCP selects the optimum way to partition application data into network-deliverable packets, sends and receives packets from the network, and performs flow control and retransmission of dropped or garbled packets. IP is a connectionless protocol in which each packet moving over the Internet is a separate unit of data from all other data units.
    1. Categories of client-server computing
  • There are 4 main categories in client-server computing:  One-tier: comprises of a simple application that runs on a single machine and does not require network connection. Because user requests do not control any network protocols, the code is simple and the network is free of the extra traffic.

 Two-tier: The client, the server, and the protocol that connects the two tiers make up a two-tier architecture. The domain logic is on the server host, while the graphical user interface code is on the client host. High-level languages like C++ and Java are used to create the client-server GUI.  Three-Tier: The presentation tier, which is the User Interface layer, the application tier, which is the service layer that performs detailed processing, and the data tier, which is the database server that stores information, make up a three-tier architecture.  N-tier: design separates an application into logical levels that segregate responsibilities and handle dependencies, as well as physical tiers that run on distinct computers, improve scalability, and add latency due to increased network traffic. Closed-layer architecture, in which a layer can only connect with the layer below it, or open-layer architecture, in which a layer can communicate with any layer below it.

  1. Characteristic of client-server computing
  • The following are the most important aspects of client-server computing:  A request and response mechanism is used in client-server computing. The client makes a request to the server, which the server fulfills by providing the requested information.  The client and server should use the same communication protocol to make it easier for them to communicate with one another. At the application layer, all communication protocols are available.  A server can only handle a certain amount of client requests at any given moment. As a result, it responds to requests using a priority-based method.  By flooding a server with fake requests, denial of service attacks make it difficult for it to respond to legitimate client requests.
  1. Advantages and disadvantages
  • Some advantages that client-server architecture bring to the user can be listed are:  All of the necessary information is stored on a single server. As a result, it's simple to secure data and offer authorization and authentication.  It is not necessary for the server to be physically close to the clients. Nonetheless, the data may be accessible quickly.  Because all nodes in the client server architecture are independent and only request data from the server, it is simple to replace, upgrade, or relocate them.  Although all nodes, such as clients and servers, are not built on the same platform, they can readily allow data flow.
  • Besides, there are also some drawbacks:

Figure 3 : Peer-to-peer model

  1. Types
  • P2P network can be divided into 3 categories, which are:  Unstructured P2P networks: In an unstructured P2P network, any device can contribute equally. This network is simple to set up since devices can be linked in any order. However, because it is unstructured, it is difficult to locate content.  Structured P2P networks: These networks are created using software that generates a virtual layer to group nodes into a certain structure. These are not simple to set up, but they can provide consumers with easy access to content.  Hybrid P2P networks: This type of network combines the benefits of both a peer-to-peer and a client-server architecture. Finding a node using the central server is an example of such a network.
  1. Characteristics
  • The following are the many characteristics of peer-to-peer networks:  Fewer nodes are connected in a peer-to-peer network. Data is exchanged among all computers, and each machine stores its own data with its own security. \

 The entire computer shares resources such as a hard disk and a printer, among other things. When the number of computers in a peer-to-peer network grows, so does the network's resource sharing capability.  Because nodes act as both a server and a client in a peer-to-peer network, security is a major issue.  A peer-to-peer network was used by several current operating systems, including Windows and Mac OS.

  1. Advantages and disadvantages
  • Some advantages of P2P network can be listed are:  Because each node is independent of the others, the network is simple to manage.  Since each node acts as a server, therefore the cost of the central server is saved.  It's simple to add, delete, and repair nodes in this network.  The networking method is significantly more secure and safe.  Because additional peers can be added and configured in the network, the approach is very adaptable.
  • Disadvantages of P2P:  Because every computer has access to each other's data, overall performance is slowed.  Because each machine in the network shares resources and data, there is a security risk.  Files and folders are not backed up centrally.  All of the systems in the network store their data and process it independently, yet any malware or virus can readily access such a network if the security is breached.
  1. Example
  • P2P networks enable users to share processing power (distributed systems), data (file-sharing), and bandwidth through a variety of applications (using many nodes for transferring data). Instead of using strong centralized servers, P2P makes use of an individual's computer power and resources. The pooled resources ensure that peers have a high level of availability. P2P is a crucial field to investigate because it has enormous potential in distributed computing. It is also critical for the industry, as new business models based on peer-to-peer are emerging. For these reasons, a lot companies have already published and in the process of developing their application using P2P model. Some of the companies are:
  • Some famous application use P2P model are:  Skype: Skype is a peer-to-peer protocol developed by the same company that created Kazaa. Both users can use it to make audio conversations and send messages to each other, but they must stay in the Skype app.
  • Technology, data, and advanced computers are the only ways to make significant discoveries and creations in today's society. Artificial intelligence (AI), machine learning (ML), and the Internet of Things (IoT) are all requiring massive volumes of data as they develop. They also require high-performance computing since HPC systems can execute quadrillions of computations per second, compared to 3 billion calculations per second on conventional laptops and desktops (with a 3 GHz processor).
  • HPC is required for the following reasons:  It sets the path for new scientific, technological, business, and academic breakthroughs.  It boosts processing speeds, which is important for a variety of computing tasks, applications, and workloads.  It aids in the development of a dependable, rapid IT infrastructure capable of storing, processing, and analyzing large amounts of data for a variety of applications.
  • Some advantages that HPC bring to user are:  High speed travel: HPC is primarily concerned with ultra-fast processing, which means that HPC systems can conduct large amounts of calculations in a short amount of time. Regular processors and computer systems, on the other hand, would take days, weeks, or even months to complete these calculations. To boost processing speeds and computing performance, HPC systems often incorporate the latest CPUs and GPUs, as well as low-latency networking fabrics and block storage devices.  Cost effective: Because an HPC system can process data more quickly, applications can run more quickly and provide answers more quickly, saving time and money. Furthermore, many of these systems can be purchased on a "pay as you go" basis and scaled up or down as needed, enhancing their cost-effectiveness.  Reduced need for physical testing: Before they can be released for public or commercial usage, many modern-day programs must undergo extensive physical testing. One example is self-driving cars. HPC systems enable application researchers, developers, and testers to generate powerful simulations, reducing or even eliminating the need for costly or recurring physical tests. 2. Parallel programming
  • The terms parallel programming and parallel processing are synonymous, as is parallel computing, which refers to the technologies that allow parallel programming to run efficiently. Tasks are parallelized in parallel programming so that they can be run at the same time on many computers or numerous cores within a CPU. Parallel programming is essential for large-scale tasks that require speed and precision. It's a difficult task, but it lets developers, researchers, and users to do research and analysis faster than if they used a tool that could only handle one activity at a time.

Figure 5 : Parallel programming

  • Because of its capacity to breakdown jobs, parallel programming is a good fit for difficult issues involving enormous amounts of data, sophisticated calculations, or large simulations. Weather simulations, vaccine development, and astrophysics research are examples of formerly unsolvable issues that have been dissected using parallel programming. The following are some examples of parallel programming applications:  In the entertainment sector, advanced graphics are used.  Physics for use in industry  Climate research  Engineering in the electrical field
  • Parallel structure has been used since the early of 1960s. Until now, a lot of devices are using parallel processing. Some of them are  Cellphone: A 1.5 GHz dual-core processor powers the iPhone 5. The iPhone 11 features a total of six cores. The Samsung Galaxy Note 10 sports an eight-core processor. Parallel computing can be seen in all of these phones.  Desktop and laptop: Parallel computing is demonstrated by the Intel® processors that power most current computers. In the HP Spectre Folio and HP EliteBook x360, the Intel CoreTM i5 and Core i7 processors each contain four processing cores. The HP Z8 - the world's most powerful workstation - has 56 processor cores, allowing it to edit 8K footage in real time or conduct complicated 3D simulations.

to be present at the same time and in the same place. As a result of distributed computing's solution to this challenge, three new types of computing emerged: mainframe computing, cluster computing, and grid computing. Figure 7 : Distributed model

  • Some advantages of distributed system can be listed are:  The distributed system's nodes are all connected to one another. As a result, nodes can readily share data with one another.  The distributed system can easily expand by adding more nodes, allowing it to scale as needed.  The failure of a single node does not result in the entire distributed system failing. Other nodes will still be able to communicate with one another.  Printers, for example, can be shared among numerous nodes rather than being limited to just one.
  • There are also some drawbacks

 Because both the nodes and the connections must be secured, providing effective security in distributed systems is complex.  While travelling from one node to another, certain messages and data may be lost in the network.  In comparison to a single user system, the database related to distributed systems is highly complicated and difficult to manage.  If all of the distributed system's nodes try to transfer data at the same time, the network may get overloaded.

IV. DEPLOYMENT MODELS

  • There are four cloud deployment models: public, private, community, and hybrid. Each deployment model is defined according to where the infrastructure for the environment is located

1. Public cloud

1.1 Definition

  • The most prevalent type of cloud computing deployment is public clouds. A third-party cloud service provider owns and operates the cloud resources (such as servers and storage), which are distributed over the internet. The cloud provider owns and manages the hardware, software, and other supporting infrastructure in a public cloud. Figure 8 : Public cloud
  • In a public cloud, you share the same infrastructure, storage, and network devices as other businesses or "tenants," and you use a web browser to access services and manage your account. Web-based email, online office programs, storage, and testing and development environments are all common uses for public cloud deployments.

cloud). When data is moved from a private data center or private cloud to a public cloud, there is an inherent security risk.

  • Last but not least, think about where your public cloud service provider is located. Many countries' data privacy regulations mandate that some types of data be retained locally. These rules change regularly, so choosing a cloud service provider based in your country and able to ensure that the servers where your data will be housed are local and compliant with regional laws is a good option. There's also the issue of latency: if your data is stored on the other side of the world, it may take longer to access than if it were stored locally. 1.4 Public cloud providers
  • Amazon, Google, Microsoft, IBM, Oracle, and others offer public cloud services. Hundreds or thousands of people share resources. The public cloud infrastructure of Google Cloud Platform is a part of Google Cloud Storage public services. Public cloud services include Gmail and Google Drive. An email account, for example, is protected by a password, but the hardware on which it is kept is shared by millions of individuals. We've compiled a list of the many services offered by public cloud providers in the market:  Microsoft Azure ExpressRoute is a service provided by Microsoft.  Interconnect with Google Cloud  AWS Direct Connect (AWS Direct Connect)  IBM's Blue Cloud  Alibaba Cloud is a service provided by Alibaba.  Oracle Cloud Fast Connect is a service provided by Oracle.
  • Every cloud service provider provides a variety of services and packages over a broad range of service categories. Storage, compute, containers, and serverless are the four main categories. These categories are nearly identical, and how they are used is determined by the user's awareness.
    1. Private cloud 2.1 Definition
  • A private cloud, also known as an internal or corporate cloud, provides computing services to a single subscriber or business unit through a proprietary architecture. Private clouds, like other cloud computing systems, offer expanded and virtualized computer resources (compute, storage, and networking). Physical components on-premises or at the CSP's data center are used to do this.

Figure 9 : Private cloud

  • Many of the benefits of cloud computing, such as self-service and scalability, are combined with the control and security of on-premises IT infrastructure in a private cloud. Assume that the security of your workloads is a top priority. A private cloud may be the best solution in this instance since IT staff can control data governance and ensure compliance with any industry standards. 2.2 Advantages and disadvantages ADVANTAGES DISADVANTAGES  Are easily adaptable: On-premises private clouds can be readily configured to fulfill individual user requirements by IT teams. Private clouds, as a result, provide the exact environment needed to execute proprietary applications.  Give IT resources more control and visibility: IT teams can keep a tighter grasp on security measures because all workloads run behind the organizations' own perimeters.  Are completely comply with regulatory requirements: Because you can deploy private clouds with any retention and  High start-up costs: Fully on-premises- hosted clouds necessitate a significant investment in hardware to purchase and maintain.  When it comes to maximizing capacity utilization, there are several challenges: IT teams are solely responsible for maximizing the infrastructure's capacity utilization under a private cloud computing paradigm. A business can lose money if its cloud infrastructure is underutilized.  Problems with scalability: In a private cloud architecture, an enterprise that