Computer networks Part III

Jul 16, 2009 8:17 AM, By Russell Brown

This tutorial continues with the discussion of what components make a computer network work.

             

TCP/IP

TCP/IP is likely the most commonly used pair of protocols in the world and will be the focus of this tutorial. Transmission Control Protocol (TCP) is software that resides on the computer; when the program you are running needs to send data over the network, it hands that data over to the TCP. TCP is used throughout many Internet applications including browsers, e-mail, File Transfer Protocol (FTP) transfers and even some streaming media applications.

TCP is used to guarantee data delivery. The receiving computer’s TCP will notify the sender’s TCP that each packet was received correctly, and if the sender does not get a confirmation that the packet was received, then another packet is sent replacing the lost one. A timer is also used in case the sent packet goes astray. Because both the Ethernet and the Internet are two-way data channels, no forward error correction is used because each packet of data can be acknowledged.

Figure 1: Building up a data packet.
Click to enlarge.

Figure 1: Building up a data packet. Click to enlarge.

For example, when a file is to be transmitted via FTP, the entire file, which could be any size from a few kilobytes to several gigabytes, is handed off to TCP where it divides the file into segments that in turn are the payload of the IP packets. TCP also includes the port numbers for the packet header. Port numbers tell a computer what sort of service this data is associated with, e.g. an e-mail, FTP, http or Network Time Protocol. Ports allow a program to only see data intended for it.

The Internet Protocol (IP) part encapsulates these segments into an IP packet and adds a header with the destination and source IP address as well as other information about the packet.

This IP packet is then encapsulated into an Ethernet frame for transport over the local Ethernet network. This Ethernet frame includes the MAC address (see below) of both the source and destination. Then this Ethernet frame is sent to the network interface card, and the data is sent over Cat 5 cabling. (See Figure 1.)

MAC address

Each device that plugs into a network must have a unique Machine Access Control (MAC) address. These are 48-bit numbers that identify each network port; if a device has 16, 24 or 48 network ports, it has as many MAC addresses. Many network protocols use the MAC address to direct IP traffic.

When a computer is first plugged into the local network switch, its MAC address is not known to any other devices on the network. When this new computer attempts to send data to another computer using its IP address, it must broadcast a request for the MAC address of the computer with that IP address. Within this request is the IP and MAC address of the new computer so the responding device will know how to reach it. The network switch (which only works with MAC address) will broadcast this request to all of its ports. When the request reaches the computer with the correct IP address, it responds back to the originating computer with its MAC address. The network switch also sees this exchange and adds the MAC addresses for both computers to its ARP cache (see below). At this point, the new computer is finally able to send the data.

This exchange is how both computers and the network switch are able to know how to address and direct the Ethernet frame through the network to its destination. Each time data is sent, all this information must be known. To speed things up and keep the amount of network traffic down, each device remembers this information the first time it happens so it can use it the next time.

Network switches

Network switches are used to connect the various computers on a network. Switches direct data via a computer’s MAC address. When data is sent out from a computer to the network switch, it carries with it the IP and MAC address of the sender and the IP and MAC address of the intended recipient. The network switch looks at the MAC address and directs the data to the correct port of the switch. It does this by keeping a record of which port is connected to which MAC-addressed equipment. This record is kept in a content addressable memory (CAM) table within the switch, which operates at very high speeds and expedites the movement of Ethernet frames through the switch.

The network switch monitors all traffic flowing through it, looking for MAC addresses and keeping a record of them. When a computer needs to send data to another computer, it must first know its IP address and then its MAC address. If it does not already know the MAC address, it sends out an Address Resolution Protocol (ARP) request over the network to all devices asking for the MAC address of the owner of this particular IP address. When the computer with that IP address responds, this data is stored on the requesting computer’s ARP cache so it can use it again. The IP and MAC addresses of the requesting computer are also stored on all the computers on the network that received the request. The MAC addresses for both computers, requesting and responding, are stored on the network switch as well.

Getting an IP address

