Stampede

Stampede

Thursday, November 18, 2021

 

"Measure twice, cut once" is an old saying in carpentry. The expression also applies in IT regarding many disciplines, including Algorithmic choices upon data structures and adult beverages.

A data structure is a concept that forms an underlying rule set to understanding it; it organizes, retrieves, and stores data to be used more efficiently (Lysecky et al., 2015). A data structure is typically independent of hardware, operating systems, applications… even computer languages. Data structures such as arrays, stacks, queues, and trees are examples of various data structures.

Each data structure's underlying design has an additional advantage. The static design lends itself to a rule set to leverage the data stored within the data structure. This begotten ruleset is an algorithm. An algorithm allows for sorting, searching, insertion, deletion, and merging data within these data structures.  Returning to the adult beverage analogy, a cocktail shaker set is the data structure. Its design lends itself to manipulating alcohol through stirring, shaking, coiling, mixing various other liquids (data) into the desired output (cocktail).

Which data structure to utilize for a specific use case is dependent on its efficiency. In computer systems, space and time are easily measurable and are targeted by designers as jiggers and speed wells are by bartenders. Space complexity is the amount of memory used by the algorithm, including the input values, to execute it entirely and produce the result. Time complexity refers to a function describing the number of instructions required from the computer to finish the task. The combination of time complexity measurement and space complexity lends itself to an established baseline for comparing and contrasting options. The correct algorithm of a data structure lends itself to the desired result. Similarly, the bartender will usually consult a reference table to determine what tools in what sequence must be selected to manipulate various liquids into the desired result.

Do you like your Martini dry? Shaken or Stirred?



Friday, October 22, 2021

CPT307 Week 1 Interactive Assignment 2

 CPT307

Week 1 Interactive Assignment 2

Java in 3 minutes

Definition

Java is an object-oriented, platform independent, high-level language that is interpreted by a Java Virtual Machine (JVM) and gains efficiency through use of just-in-time (JIT) compilers. 

Core Principles

 Since Java is an object-oriented language, it is influenced by the four principles of all object-oriented languages. These principles are:

Encapsulation:
The hiding of data implementation by restricting access. 
Abstraction:
The development of classes, objects, and types in terms of their interfaces and functionality.
Inheritance:
The concept of creating a base class that has attributes shared by all objects. It becomes the parent of subclasses that further delineate objects by shared attributes.
Polymorphism:
The model of multiple methods having the same name. Two types of polymorphism exist in Java at the high level.
Run-time (overridding) determined by the assigned dynamic type of object.
Compile-time (overloading) determied by the complier.

     4 major principles of Object-Oriented Programming | Raymond Lewallen (codebetter.com)


Java Design 

When we write Java code, java compiler (javac) converts it to byte code. Javac is included in Java Development Kit (JDK). The byte code is then converted to machine-specific instructions via Java Virtual Machine (JVM). Machine-specific instructions are then run on the computer by Java Runtime Environment (JRE). JVM = Execution of a Java program. Because Java is a platform-independent language, it needs a virtual machine environment (interpreter) to run, which is provided by JVM. So, JVM is used to run Java code. Whenever we run a Java program either using JRE or JDK, it goes to JVM to be executed. JRE = JVM + Library Classes. JRE provides environment to run Java programs on our machines. JDK = JRE + Development Tools. JDK is used to develop and run Java code. It is used by developers.

    Check out: 

https://hakaneroztekin.medium.com/java-in-a-nutshell-a-quick-review-guide-of-important-topics-of-java-962cbf62b761#:~:text=Properties%20of%20Java%201%20Object%20oriented%3A%20Java%20is,fly%20to%20native%20machine%20instructions.%20More%20items...%20


Install

Be aware that Java and its components are version sensitive. Once installed, updates should be applied.

The link below will help with the install on various operating systems.

How do I install Java ?



Sunday, October 17, 2021

 This post is for the final assignment of CPT 304 Operating Systems Theory & Design.

Describe features of contemporary operating systems and their structures.

The operating system is built upon the model of components which are well delineated to meet the goals of the operating system. As such, different implementation models such as "batch, time sharing, single user, multiuser,distributed, real time, or general purpose" It follows that diffrent types of operating systems exist. For instance, a mainframe operating system z/OS, z/VSE, z/VM, z/TPF have their roots in the original System/360. The System/360 is a "pure"  OS, in it has very little application functionality built in. In contrast the AS/400 is a mid-system and its operating system with hooks into packaged software.  While it ran batch like a mainframe, it also leveraged user time sharing more effectively. Both before mentioned operating systems left the user interface to extended systems such as 3270 terminal emulator and 5250 respectively.  The mini-system or Personal computer came with an operating system that could accomplish batch jobs but was mainly designed around real-time user interaction, as such its user interfaces are a key component of the operating system. Today we have smart phones and the Internet of Things (IoT) that are smaller and run the scope of do-all device to just a specific task. Overall a kernel and its functions usually host memory management, process management, kernel-based protection, user-based security, storage management, file management and overarching components such as error detection, accounting and device management.

