Nt1310 Unit 5 Lab Assignment

Improved Essays
CPSC 558 — Adv Networking — Lab Assignment – Simple Data Link
A1: Simple Data Link
Introduction
Build one data line between two nodes, that can send and receive a text string of ‘1’s and ‘0’s. We transmit the string "10010" in one direction and reply with the string "01101".
Implementation Language: C++ (or C) Implementation Structure
A Link class that has several fcns (methods).
1. A name() fcn, which returns the Link object's name string (eg, assigned during object construction).
2. An attach() fcn, which takes and a Node pointer and installs that pointer as a member of the link, and returns an ID int for that node pointer. A link can hold up to constant KNODES_SIZE such node pointers. If there is no more room, then do nothing and return -1. For
…show more content…
A name() fcn, which returns the Node object's name string (eg, assigned during object construction).
2. An attach() fcn, which takes and a Link pointer and installs that pointer as connected to the node, and returns an ID int for that link pointer. A node can hold up to constant KLINKS_SIZE such link pointers. If there is no more room, then do nothing and return -1. For LLA1, that size should be 1. ID ints should be assigned starting from 0, counting upward.
3. A contents() fcn, which outputs each currently attached link pointer value in hex, prefaced by its ID. Eg, “0: L”.
4. rcv() fcn, which will store the passed string argument internally. The fcn will also output the string (message) prefaced by "Node rcvd: ", where is the node object's name. Eg, “ Node B rcvd: 10010”.
5. An snd() fcn, which takes a binary text string and an ID int (for a link pointer), and passes that string to the xmt() fcn of the link object. If it turns out that there is no attached link for that ID, then also output an error message. The fcn will also output the string (message) prefaced by
"Node sent: ", where is the node object's name.
C. Siska February 18, 2016 Page 1 of 2
CPSC 558 — Adv Networking — Lab Assignment – Simple Data

