Assignment 1
Assignment 1
THE UNIVERSITY OF THE WEST INDIES, WESTERN JAMAICA CAMPUS DEPARTMENT OF MANAGEMENT STUDIES
COMP 3150 Computer Networking and Communications Assignment 1
1. Differentiate between routed and routing protocols and give examples of each Routing protocols distribute routing information throughout all routers on a network. By knowing about all other routers connected to the network, each router can determine the best path to use to deliver your traffic. Examples of routing protocol would be Open shortest path first (OSPF), Routing Information Protocol (RIP), Enhanced Interior Gateway Routing Protocol (EIGRP) or Border Gateway Protocol (BGP) while a routed protocol can be routed by a router, which means that it can be forwarded from one router to another. It contains the data elements required for a packet to be sent outside of its host networks or network segment. Examples of routed protocols would be Internet Protocol (IP) and Internetwork Packet Exchange (IPX)
2. Routing protocols can be divided into two categories, Distance Vector and Link State.
a.
protocols In a Distance vector routing protocol, such as RIP or EIGRP, each router sends its routing table to neighboring routers. The routers don't know the topology, that is, how other routers are interconnected. In a link state routing protocol, such as OSPF or IS-IS, routers first exchange information about connections within the network (or an area of the network), and build a topology table. Then each router uses algorithm to calculate the best route to each destination. With distance vector routing, each node has information only about the next hop. So for example Node A : to reach F go to B Node B: to reach F go to D
Distance Vector routing makes poor decisions if directions are not completely correct. If parts of the directions are incorrect, the routing may be incorrect until the routing algorithm has re0converged.
In link state routing, each node has a complete map of the topology. So if a node fails each node can calculate the new route. Only difficult in link state routing is that all nodes need to have a consistent view of network.
B) List
Distance-vector routing protocols include routing information Protocol (RIPv1 &RIPv2) and Interior Gateway Routing Protocol (IGRP). Link-state routing protocols include Open Shortest Path First (OSPF) and Intermediate System To Intermediate System IS-IS. 3. For each of the following application-layer protocols, identify the function of the protocols (in terms of what application uses it and what the protocol does) and the port numbers used by the protocols. a. DNS Domain Name system is used to resolve Internet name to IP address. TCP/UDP port 53 b. HTTP- Hypertext Transfer Protocol is used for transfer files that make up the web pages of the World Wide Web. TCP port 80 c. SMTP- Simple Mail Transfer Protocol is used for the transfer of mail messages and attachments. d. POP- Post Office Protocol - is what enables your email program to fetch new mail UDP Port 110 e. FTP File Transfer Protocol is used for interactive file transfer between systems. - TCP ports 20 and 21
f. Telnet- a terminal emulation protocol that is used to provide remote access to servers and networking devices. TCP port 23 g. DHCP - Dynamic Host Configuration Protocol - allows network devices to automatically obtain a valid IP address from a server h. SMB- Server Message Block - used for providing shared access to files, printers, serial ports, and miscellaneous communications between nodes on a network. TCP port 445
4. An ISP is granted a class B block at address 130.192.0.0. The ISP wants to allocate equal size ranges of addresses to 64 companies. Answer the following questions: a. What would be the subnet mask for each company? 255.255.252.0 b. How many hosts can each company have? 1022 host c. Write down the first five (5) subnets with their host range and broadcast address. 130.192.0.1 130.192.3.254 host range. 130.192.3.255 broadcast address.