Discuss how operating systems enable processes to share and exchange information.

The Operating system enables the sharing and the exchange of information through memory sharing management and IPC (interprocess communication).  The exchange is "direct or indirect" (Silberschatz, 2014) . Shared memory in Posix and Message Passing in Windows are examples. The sharing of data is very critical for personal computers as it allows the kernel to support multiple users and utilities and applications to build upon other applications data.When computers over the network operate in pairs for a certain application, remote procedure calls or RPCs are often used to excahnge data over the network of from client app to server application installed on the same host.

Explain how main memory and virtual memory can solve memory management issues.

 The sharing of data is very critical for personal computers especially as it allows the kernel to support multiple users and utilities and applications to build upon other applications data. Virtual memory permits the mapping of logical address space to a smaller physical address space facilitating multiprogramming. It frees the programmer from the constraints of memory when developing applications. It permits “the sharing of system libraries and memory”artifacts (Silberschatz, 2014)  such as application data and program variables. Memory management functions solves physical problems with logical solutions, permits faster devlopment speed-to-market and application interoperability.

Explain how files, mass storage, and I/O are handled in a modern computer system.

Files, mass storage and I/O are functions of the operating systems file management component. "File management is one of the most visible components of an operating system." (Silberschatz, 2014) The file management system organizes operating system files and user data files for the computer's design parameters. It determines, to a large extent, the user's intuitive interaction with his data. It provides mass storage for backups for recovery, mirroring for high availability, striping for performance and replication for localized disaster recovery.  It manages I/O through buses such as ISA, EISA, SCSI, iSCSI, etc. It leverages broader platform technologies such as RAID arrays, NAS, SAN and even Cloud storage.

Outline the mechanisms necessary to control the access of programs or users to the resources defined by a computer system.

The Protection and Security components provide the necessary control. The protection system is focused on the internal processes withing an operating system, mainly its kernel. The protection system defines the rules that a user interaction, an application call and a kernel operation interoperate yet remain independent and isolated. 

The security system is mainly concerned with the external environment to the kernal such as applications, users, networks and other external resources such as USB drives. This system seeks to ensure the confidentaility, intergrity and Availability of the computer, its resources and data.

Recommend how you will use these concepts about operating systems theory in future courses and/or future jobs.

The fundamental understanding is the sub-system/function nature of an operating system and the defense-in-depth of the Security management function. Most functions exist across operating system and computer types yet their methodology of providing those services differ based on the design goal or purpose of the computer system, be it a mainframe, PC or IoT device.

By breaking down a computer operating system into core cross-platform components and drawing out the methods of interoperability between the components, such as IPC and shared management, one can troubleshoot the operating system more efficiently.



























Sunday, August 30, 2020

Tech Topic Connection

 

Tech Topic Connection

 

My blog site was to discuss various aspects of mandatory and voluntary practices in IT security and how those two areas interact with each other’s objectives.

            The course work in INT100 set a foundation of understanding of the various disciplines of IT such as computer hardware, networking, and programming. The assignments taught the basic requirements for understanding each discipline in order to help the student dive deeper into each area as the student matriculate through the University’s program.

    The history of computing is at the least evolutionary and often approaches a revolutionary character. Computers progressed from room-sized big iron to ubiquitous mobile computers that fit in one’s pocket through miniaturization. Central Processing Unit computing speed doubled every 2 years under the observation of Moore’s Law (Vahid & Lysecky,2017) . Random Access Memory became cheaper per Megabyte and Hard drives became a commodity product. Networks such as 5G will soon push the theoretical limits of bandwidth.

    Computer Security often relies on vendor products to accomplish the heavy lifting required to meet regulatory and industry standards despite exponential data growth. Yet IT still requires custom programming to create or manipulate application programming interfaces (API). Languages such as Perl and increasingly popular Python help make those unique customizations possible, linking the output of one system into an input of another.

    As a professional accumulates understanding of the computer eco-system typical in a corporate or government environment, the IT professional can better balance the needs of the organization with the security of its computing systems and its data. There is no one-size-fits-all solution. Each solution must be custom made for its intended customer; keeping in mind the obligations and the duties the organization is expected to fulfill. A security practitioner  must consider the various components of the essential security functions.


Click for larger image













(SANS Institute,2020)