Related Documents

  • Improved Essays

    Nt1310 Unit 5 Lab Report

    • 1339 Words
    • 6 Pages

    The "SIGEX Rx_x.exe" Main VI was launched. 11. The number corresponding to the NI ELVIS was entered. 12.…

    • 1339 Words
    • 6 Pages
    Improved Essays
  • Decent Essays

    Nt1310 Unit 2 Lab Report

    • 214 Words
    • 1 Pages

    On the way from solar cell to the solar module, the output efficiency decreases. For example when a multi-crystalline PV solar cells of 17.8% efficiency is used, the resulting efficiency of a module is around 15.9 to 16.3%. This decrease in efficiency is mainly because of three distinct losses listed below. 1. Optical losses generated by material reflectance and absorption 2.…

    • 214 Words
    • 1 Pages
    Decent Essays
  • Improved Essays

    Nt1310 Unit 4 Lab Report

    • 435 Words
    • 2 Pages

    b. When measuring the resistance value with the Avo 8, possible reasons for varience include a parallax error (not looking at the reading from directly above the meter), a reading error due to less divisions when measuring resistance, or the device not being properly zeroed. When measuring current, there are also fewer division, parallax is still a potential issue, and finally, incorrect zeroing of the meter. Voltage has an additional error, the loading of the meter itself. Alongside this issue, there is also parallax, zero, and accuracy/divisions.…

    • 435 Words
    • 2 Pages
    Improved Essays
  • Improved Essays

    My first research experience started when I participated in bone scaffold designing project at the Cooper Union in Spring 2012, under the supervision of professor David Wootton at Cooper Union Department of Mechanical Engineering. The purpose of this study was to design and manufacture bone scaffold for orthopedic trauma, especially for segmented bone fracture. I worked with a senior mechanical engineering student who had been conducting the research as his senior capstone project. The first task was to test manufacturing efficiency of two different types of polycaprolactone (PCL) with different average molecular weight. I concluded that the low molecular weight PCL is more convenient for mold-casting fabrication, due to low viscosity, while the high molecular weight PCL has an advantage of being mechanically stronger than the brittle…

    • 824 Words
    • 4 Pages
    Improved Essays
  • Decent Essays

    Nt1330 Unit 5 Test Paper

    • 597 Words
    • 3 Pages

    Student Name: Caroline machinjili THIRD YEAR DEGREE IN COMPUTING AT CCT DUBLIN SUBJECT: ADVANCED SWITHCING AND ROUTING PORTFAST AND ETHERCHANNEL October 2015 PORTFAST in my network I have setup portfast on all the 18 access switches connected to the workstations and also on the core switches connected to the servers. on both switches I have used ports fa0/1 to fa0/2. portfast on these ports will reduce the time the devices spend to connect to other devices on the network since these ports will not go through the spanning tree process of blocking, listening , learning and then forwarding which cause a delay of about 45 -50 seconds instead the ports will go straight to forwarding stage there by speeding up communication between devices in a network. for example in a company that have servers which provide services to clients. I have observed this process in my network and I will strongly recommend for the use of portfast.…

    • 597 Words
    • 3 Pages
    Decent Essays
  • Improved Essays

    I chose to change the inclination to a 75-degree angle for the third lab assignment. If I were a bird researcher studying a population of birds and the earth began to shift to a 75-degree inclination, the biggest change would be a rise in temperature at the latitude marked with the white “X”. At the original 35-degree inclination, the average temps for early spring are mild and as the months continue into summer; the average daily temperatures do not go above what is described as mild and a half. If a gradual shift began towards a 75-degree inclination, you would begin to see a rise in the temperatures for this region. In the early spring, you might still find mild temperatures but as the spring progresses into summer, the temperatures…

    • 389 Words
    • 2 Pages
    Improved Essays
  • Decent Essays

    Fire wire is another type of connection. Is tremendously fast that’s why it is mostly used to transfer video files. Ports: USB, Parallel, Serial USB Port – In a single port in can support up to 127 devices. It has a maximum cable run of 5m. Cables Optical Cable – The cable is used to send digital audio signals between devices, with a rapid connection.…

    • 751 Words
    • 4 Pages
    Decent Essays
  • Decent Essays

    Kerberos authentication protocol that establishes a trusted connection between hosts in the untrusted network. The key function of this protocol is that it allows a single sign-on in a distributed network. It's best features lays in the fact that the password does not get shared over the network between nodes. In addition, it uses KDC - key distribution center which keeps the access maintained.…

    • 442 Words
    • 2 Pages
    Decent Essays
  • Improved Essays

    Figure 3 demonstrates the 3 layers that make up the SDN structure. Lowest layer represents the Infrastructure Layer or Forwarding Plane, mainly focusing on data forwarding but it also takes care of monitoring local information and gathering statistics. Next layer represents the Control Layer or Control Plane which is responsible for programming and managing the Forwarding Plane. Control Plane makes use of the information gathered by the Forwarding Plane in order to define the route and operation of the network.…

    • 640 Words
    • 3 Pages
    Improved Essays
  • Decent Essays

    Nt1310 Unit 1 Lab Report

    • 372 Words
    • 2 Pages

    Name ____________________________________ Lab-Getting Trendy Pre-Lab 1. Which property uniquely identifies a chemical element? (hint: the element’s “social security number”) ______________________ 2. Describe the general characteristics of metals, nonmetals, and metalloids. ______________________________________________________________________________________________________________________________________________________ 3.…

    • 372 Words
    • 2 Pages
    Decent Essays
  • Decent Essays

    1. Why is it a good idea to keep personal information confidential? I think it is important because when you keep it confidential you won’t get your identity stolen. 2. Summarize the components of a strong password?…

    • 74 Words
    • 1 Pages
    Decent Essays
  • Improved Essays

    Nt1310 Unit 6 Essay

    • 565 Words
    • 3 Pages

    This specifies the general interface between the network layer (IP etc.) and the Data Link layer (Ethernet, Token Ring etc.) It’s the standard for the upper Data Link layer sublayer, also known as the Logical Link Control layer. It’s responsible for flow and error control. The Data Link layer wants to send some data over the network, 802.2 LLC helps make this possible. b. 802.3 – Ethernet 802.3 is the standard which Ethernet operates by.…

    • 565 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    In this task I will be using a diagram to outline the relationship between the layers in an interface showing each other of the points in the corresponding layer in the TCP/IP protocol suite. I will also be describing the type and functions of entities and the service they provide. A) The way communications are done between a computers on a network is through protocol suits. The most used protocol suite and commonly available protocol suite is TCP/IP protocol suite.…

    • 505 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Nt1310 Unit 3 Assignment

    • 867 Words
    • 4 Pages

    The web pages, the content and the web servers, this is the technology that helps the World Wide Web and helps store and manage the internet and the web content. D1: Role of TCP/IP protocol, linking with Application Layer protocol: TCP/IP stands for (Transmission Control Protocol/Internet Protocol); this is part of the Internet Protocol Suite. The role of TCP/IP is to make sure the data that it is receiving is been delivered to the right address, they are a combination of instructions that outline packages of information sent to the user. The TCP/IP contains different protocols HTTP , FTP , SMTP , DNS , RIP and SNMP .…

    • 867 Words
    • 4 Pages
    Improved Essays
  • Great Essays

    Nt1330 Unit 3 Quiz

    • 1731 Words
    • 7 Pages

    Please note that, we only discuss couple of options for each command to get the familiarity, and get you going with your learning. At the end of each command, there is a link to the command reference, where we discuss the most relevant and practical usages of the commands. It not practical to discuss all the options available for each command we discuss. We recommend you to refer to the man page of the command on your Linux system. Listing Files…

    • 1731 Words
    • 7 Pages
    Great Essays