




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























COURSE TITLE: Computer Communication System NUMBER OF Units: 3 Units Course Duration: Two Hours lecture, One Hour practical COURSE DETAILS: Course Lecturer: Dr. O. Folorunso B.Sc. (Abeokuta), M.Sc. (Lagos), PhD (Abeokuta), MNCS, MCPN Email: [email protected] Office Location: Room B201, COLNAS Building Consultation hours: 12-2pm, Wednesdays & Fridays Lecture Note developed by: The Department of Computer Science, University of Agriculture, Abeokuta Head of Department: DR. A.F. ADEKOYA Course Content : Information and encoding, basic concepts of interactive computing, interactive terminal devices, protocol, direct links, communication channels, telecommunication links, simplex, Duplex, and half-duplex, multiplexer, concentrator, computer networks, operating systems for online processing, scheduling algorithm, response time, reliability and security. Course Description : The course is designed to describe the fundamental concepts of computer communication system, data communication, basic issues in computer networking, examining its nuts and bolts, communication channels, protocols, topologies, principles of congestion control, security in computer networks and the internet. Course Justification: Any serious study of computer communication requires an examination of some related topics. Today’s internet is arguably the largest engineered system ever created by mankind, with hundreds of millions of connected computers, communication links, and switches, hundreds of millions of users who connect intermittently via cell phones and PDAs; and devices such as sensors, webcams, game consoles, picture frames and even washing machines being connected to the internet. Given that the internet is so large and has so many diverse components and uses, is there any hope to understand how it (and more generally computer networks) works? Are there guiding principles and structure that can provide a foundation of understanding such an amazingly large and complex system? The answer to all these questions is a resounding yes! The lecture note will provide you with a modern introduction to the dynamic field of computer communication system, with emphasis on computer networking and its management, giving you the principles and practical insights you will need to understand.
Course Objectives: The general objective of the course as an integral part of the Bachelor Degree for Computer Science Students in University of Agriculture, Abeokuta, is to:
The most common connection used to connect DTE to DCE is an EIA-232 interface. This interface is also called a recommended standard 232 (RS-232) which is approved as the CCITT standard V.24. The EIA-232 interface cable comes in a 25-conductor and 9-conductor cable. The 25-conductor cable uses a DB-25 connector attached to each end of the cable and the 9-conductor cable uses DB-9 connectors. A cable for connecting data terminal equipment (DTE) to data communication equipment (DCE) will have a female connector on one end and a male connector on the other end. SERIAL AND PARALLEL TRANSMISSION OF DATA. Data can be transmitted one bit or several bits at a time. When data is transmitted one bit at a time, it is transmitted over one wire, where each bit is transmitted one after the other onto the same wire the type of transmission is termed Serial Transmission. Parallel transmission is the type of transmission where data is transmitted several bits at time; each bit is transmitted over its own wire. The bits are transmitted over wires that are parallel. The most common form of parallel transmission is to transmit 8 bits at one time. Example includes the seven level ASCII coding with an eighth bit used as a parity bit to check the validity of the code. By transmitting 8bits at once we can transmit a character at a time instead of a bit at a time. Most printers connected to a personal computer are parallel printers transferring 8 data bits at a time. It is apparent that parallel transmission is much faster than serial transmission, but serial transmission is most often used in data communication because only one circuit is needed for the transmission of data. Parallel data transmission is used when the transmission distance is less than 25ft. ASYNCHRONOUS AND SYNCHRONOUS TRANSMISSION. Asynchronous transmission also called start and stop transmission. The transmitting device sends a start bit prior to each character and sends a stop bit after each character. The receiving device will synchronize from the received start bits. Thus, synchronization occurs at the beginning of each character. Data is sent between two devices as a serial bit stream. In asynchronous transmission each character has it own synchronizing information. The start bit is a bit whose value is 0 and is refers to as space and a stop bit with value 1 refers to as Mark bit. Synchronous transmission involves the transmission of data as blocks of bytes. Synchronization of the receiver occurs from a special bit pattern called a sync signal placed in front of the block of data information. A typical block contains 128, 256, 512, or 1024 characters. A header is placed in front of the data sent and a trailer is placed after the data. The header will contain the destination address of the message, a synchronization signal and control information. The trailer contains parity checking information and the address of the sender. The header usually contains about 32bits and the header 8 to 16 bits. Synchronous data transmission is obviously faster than asynchronous transmission because fewer bits are needed to send the same data. ERROR DETECTION AND CORRECTION ASYNCHRONOUS TRANSMISSION ERROR CHECKING The simplest error checking method is parity checking. This technique is used for asynchronous transmission. ASCII uses 7 bits for coding and does not use the 8th^ bit
allowing the use of the 8th^ bit for parity checking. There are five types of parity namely: odd, even, mark, space, and no parity. In odd parity each character has an odd number of 1s, for odd a 0 is placed in the 8th^ bit position. An even parity is the error checking protocol ensures each transmitted byte has an even number of 1s. SYNCHRONOUS TRANSMISSION ERROR DETECTION AND CORRECTION The use of synchronous transmission between the two modems allows the use of sophisticated error detection and control techniques. Modems use a synchronous error detection technique called cyclic redundancy checking (CRC). There are two types of CRC; CRC-16 and CRC-32. The block of data is divided by a 17 - bit divisor for CRC-16 or a 33-bit divisor for CRC-32. The CRC calculation is done at the transmitting modem and the remainder is placed in the trailer behind the block of data and trailer behind the block of data transmitted. The receiving modem receives the block of data and trailer. It then calculates a remainder using the same CRC protocol used by the transmitting modem, comparing it with the sent remainder. Error conditions are handled by requesting that the originating modem retransmit the data. This technique is called Automatic Retransmission Request (ARQ). There are two types of error correction namely; Discrete ARQ also called stop and wait ARQ, an error control protocol that requires an acknowledgement from the receiver after each block of data sent. The transmitting modems sends a block of data and then waits for an acknowledgement before sending the next block of data. Continuous ARQ also known as sliding window ARQ, continuous ARQ eliminates the need for a transmitting device to wait for acknowledgement after each block of data. The device continuously returns positive acknowledgement to the transmitter until otherwise. FLOW CONTROL Controlling the flow of data from one device to another is usually via hardware flow control; Request to send and clear to send (RTS/CTS) or by software flow control (XON/XOFF). A modem contains a memory buffer to allow it to compress data before transmitting and to allow it to convert asynchronous data to synchronous data. It must be able to stop the transmitting personal computer when this memory buffer approaches a near full condition some modems contain a very large memory buffer, which negates the need for flow control BAUD RATE Baud rate is defined as the number of times a signal changes. Baud rate is one of the components determining the physical line speed of a modem. The other component is the number of bits represented by one signal change. For example if the amplitude of a signal changes 2400 times a second the signal changes states 2400 times per second or at 2400 baud.
communicate with. This is why the Ethernet frame contains MAC addresses. If a higher level protocol is being used on a LAN such as TCP/IP, higher level network addresses will be used by applications that wish to converse across the LAN or across networks. The higher level addresses must be resolved to hardware addresses when the two devices reside on the sane network. WEEK 3: Communication channels, examples of communication channels, Types of communication channels, Transmission Directions: Simplex, Duplex, Half Duplex. OBJECTIVE: The objective of the week lecture is for the student to be able to understand Communication channels, examples of communication channels, Types of communication channels. LECTURE NOTE: COMMUNICATION CHANNEL In telecommunications and computer networking, a communication channel, or channel, refers either to a physical transmission medium such as a wire, or to a logical connection over a multiplexed medium such as a radio channel. A channel is used to convey an information signal, for example a digital bit stream, from one or several senders (or transmitters) to one or several receivers. A channel has a certain capacity for transmitting information, often measured by its bandwidth in Hz or its data rate in bits per second. EXAMPLES OF COMMUNICTION CHANNELS A channel can take many forms. Examples of communications channels include:
When signals are free to travel in both directions over a medium simultaneously, the transmission is considered full-duplex. Full-duplex may also be called bidirectional transmission or, sometimes, simply duplex. When you call a friend on the telephone, your connection is an example of a full-duplex transmission, because your voice signals can be transmitted to your friend at the same time your friend’s voice signals are transmitted in the opposite direction to you. In other words, both of you can talk and hear each other simultaneously WEEK 4: Protocols. OBJECTIVE: To understand the fundamentals of network protocols, the different types of protocols and IP addressing. LECTURE NOTE: PROTOCOLS A protocol is a rule that governs how networks communicate. Protocols define the standards for communication between network devices. Without protocols, devices could not interpret the signals sent by other devices, and data would go nowhere. Protocols vary according to their purpose, speed, transmission efficiency, utilization of resources, and ease of setup, compatibility, and ability to travel between different LANs. In choosing protocols, it is important to consider these characteristics, plus network interconnection and data security requirements. Networks running more than one protocol are called Multiprotocol networks. TRANSMISSION CONTROL PROTOCOL/INTERNET PROTOCOL (TCP/IP) TCP/IP is not simply one protocol, but rather a suite of specialized protocols— including TCP, IP, UDP, ARP, and many others—called sub protocols. Most network administrators refer to the entire group as “TCP/IP,” or sometimes simply “IP.” TCP/IP’s roots lie with the U.S. Department of Defence, which developed TCP/IP for its Advanced Research Projects Agency network (Arpanet, the precursor to today’s Internet) in the late 1960s.TCP/IP has grown extremely popular thanks to its low cost, its ability to communicate between a multitude of dissimilar platforms, and its open nature. “Open” means that a software developer, for example, can use and modify TCP/IP’s core protocols freely. TCP/IP is a de facto standard on the Internet and has become the protocol of choice on LANs and WANs. TCP/IP would not have become so popular if it weren’t routable. Protocols that can span more than one LAN (or LAN
segment) are routable, because they carry Network layer addressing information that can be interpreted by a router. It popularity is also due to its flexibility; it can run on virtually any combination of network operating system or network media. TRANSMISSION CONTROL PROTOCOL (TCP) TCP (Transmission Control Protocol) operates in the Transport layer of the OSI Model and provides reliable data delivery services. TCP is a connection-oriented sub protocol, which means that a connection must be established between communicating nodes before this protocol will transmit data. TCP further ensures reliable data delivery through sequencing and checksums. Without such measures, data would be transmitted indiscriminately, without checking whether the destination node was offline, for example, or whether the data became corrupt during transmission. Finally, TCP provides flow control to ensure that a node is not flooded with data. TCP has 10 header fields. USER DATAGRAM PROTOCOL (UDP) UDP (User Datagram Protocol), like TCP, belongs to the Transport layer of the OSI Model. Unlike TCP, however, UDP is a connectionless transport service. In other words, UDP offers no assurance that packets will be received in the correct sequence. In fact, this protocol does not guarantee that the packets will be received at all. Furthermore, it provides no error checking or sequencing. Nevertheless, UDP’s lack of sophistication makes it more efficient than TCP. It can be useful in situations where a great volume of data must be transferred quickly, such as live audio or video transmissions over the Internet. In these cases, TCP—with its acknowledgments, checksums, and flow control mechanisms—would only add more overhead to the transmission. UDP is also more efficient for carrying messages that fit within one data packet. UDP contains only four header fields the source port, destination port, length and checksum. INTERNET PPROTOCOL (IP) IP (Internet Protocol) belongs to the Network layer of the OSI Model. It provides information about how and where data should be delivered, including the data’s source and destination addresses. IP is the subprotocol that enables TCP/IP to internetwork that is, to traverse more than one LAN segment and more than one type of network through a router. At the Network layer of the OSI Model, data is formed into packets. In the context of TCP/IP, a packet is also known as an IP datagram. The IP datagram acts as an envelope for data and contains information necessary for routers to transfer data between different LAN segments. IP is an unreliable, connectionless protocol, which means that it does not guarantee delivery of data. Higher-level protocols of the TCP/IP suite, however, use IP to ensure that data packets are delivered to the right addresses. Note that the IP datagram does contain one reliability component, the Header checksum, which verifies only the integrity of the routing information in the IP header. If the checksum accompanying the message does not have the proper value when the packet is received, then the packet is presumed to be corrupt and is discarded; at that point, a new packet is sent.
In addition to an IP address, every device on a TCP/IP-based network is identified by a subnet mask. A subnet mask is a special 32-bit number that, when combined with a device’s IP address, informs the rest of the network about the segment or network to which the device is attached. That is, it identifies the device’s subnet. Like IP addresses, subnet masks are composed of four octets (32 bits) and can be expressed in either binary or dotted decimal notation. Subnet masks are assigned in the same way that IP addresses are assigned—either manually, within a device’s TCP/IP configuration, or automatically, through a service such as DHCP. DYNAMIC HOST CONFIGURATION PROTOCOL (DHCP). This is an automated means of assigning a unique IP address to every device on a network. DHCP like BOOTP belongs to the application layer of the OSI model. Reasons for implementing DHCP include the following:
NICs belong to both the Physical layer and Data Link layer of the OSI Model, because they apply data signals to the wire and assemble or disassemble data frames. They also interpret physical addressing information to ensure data is delivered to its proper destination. In addition, they perform the routines that determine which node has the right to transmit data over a network at any given instant. TYPES OF NICs NICs come in a variety of types depending on: The access method (for example, Ethernet versus Token Ring) Network transmission speed (for example, 100 Mbps versus 1 Gbps) Connector interfaces (for example, RJ-45 versus SC) Type of compatible motherboard or device (for example, PCI) Manufacturer (popular NIC manufacturers include 3Com, Adaptec, D-Link, IBM, Intel, Kingston, Linksys, and so on) Internal Bus Standards A computer’s bus is the circuit, or signalling pathway, used by the motherboard to transmit data to the computer’s components, including its memory, processor, hard disk, and NIC. Buses differ according to their capacity. The capacity of a bus is defined principally by the width of its data path (expressed in bits) and its clock speed (expressed in MHz). The most popular expansion board NIC is one that uses a PCI bus. PCI (Peripheral Component Interconnect) is a 32- or 64-bit bus with a 33- or 6 6 - MHz clock speed whose maximum data transfer rate is 264 Mbps. Figure 1. A PCI NIC
On-Board NICs Not all peripheral devices are connected to a computer’s motherboard via an expansion slot or peripheral bus. Some are connected directly to the motherboard using on-board ports. For example, the electrical connection that controls a computer’s mouse operates through an onboard port, as does the connection for its keyboard and monitor. Wireless NICs NICs are designed for use with either wire-bound or wireless networks. As you have learned, wireless NICs use an antenna (either internal or external) to exchange signals with a base station transceiver or another wireless NIC. Figure 4. A wireless NIC HUB To make data transmission more extensible and efficient than a simple peer-to-peer network, network designers use specialized network devices, such as hubs, switches, routers, and wireless access points, to send data between network devices. The type of connection that is needed determines the device that is used. Hubs are devices that extend the range of a network by receiving a signal on one port, then regenerating the signal and sending it out to all other ports. This process means that all traffic from a device connected to the hub is sent to all the other devices connected to the hub every time the hub transmits data. This causes a great amount of network traffic. Hubs are also called concentrators, because they serve as a central connection point for a LAN. The following are some of the properties of the hub; Extend the range of a signal by receiving then regenerating it and sending it out all other ports Traffic is sent out all ports of the hub Allow a lot of collisions on the network segment and are often not a good solution
Also called concentrators because they serve as a central connection point for a LAN Figure 5. A Hub BRIDGES AND SWITCHES Files are broken up into small pieces of data, called packets, before they are transmitted over a network. This allows for error checking and easier retransmission if the packet is lost or corrupted. Address information is added to the beginning and to the end of packets before they are transmitted over the network. The packet, along with the address information, is called a frame. LANs are often divided into sections called segments bounded by bridges. A bridge has the intelligence to determine if an incoming frame is to be sent to a different segment, or dropped. This improves traffic flow of data by keeping frames from entering the wrong segment. A bridge has two ports. Switches are sometimes called multiport bridges. A typical bridge may have just two ports, linking two segments of the same network. A switch has several ports, depending on how many network segments are to be linked. A switch is a more sophisticated device than a bridge. A switch maintains a table of the MAC addresses for computers that are connected to each port. When a frame arrives at a port, the switch compares the address information in the frame to its MAC address table. The switch then determines which port to use to forward the frame. Figure 6. Bridge
Until recently, cables were the only medium used to connect devices on networks. A wide variety of networking cables are available. Coaxial and twisted-pair cables use copper to transmit data. Fiber-optic cables use glass or plastic to transmit data. These cables differ in bandwidth, size, and cost. As a technician, you need to know what type of cable to use in different situations so that you are able to install the correct cables for the job. You will also need to be able to troubleshoot and repair problems that you encounter. COAXIAL CABLE Coaxial cable, called “coax” for short, was the foundation for Ethernet networks in the 1970s and remained a popular transmission medium for many years. Over time, however, twisted-pair and fiber-optic cabling have replaced coax in modern LANs. Coaxial cable is a copper-cored cable surrounded by a heavy shielding. Coaxial cable is used to connect computers in a network. There are several types of coaxial cable, including the following: Thicknet or 10Base5 - Coax cable that was used in networks and operated at 10 megabits per second with a maximum length of 500 meters. Thinnet or 10Base2 - Coax cable that was used in networks and operated at 10 megabits per second with a maximum length of 185 meters. RG- 59 - Most commonly used for cable television in the US RG- 6 - Higher quality cable than RG-59 with more bandwidth and less susceptibility to interference FIGURE 8 coaxial cable. TWISTED-PAIR CABLING Twisted-pair is a type of copper cabling that is used for telephone communications and most Ethernet networks. A pair of wires forms a circuit that can transmit data. The pair is twisted to provide protection against crosstalk, which is the noise generated by adjacent pairs of wires in the cable. Pairs of copper wires are encased in color-coded plastic insulation and twisted together. An outer jacket protects the bundles of twisted pairs called poly-vinyl chloride (PVC). PVC will produce hazardous fumes when burned. Most network cables are installed in the plenum space,
or areas in the ceiling, in the walls, and under the floor. If cables with the PVC jackets do burn in the plenum space, hazardous fumes can spread quickly through a building. To avoid this danger, only install plenum-grade fire resistant cabling in the plenum space. When electricity flows through a copper wire, a magnetic field is created around the wire. A circuit has two wires, and in a circuit, the two wires have oppositely charged magnetic fields. When the two wires of the circuit are next to each other, the magnetic fields cancel each other out. This is called the cancellation effect. Without the cancellation effect, your network communications become slow due to the interference caused by the magnetic fields. Figure 9 Twisted pair cable TWO BASIC TYPES OF TWISTED-PAIR CABLES
1. UNSHIELDED TWISTED-PAIR (UTP)