From a security perspective the data is most important, and that data resides on databases. "At present, man has become so dependent on web applications that everything done through electronic means like e-banking, e-shopping, online payment of bills etc." (  a. Securing the database is one of the most challenging aspects to IT security as the database is overly sensitive to any policy restriction or capacity degradation.

    Also, the chapters on social networking, privacy and computer security is very relevant as the adoption of the enterprise of mobile platforms and leveraging personal mobile phones for business creates business opportunity while posing new security threats. Mobile application security is less mature than client-server security.

    In summation, each component of a computer system can be hacked;  the firmware of BIOS, "if not properly secured, the Bios Firmware Updater (BFU) allows an attacker to gain control over a system throughout its whole lifetime, including future upgrades."(Morel,et al,2019). The network can be attacked through man-in-the- middle (MiTM) attack (Vahid & Lysecky,2017)and even to the application level and database via a SQL injection attack. "SQL Injection is one of the most popular and dangerous hacking or cracking technique."(Gupta,et al,2019). Each new component added to an IT stack creates multiple vectors of security exposure.

As computer systems become more complex,the vectors that a threat actor may leverage increases substantially. For a security practitioner in Information Technology, the learning opportunities have never been higher.

 

Gupta, H., Mondal, S., Ray, S., Giri, B., Majumdar, R., & Mishra, V. P. (2019). Impact of SQL Injection in Database Security. 2019 International Conference on Computational Intelligence and Knowledge Economy (ICCIKE), Computational Intelligence and Knowledge Economy (ICCIKE), 2019 International Conference On, 296–299. https://doi-org.proxy-library.ashford.edu/10.1109/ICCIKE47802.2019.9004430

Information Security Posters: SANS Institute. (2020, Spring). Retrieved August 31, 2020, from https://www.sans.org/security-resources/posters/

Morel, L., & Courousse, D. (2019). Idols with Feet of Clay: On the Security of Bootloaders and Firmware Updaters for the IoT. 2019 17th IEEE International New Circuits and Systems Conference (NEWCAS), Circuits and Systems Conference (NEWCAS), 2019 17th IEEE International New, 1–4. https://doi-org.proxy-library.ashford.edu/10.1109/NEWCAS44328.2019.8961216

Vahid, F., & Lysecky, S. (2017). Computing technology for all. Retrieved from zybooks.zyante.com/

Network Security

 

The importance of information and system security for individuals and organizations.

Information and system security is important for both individuals and organizations. For organizations, the security of their data and the information derived from it is often the lifeblood of the corporation. To maintain a corporation’s good reputation regarding its peers and its customers, security must be maintained. Additionally. Many corporations face stiff fines, a lower corporate business rating and a potential of loss of a civil suit.

For the individual, information and system security is important as a person’s reputation may be harmed with the public release of personal data. Additionally, financial harm often results from a lack of information and system security. The expenditure of an individual’s time and money to remediate or at least mitigate the security breech is another burden not amply considered.

Two Security Incidents

Security Vulnerabilities are those system vulnerabilities that allow a nefarious actor to breech a company’s fundamental defenses to maintain a business boundary from those entities external to it. The “security holes” become present when a system is poorly installed, configured or maintained. The symptoms of a vulnerability typically do not manifest itself to a user. A tool known as a vulnerability scanner can find and report the existence of a vulnerability. Also email alerts from vendors can help notify the user of the existence of a vulnerability. The damage can range from an aggravation of a user of a single PC to a corporate wide Advanced Persistent Threat (APT) within the entire infrastructure. To defend against this occurrence, corporation and individuals should use a vendor supported version of operating system and software ( Lifecycle management) , patch their system when a new vulnerability is announced ( Patch Management), and scan for vulnerabilities on their systems (Vulnerability Management). “To excel in patch management, organizations cannot just strengthen patch management process only; they are required to consider other IT system management processes as well because patch management relies on them to be efficient.” (Chan,2003)

The second security incident is Computer Viruses. Computer Viruses are programmatic attacks on a computer system. “A computer virus is a program that runs on a user's computer without permission, and spreads itself to other computers, often via email” (Vahid,2020). Computer Virus are a serious threat because humans do use poor judgement in using computer systems. The symptoms of a virus include a system change in behavior, often coinciding with a performance degradation. The damage from a virus is typically the introduction of malware to steal information or make money from the existence of important data such as seen in Ransomware cases. Far less frequently, the virus deletes data or damages the operating system. The most effective defense is to use Anti-Virus software such as Norton or Symantec and keep it updated.  “Organizations must have an antivirus in place, mainly for all those systems that have either an Internet connection or Removable devices (USB, writable DVD drives etc.) enabled. (Hardikar,2008). The second most important is user awareness of poor computing practices through continual training.

Wednesday, August 26, 2020

Computers in the workplace

 I have chosen financial services as my industry of choice.  I have over 25 years’ experience in this vertical. I have seen the migration from a solely mainframe centric environment with 3270 terminals in “glass house” datacenters to today’s high transaction, elastic -on- the- fly systems which are cloud-based. Computer systems were and continue to be critical to the business in this vertical as the speed, and simultaneous instances of monetary transactions were trending in an exponential incline.

 The companies in this space are heavily regulated, and a trading error or an outage could cost the firms millions of dollars in SEC fines and, indeed, lost customers. Company reputation is valued in this industry; thus, the critical work of computer systems and the applications they host continue to be a significant management focus and a recipient of a large amount of funding to maintain a highly- available network. Critical business logic, especially in hedge trading and Quants trading, demands the most powerful computer systems and fastest networks to remain competitive. Progress in Artificial Intelligence will further drive the increase in the rate of change.

https://www.wired.com/2012/08/ff_wallstreet_trading/ (Links to an external site.)

The employees in this industry are continually adapting to the newly introduced technology, and that change works its way even to the departments of the firms supporting the trading floors. Slightly aged technology is ripped out and quickly replaced. The back-office users must learn new ways of working that the change of technology presents to them. Companies at this level of performance do not spend much money on training their users in technology. The company expects that its employees will absorb the changes quickly and adapt appropriately.

The ever-increasing pace of change becomes evident when observed that a system that may have been working for 30 years since the 1960’s were lasting only 10 years in the 80s. Five years in the 90s and currently we keep technologies, vendors, procedures, and business processes at the most three years. I have had numerous systems that I have installed, configured, and deployed that did not make its third “birthday.” I am implementing an IT system this month that has already had its replacement system purchased! It will be my next project. In house applications, while the names sometimes have stayed the same, are updated even in their programming language.

The future will be exciting. With the layers of complexity caused by the virtualization of applications ( clustering), hardware (VMWare) and whole infrastructures (cloud), and even containerization of code, I expect, along with many of my peers, to see a sudden massive outage. The flexibility afforded by layers of virtualization will suddenly become a critical flaw due to its complexity.

As an analogy, the United States required many respirators and masks during the pandemic outbreak and discovered to late that it no longer had the control of manufacturing and inventory that outsourcing removed over the decades. Similarly,  I predict that a future wide-scale cloud outage will bring another paradigm shift. The shift will occur when corporate executives realize they do not own or adequately control the computing systems they have relied on. Worse yet, they will recognize that the all-important corporate data is in someone else’s effective control. The paper contract’s Service Level Agreements (SLA) with their vendors will mean little at that point.

Consider, if Amazon AWS Cloud Service experiences a wide-scale outage ( and they have come close a few times already), can a mid-size company expect fast dedicated remediation for their business systems? Especially when there is a Goldman Sachs, Boeing, General Motors, General Electric demanding for the same resources and commitment of time? How will these substantial conglomerates fair against the demands of even more politically powerful DoD or the EU governments? Small businesses will be devastated as they are last in line for dedicated remediation efforts. When this global scale outage occurs, a solid, well-rounded IT professional will be in extremely high demand.

Traveling Through a Network

 

"Give me a ping, Vasily. One ping only, please."

The Ping and tracert commands are commonly used in troubleshooting issues in a corporate environment as well as a home.  Telnet is another utility to see if a port is available on a host.

Considering the various outputs, the results are within expected timeframes. Using ping against a corporate website answered the ICMP packet within a reasonable time frame given its location in the United States. The Australian commercial site was also as expected given the vast expanse of miles that the packets had to traverse.

Since I know the location of the Australian entity is 22 times the distance of the US entity from my location, we would expect that the average round trip would be at least 22 times greater to get to the Australian- based business. Thus 55ms times 22 = 1210 ms. Yet the actual average time to Australia is only 259 ms.

One of the reasons is that the ping to the corporate site in America is front-ended by a WAP device, which adds a bit of latency, yet the trip to Australia was surprisingly good. Also, the tracert exercise to Australia had some dropped packets around the Vocus network, which is run by Vocus Communications,  an international telecommunications company headquartered in North Sydney, Australia.

What accounts for the relatively quick speed to Australia?  It is likely the transition of the packets over a  high-speed fiber-optic network linking Australia to the States. What then accounts for the relative slowness of the US-based link? The path from Philadelphia to Chicago to Virginia – which means the packet travels far more miles to get to the destination then I would go by car. Why did not the internet routers not pick a shorter route? Because the company utilizes a Web Application Proxy (WAP) that is hosted in Chicago while the website “behind it” is in Virginia. In other words, the Internet routers did pick the shortest route because the routers were told to take a detour to Chicago and then go to Virginia - by the company that created the website.