Skip to content

Commit

Permalink
Add Content to Networks and change build pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinmohanme committed Mar 3, 2019
1 parent 750e05e commit 4c4b8f7
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CSE/S6/CD_CS304.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Alongside conversion it also reports any errors that occur during the transalati
## Phases of a Compiler
The compiler converts the program while going through different phases of transformations. See +@fig:compilerphases

![Phases of Compiler](CSE/S6/assets/cs304_compilerphases.png){#fig:compilerphases}
![Phases of Compiler](assets/cs304_compilerphases.png){#fig:compilerphases}

## Lexical Analysis
### The role of Lexical Analyzer
Expand Down
40 changes: 39 additions & 1 deletion CSE/S6/CN_CS306.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,46 @@ Classification of networks based on scale and distance
| 10,000 Km | Planet | Internet |

### Personal Area Network (PAN)
PAN are mainly set up for single person use.
PAN are mainly set up for single person use. It consititues of basic devices interacting with a master device.

* Uses master slave paradigm
* PC acts as the master connecting the keyboard, mouse as slaves.

![Master Slave Diagram](assets/cs306_panconnection.png){#fig:panconnection width=50%}

### LAN
Local Area Networks provide network access within closed areas such as single buildings. They are used to connect local workstations in company offices and factories to interconnect local devices and to exchange information.

LAN's are distinguished from other kinds of networks by three characteristics

1. Size
2. Transmission Technology
3. Topology

LAN's are restricted in size to single buildings. They are also called enterprise network.

Here the network may be arranged in any one of the following topologies.

**Bus Topology** : Every machine is connected to all other machines through a single bus line. Only a single machine can transmit at a time. When one machine is transmitting all other machines should only be listening.

![Bus Topology](assets/cs306_bustopology.png){#fig:bustopology width=50%}

**Ring Topology** : A ring network is a network topology in which each node connects to exactly two other nodes, forming a single continuous pathway for signals through each node - a ring. Data travels from node to node, with each node along the way handling every packet.

![Ring Topology](assets/cs306_ringtopology.png){#fig:bustopology width=50%}

### MAN
A metropolitan area network (MAN) is a computer network that interconnects users with computer resources in a geographic area or region larger than that covered by even a large local area network (LAN) but smaller than the area covered by a wide area network (WAN).

![MAN Network](assets/cs306_mannetwork.png){#fig:mannetwork width=30%}

It has a range of 5 to 50 kilometres.

### WAN
A wide area network (WAN) is a network that exists over a large-scale geographical area. A WAN connects different smaller networks, including local area networks (LANs) and metro area networks (MANs). This ensures that computers and users in one location can communicate with computers and users in other locations.

### Internetwork
Collection of Interconnected networks is called an Internetwork or Internet.

Gateways are machines that make connections between two or more networks, and provide neccesary transalation both in terms of hardware and software.

Binary file added CSE/S6/assets/cs306_bustopology.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CSE/S6/assets/cs306_mannetwork.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions CSE/S6/assets/cs306_panconnection.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
digraph compilerphases {
PC -> Mouse;
PC -> Keyboard;
PC -> Speakers;
}
Binary file added CSE/S6/assets/cs306_panconnection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CSE/S6/assets/cs306_ringtopology.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 17 additions & 10 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#
# Rake build file for building PDF books from markdown files
# Running rake
# * Builds png from dot files
# * Builds pdf from md files
# * Copies the pdf files to the BOOKS folder with same structure

require 'rake/clean'

Expand All @@ -16,16 +20,19 @@ directory "BOOKS"

rule ".pdf" => [->(f){source_for_pdf(f)}, "BOOKS"] do |t|
mkdir_p t.name.pathmap("%d")
sh 'pandoc ' \
'--variable fontsize=12pt ' \
'--variable date:"\today" ' \
'--variable geometry:a4paper ' \
'--variable documentclass:book ' \
'--table-of-contents ' \
'--number-sections ' \
'--filter pandoc-fignos ' \
"-f markdown #{t.source} " \
"-o #{t.name}"
Dir.chdir(t.source.pathmap("%d")) do
sh 'pandoc ' \
'--variable fontsize=12pt ' \
'--variable date:"\today" ' \
'--variable geometry:a4paper ' \
'--variable documentclass:book ' \
'--table-of-contents ' \
'--number-sections ' \
'--filter pandoc-fignos ' \
"-f markdown #{t.source.pathmap('%f')} " \
"-o #{t.name.pathmap('%f')}"
end
FileUtils.mv(t.source.ext('.pdf'),t.name)
end
CLOBBER.include('BOOKS')

Expand Down

0 comments on commit 4c4b8f7

Please sign in to comment.