How to use your findings in these two cases for encrypting e-messages?
Last digit of the number 25975927[mod(10)]?
It’s enough to consider the last digit of a simpler number 75927;
Do your experiments (see Table)!
“LAST” can be 7, 9, 3, or 1 only; therefore, it is a cycle of four cases;
The power, 5927 can be represented as 5927 = 4*1481+3;
Therefore, “LAST” of 75927 is the same as the “LAST” of 73, which is “3”.
Last digit of the number 253[mod(10)]?
“LAST” digit can be 2, 4, 8, or 6 only; therefore, it is a cycle of four cases;
The power, 53 can be represented as 53 = 4*13+1;
The “LAST” of 253 is the same as the “LAST” of 21, which is “2”.
Therefore, following this algorithm, the last digit of the number 253 must be 2;
Try MS Excel™Spreadsheet (see Table)!
Why the last digit of the number 253 is 0 there?
HINT: Consider the number of “valuable” digits in large natural numbers calculated with MS Excel™!
Homework Assignments (example 1)
Using Manchester Encoding Format, encode a bit-stream that represents two first letters of your last name previously written in the ASCII (7-bit) Coding Standard. Using MS Word, plot a diagram that illustrates your Manchester code.
Homework Assignments (example 2)
Plot a diagram that illustrates a virtual private connection from your home computer to the Rivier College Network. Briefly describe issues that should be resolved for establishing this connection.
Homework Assignments (example 3)
A LAN has a data rate of r=4 Mbps and a propagation delay between two stations at opposite ends of d=20 ìs. For what range of PDU sizes (S, measured in bits) does the stop-and-wait flow control give an efficiency of at least 50%, E > 0.5? (neglect the transmission time for the ACK signal). The efficiency, E is defined as a ratio of the PDU transmission time (time for inserting the PDU onto the medium) to the total time the medium is occupied for this one PDU.
(HP, GTE, AT&T, Alcatel, GIG, Boeing, NASA, etc.) since 1977;
provides Code Coverage Capacity.
Author’s Experience with McCabe IQ Tools since 1998
leaded three projects in networking industry that required Code Analysis, Code Coverage, and Test Coverage;
completed BCN Code Analysis with McCabe Tools;
completed BSNCode Analysis with McCabe Tools;
studied BSN-OSPF Code Coverage & Test Coverage;
included these topics into Software Engineering and Networking classes since 1999.
McCabe’s Structured Testing Methodology Basics
The key requirement of structured testing is that all decision outcomes must be exercised independently during testing.
The number of tests required for a software module is equal to the cyclomatic complexityof that module.
The software complexity is measured by metrics:
cyclomatic complexity, v
essential complexity, ev
module design complexity, iv
system design, S0, and system integration complexity, S1,
Halstead metrics, and 52 metrics more.
The testing methodology allows to identify unreliable-and- unmaintainable code, predict number of code errors and maintenance efforts, develop strategies for unit/module testing, integration testing, and test/code coverage.
Basics: Analyzing a Module
For each module (a function or subroutine with a single entry point and a single exit point), an annotated source listing and flowgraph is generated.
Flowgraph is an architectural diagram of a software module’s logic.
This system has been designed to support carrier networks. It provides both services of conventional Layer 2 switches and the routing and control services of Layer 3 devices.
Nine protocol-based subtrees of the code (3400 modules written in the C programming language for BGP, DVMRP, Frame Relay, ISIS, IP, MOSPF, OSPF2, PIM, and PPP protocols) were analyzed.
Project-B Protocol-Based Code Analysis
Unreliable modules: 38% of the code modules have the Cyclomatic Complexity more than 10 (including 592 functions with v > 20);
Only two code parts (FR,ISIS) are reliable;
BGP and PIM have the worst characteristics (49% of the code modules have v > 10);
1147 modules (34%) are unreliable and unmaintainable with v > 10 and ev > 4;
BGP, DVMRP, and MOSPF are the most unreliable and unmaintainable (42% modules);
The Project-B was cancelled.
Project-B Code Protocol-Based Analysis (continue)
1066 functions (31%) have the Module Design Complexity more than 5. The System Integration Complexity is 16026, which is a top estimation of the number of integration tests;
Only FR, ISIS, IP, and PPP modules require 4 integration tests per module. BGP, MOSPF, and PIM have the worst characteristics (42% of the code modules require more than 7 integration tests per module);
B-188.8.131.52int18 Release potentially contains 2920 errors estimated by the Halstead approach. FR, ISIS, and IP have relatively low (significantly less than average level of 0.86 error per module) B-error metrics. For BGP, DVMRP, MOSPF, and PIM, the error level is the highest one (more than one error per module).
Comparing Project-B Core Code Releases
NEW B-1.3 Release (262 modules) vs. OLD B-1.2 Release (271 modules);
16 modules were deleted (7 with v >10);
7 new modules were added (all with v < 10, ev = 1);
Sixty percent of changes have been made in the code modules with the parameters of the Cyclomatic Complexity metric more than 20.
63 modules are still unreliable and unmainaitable;