diff --git a/CSE/S6/CD_CS304.md b/CSE/S6/CD_CS304.md index 6a130d2..c4ef571 100644 --- a/CSE/S6/CD_CS304.md +++ b/CSE/S6/CD_CS304.md @@ -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 diff --git a/CSE/S6/CN_CS306.md b/CSE/S6/CN_CS306.md index f56fca3..c824ad9 100644 --- a/CSE/S6/CN_CS306.md +++ b/CSE/S6/CN_CS306.md @@ -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. + diff --git a/CSE/S6/assets/cs306_bustopology.png b/CSE/S6/assets/cs306_bustopology.png new file mode 100644 index 0000000..97eec7f Binary files /dev/null and b/CSE/S6/assets/cs306_bustopology.png differ diff --git a/CSE/S6/assets/cs306_mannetwork.png b/CSE/S6/assets/cs306_mannetwork.png new file mode 100644 index 0000000..3e6362c Binary files /dev/null and b/CSE/S6/assets/cs306_mannetwork.png differ diff --git a/CSE/S6/assets/cs306_panconnection.dot b/CSE/S6/assets/cs306_panconnection.dot new file mode 100644 index 0000000..e2c4627 --- /dev/null +++ b/CSE/S6/assets/cs306_panconnection.dot @@ -0,0 +1,5 @@ +digraph compilerphases { + PC -> Mouse; + PC -> Keyboard; + PC -> Speakers; +} diff --git a/CSE/S6/assets/cs306_panconnection.png b/CSE/S6/assets/cs306_panconnection.png new file mode 100644 index 0000000..fdeb69f Binary files /dev/null and b/CSE/S6/assets/cs306_panconnection.png differ diff --git a/CSE/S6/assets/cs306_ringtopology.png b/CSE/S6/assets/cs306_ringtopology.png new file mode 100644 index 0000000..e883774 Binary files /dev/null and b/CSE/S6/assets/cs306_ringtopology.png differ diff --git a/Rakefile b/Rakefile index 11106f3..f765320 100644 --- a/Rakefile +++ b/Rakefile @@ -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' @@ -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')