Each device on a LAN must have a unique IP address, and there are only two ways to get one. The first is to have it assigned manually when the TCP/IP of the computer is first set up. The TCP/IP control panel of most computers requires the following: IP address, subnet mask, default gateway or router and primary and secondary DNS. IP addresses and subnet masks were covered in previous tutorials. The default gateway is the IP address of the local router, which enables the computer to know where to send IP packets with IP addresses that fall outside the range of the subnet mask.

An easier way is to use Dynamic Host Configuration Protocol (DHCP). This allows computers on a network to be automatically assigned all the information needed to communicate over the network. DHCP works when a new computer sends out a broadcast over the network looking for a DHCP server. When the DHCP server responds, it sends all the IP configuration information the new computer needs. The exchange ends when the computer accepts the IP information. DHCP IP addresses are leased to the requesting computer for a certain time frame, which can be hours or days.

DHCP servers are allocated a range of IP address within the subnet of the network. DHCP servers can be computers or even routers, but there can only be one DHCP server on any subnet or network.

IP addresses can be static (manually assigned) or dynamic (using DHCP). For most computers, a dynamic IP address is easiest, while for other devices such as servers, routers and printers, a static IP address makes it easier for other computers to find these frequently accessed devices.




Want to use this article?
Click here for options!
Get Copyright Clearance

Share this article

blog comments powered by Disqus

 


Current Issue

A view from the top

January 2012

Some of broadcast's brightest reveal where the industry is headed.

Read More articles...

Related Newsletter

Transition to Digital
A twice per month tutorial on digital technology.

Related Posts


Confused about the terminology in an article? Find definitions of common terms and abbreviations in Broadcast Engineering's Glossary.

 


Submit your product for our NAB coverage.

Resources

Broadcast Engineering Newsletters Broadcast Engineering Essential Guides Broadcast Engineering White Papers Broadcast Engineering Videos Broadcast Engineering Podcasts Broadcast Engineering Industry Calendar

Industry Calendar

Broadcast Engineering Glossary of Terms

Glossary

Broadcast Engineering RSS feed

RSS

Interactive Media

Broadcast Engineering Webinars Broadcast Engineering Training Broadcast Engineering Blogs Broadcast Engineering Mobile Apps Broadcast Engineering on Facebook

Facebook

Broadcast Engineering JobZone

JobZone

Broadcast Engineering BE Roll

Blog

Featured Products

A Broadcaster's Guide To Camera & Lens Technology

A Broadcaster's Guide To Camera & Lens TechnologyThis eBook provides both new and veteran shooters an in-depth understanding of the technology that lies between the camera lens and the recording medium and how to maximize a camera's performance.

File Based Technology and Workflow

File Based Technology and WorkflowFile-based technologies have replaced video tape methods for a majority of production and broadcast operations. The worlds of AV and IT are coalescing to create new methods and workflows for media

Digital Television Fundamentals

Digital Television FundamentalsThis course, written by broadcast engineer Phil Cianci, provides a basic tutorial platform on the hows and whys of ATSC digital operation.

Video Compression, Editing and Displays

Video Compression, Editing and DisplaysVideo compression, editing and displays is an in-depth tutorial on MPEG compression technology, editing MPEG content and evaluating color video monitors written by long-time video expert, trainer and writer Steve Mullen, Ph. D.

 

 

Sound Off Podcasts

Erik Moreno, co-general manager of the Mobile Content Venture

MCV racks up successes on way to bright mobile DTV future

2012 will be the year of mobile DTV. That’s the view of Erik Moreno, who along with Salil Dalvi, senior VP for Mobile Platform Development at NBC Universal, is co-general manager of the Mobile Content Venture.

Danny Wilson

OTT year in review

Hear snippets of podcast interviews done throughout 2011 with Pat McDonough of The Nielsen Company, Glen Friedman of Ideas & Solutions!, Danny Wilson of Pixelmetrix and Greg Herman of Watch TV. Pictured is Danny Wilson, Pixelmetrix.

 

Broadcast Engineering Digital Reference Guide

Browse Back Issues

Back to Top