77
MTN 2013 Computer Network Technology Chapter 1 Introduction

Introduction of Computer Networking Technoloy

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Introduction of Computer Networking Technoloy

MTN 2013 Computer Network Technology

Chapter 1Introduction

Page 2: Introduction of Computer Networking Technoloy

Part I

Page 3: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 3

Outline

1. Communication Concept2. Data Communications3. Computer and Data Communications4. Component of Communication Data System

Page 4: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013

1. Communication Concept

4

Page 5: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 5

• Communication – exchange of information between two humans

• Data communication - exchange of information between two computers

Page 6: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013

2. Data Communication

What is data communication?Data communication is subset of telecommunication.Telecommunication - Any process that permits the passage from a sender to one or more receivers of information of any nature, delivered in any easy to use form by any electromagnetic system

6

TelecommunicationData

Communication

Page 7: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 7

History of Telecommunications

• Invention of telegraph Samuel Morse – 1837• Invention of telephone- Alexander Graham

Bell – 1876• Development of wireless by Guglielmo

Marconi (develops the first wireless telegraph system) – 1896

• Concept of universal access and growth of AT&T

• Divestiture of AT&T— 1980s

Page 8: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 8

History of Telecommunications ..continued

• Telecommunications Act of 1996• Three main developments that led to the growth of

data communications systems:– Large-scale integration of circuits reduced the cost and size

of terminals and comm equipment– Developments of software systems made establishment of

communication networks easy– Competition among providers of transmission facilities

reduced the cost of data circuits

Page 9: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 9

Not to be confused with telecommunication—

Data communication -Defined as a subset of telecommunication involving the transmission of data to and from computers and components of computer systems>> Focus is on the transmission medium, different signal levels and data coding>> More specifically data communication is transmitted via mediums such as wires, coaxial cables, fiber optics, or radiated electromagnetic waves such as broadcast radio, infrared light, microwaves, and satellites

Page 10: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 10

History of Data Communication

• Transistor developed by Bell Labs in 1947• Hush-a-Phone Case• Carter phone case• MCI and Long Distance• Creation of networks (LAN’s and WAN’s)• Data Link Protocols• Microcomputers

Page 11: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 11

3. Computer & Data Communications • Data communications involves the exchange of data between two

computers• Computers work with a binary language consisting of zero and

one (0 and 1)• Therefore, a computer generates a stream of zeroes and ones and

send it to another computer to which it is connected• The connection can be either a simple wire or can be through

wireless media• It is not necessary for these two computers to be close to each

other – different rooms, cities, states, countries, continents• For enabling data communications, a combination of software

and hardware is essential

Page 12: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 12

..continued• In any data communications system, three

characteristics are desired:i. Correct delivery – when sender transmits data for an

intended recipient, the data must reach only the intended recipient and not someone else

ii. Accurate delivery – the data sent must be received in the same form as the one in which it was sent. There must not be any sort of alterations to it in transit

iii. Timely delivery – the data must travel from the sender to receiver in a finite amount of time. The term finite is quite vague, and would depend on the reasons why the data communications is taking place

Page 13: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 13

..continued

• Two key aspects of data communications:i. Transmission medium – physical path over which

data travels from the sender to receiver (e.g. copper wires, coaxial cables, optical fiber or wireless media such as radio waves)

ii. Data communications protocols – set of rules and conventions (standard)

*We will discuss these two topics in detail later (next chapters)

Page 14: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 14

4. Component of Communication Data System

• Sender• Receiver• Message• Transmission Medium• Protocol

Page 15: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 15

Sender ReceiverTransmission Medium

Message

Step 1:..

Step 2:.

…..

Protocol Protocol

Step 1:..

Step 2:..

…..

-Information data

which is connected

e.g. image, sound, video-Devices that

send the messages

e.g. computer,telephone,

video camera

-Devices that receive

the message

e.g. computer, video camera,

telephone

-physical path over which data travels from the

Sender to receiver

e.g. wire, network,

radio waves

-A set of rules in data

-communications

e.g. formal language

Page 16: Introduction of Computer Networking Technoloy

Part II

Page 17: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 17

Outline

1. Computer Data Network Application2. Data Communication: Data Protocol3. Data Communication: Data Standard

Page 18: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 18

1. Computer Data Network Application

E-mailSearchable Data (Web Sites)E-CommerceNews GroupsInternet Telephony (VoIP)Video ConferencingChat GroupsInstant Messengers Internet Radio

Page 19: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 19

E-mail

• E-mail stands for Electronic Mail• Basically, allow user to compose and exchange

message

Page 20: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 20

Searchable Data (Websites)

• A collection of related web pages containing images, videos or other digital assets.

• Display organization info and medium of communication.

• Two categories; a. static & b. dynamic website.

Page 21: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 21

E-commerce

• Electronic Commerce (eCommerce or e-comm)• Consists of the buying and selling of products or

services over electronic systems such as the Internet and other computer networks.

• It also includes the entire online process of developing, marketing, selling, delivering, servicing and paying for products and services.

Page 22: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 22

Newsgroup

• A newsgroup is a discussion about a particular subject consisting of notes written to a central Internet site and redistributed through Usenet, a worldwide network of news discussion groups.

Page 23: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 23

Internet Telephony (VoIP)

• Communication protocols• Transmission technologies for delivery of voice

communications and multimedia sessions over Internet Protocol (IP) networks, such as the Internet.

Page 24: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 24

Video Conferencing

• A set of interactive telecommunication technologies which allow two or more locations to interact via two-way video and audio transmissions simultaneously.

Page 25: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 25

Chat Groups

• Need to choose which group to join.

Page 26: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 26

Instant Messengers

• A form of real-time direct text-based communication between two or more people using personal computers or other devices, along with shared clients.

• More advanced instant messaging software clients also allow enhanced modes of communication, such as live voice or video calling.

Page 27: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 27

Internet Radio

• Also known as web radio, net radio, streaming radio, e-radio.

• An audio service transmitted via the Internet.

Page 28: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 28

2. Data Communication: Data Protocol

• The Internet started out around 1969 as a kind of science fair project by the U.S. military, and it was known as the ARPANET. That network no longer exists, but various protocols that were invented for it are still in use.

• As the Internet user , a basic understanding of what IP, TCP, and UDP, as well as DNS domain names is very important.

Page 29: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 29

Transmission Control Protocol (TCP)

Page 30: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 30

TCP

• Transmission Control Protocol/Transfer Control Protocol/Transport Control Protocol

• TCP is the most widely used Internet protocol• Transport layer protocol

– Transmit the message from server to client– How client can achieve the server – inter-process

communication through port protocol

Page 31: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 31

Port Protocol

• Port protocol assigned to the process by operating system

• There are 216 port (0 till 65535)• 2 set of ports

– UDP protocol– TCP protocol

Page 32: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 32

Host sun1.ftsm.ukm.my/etc/services

PORT

Page 33: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 33

Port Protocol• Port well-known (1 – 1023)• For standard services• HTTP [80], SMTP[25], FTP[21, 22], POP3[110], Telnet

[23]• Ephemeral port (1024 – 65535)• Dynamically allocated• Assigned to the client process• After the completion of client process, port will be

freed

Page 34: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 34

TCP

• Provides reliable transmission services• Uses port protocol for addressing process• Applications that depends on reliability

for example telnet, http, ftp etc.

Page 35: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 35

TCP Header Format

Page 36: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 36

TCP Connection

• TCP connection has been identified with the end point (port number) of the connection

• To establish the TCP connection, it comprise the two ways communication

• Client will make a request to the port at the server

• Server will open the port and start the connection

Page 37: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 37

Three-way Handshake – Initiate TCP Connection

• TCP uses a three-way handshake to initiate the connection for reliability.

1. Host A sends a TCP SYNchronize packet to Host BHost B receives A's SYN

2. Host B sends a SYNchronize-ACKnowledgementHost A receives B's SYN-ACK

3. Host A sends ACKnowledgeHost B receives ACK. TCP socket connection is ESTABLISHED.•

TCP Three Way Handshake(SYN,SYN-ACK,ACK)

• To make sure both nodes ready to adjust random sequence number for synchronization.

Page 38: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 38

Three-way Handshake

Page 39: Introduction of Computer Networking Technoloy

04/10/2023MTN 2013

39

Four-way Handshake - End the TCP Connection

• TCP use FIN segment to end the connection

• Four-way Handshake

Page 40: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 40

User Datagram Protocol (UDP)

Page 41: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 41

UDP

• Transport layer protocol• Provides communication for unreliable connection • Packet might be lost or not in sequence• No buffer – receive data from application and

directly send it.• Has been used when no error control needed.• For the process like; DNS [53], echo [7], tftp [69], SNMP[161]

Page 42: Introduction of Computer Networking Technoloy

04/10/2023MTN 2013

42

UDP Datagram Format• Header

– UDP Source Port (16 bit)– UDP Destination Port (16 bit)– UDP Message Length (16 bit)– UDP Checksum (16 bit)

• Data

UDP Source Port UDP Destination Port

UDP Message Length UDP Checksum

Data

Page 43: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 43

Internet Protocol (IP)

Page 44: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 44

IP• Network layer protocol• Provides packet transmission through seamless

communication.• Use IP address for addressing• Determine packet route through one ore more hop • Provides mechanism consist of:

– Data unit (IP datagram)– Software to transmit datagram– Tips on how the computer host process the datagram

Page 45: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 45

Figure 19.2 Links in an internetwork

Page 46: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 46

IP• IP is responsible to provide best-effort transmission

for packet/datagram • How the communication through Internet ?

– Transport layer take the flow of data and break it to datagram– Network layer transmits each datagram through Internet.

Splitting to the smaller unit might happen during this process– At the destination, datagram will be assemble by network layer

d to the original datagram and will be sent to transport layer.

Page 47: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 47

Figure 19.4 Network layer at the source

Page 48: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 48

Figure 19.5 Network layer at a router

Page 49: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 49

Figure 19.6 Network layer at the destination

Page 50: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 50

Addressing

• Need standard address format• Address format should not rely on hardware

address format• Address must be unique in the whole network

(Internet)• The body that control address registration –

Internet Information Center (InterNIC)

Page 51: Introduction of Computer Networking Technoloy

04/10/2023MTN 2013

51

IP Address (IPv4)

• Represent by 32-bits integer• Use dotted decimal quad notation

– Consists of 4 parts of 8 bits – Separated by full stops

Page 52: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 52

Network Class• IP address has been organized based on network class

– Class A: 0nnnnnnn.iiiiiiii.iiiiiiii.iiiiiiii– Class B: 10nnnnnn.nnnnnnnn.iiiiiiii.iiiiiiii– Class C: 110nnnnn.nnnnnnnn.nnnnnnnn.iiiiiiii– Class D: 1110bbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb– Class E: for future use

• Representation:– n – network number– i – host number– b – group id

Page 53: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 53

Address Range to Identify Address Class

Page 54: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 54

• Each IP address has been divided into two parts– Network number(prefix) – shows physical network

to where the computer connected– Host number(suffix) – shows computer unique

number in network• Internet Corporation for Assigned Names and

Numbers (ICANN) responsibles to assign class A, B and C to organization.

Page 55: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 55

• Class A, B and C are the primary class – Use for normal host addressing

• Class D for multicast purpose,– to broadcast message

• Class E reserved for future use• Each host has virtual address interface known

as loopback interface that is 127.0.0.1– Also known as localhost

Page 56: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 56

Figure 19.19 A network with two levels of hierarchy

Page 57: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 57

IP Address Weakness

• Some hosts have more than one IP address• Network classes are too rigid• There was not enough IP address for future

use.

Page 58: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 58

Subnet

• IP address has been organized as subnet to simplify network management.

• Each subnet is address set determined by – Subnet address (example: 199.17.35.96) – Subnet mask (example: 255.255.255.240)

Page 59: Introduction of Computer Networking Technoloy

04/10/2023MTN 2013

59

Subnet

A campus network consists of LAN for the departments

Page 60: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 60

Figure 19.20 A network with three levels of hierarchy (subnetted)

Page 61: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 61

Figure 19.21 Addresses in a network with and without subnetting

Page 62: Introduction of Computer Networking Technoloy

04/10/2023MTN 2013

62

Example of Subnet

For class B network:• 3 bits have been used as subnet to become

15 subnet– subnet mask: 255.255.224.0

• The other 13 bits represent host

Page 63: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 63

Routing

• If destination host not in the same network, datagram will be sent to gateway.

• How IP choose route to transmit the datagram to a remote network?– By using routing table which has the information

on the next hop – other nodes directly connected to the gateway.

Page 64: Introduction of Computer Networking Technoloy

04/10/2023MTN 2013

64

Example of Routing Tablenetstat -nr

$ netstat -nr

Routing Table: IPv4 Destination Gateway Flags Ref Use Interface-------------------- -------------------- ----- ----- ------ ---------202.185.46.0 202.185.46.197 U 1 25591 hme0224.0.0.0 202.185.46.197 U 1 0 hme0default 202.185.46.254 UG 1 80525 127.0.0.1 127.0.0.1 UH 3 137862 lo0

Page 65: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 65

Figure 19.31 Default routing

Page 66: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 66

Internet Protocol Version 6 (IPv6)

• Known as Next Generation Internet Protocol (IPng)

• Length of the address has been added to 128 bits

• Allow additional hosts on the Internet web• Allow the development of Internet

Page 67: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 67

Diagnostic Tools

• ping – test connection to host– measure round trip time

• traceroute (at microsoft: tracert)– Show the data route from host to destination– http://www.traceroute.org/

• netstat -nr– Show routing table

Page 68: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 68

Diagnostic Tools

• ipconfig (at microsoft) • ifconfig -a (at *nix)

– Show IP number, subnet and computer gateway

Page 69: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 69

Domain Name System(DNS)

Page 70: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 70

DNS• DNS is a name and address database • It is difficult for human to remember the IP address • DNS provides translation between symbolic name

and IP address.• Symbolic name consist of, sequence of alphanumeric

component which has been separated by full stop.– example: www.ftsm.ukm.my , sun1.ftsm.ukm.my

• Name hierarchy: – The far right shows the domain (example: ftsm.ukm.my)– The far left shows the computer name (example: sun1, www)

Page 71: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 71

Domain Name

• The top domain name was determined– example: com, net, org, my

• Company buy the name from InterNIC and sell it to other company.

Page 72: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 72Chapter 12: The Internet 72

Page 73: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 73

Name Mapping and IP Address

• An application program call the library procedure (resolver), by sending the host name as parameter.

• Resolver send the UDP packet to local DNS server• The server find the name and return the IP address

to resolver, and then to the caller.• With the IP address, program can then make a TCP

connection to destination.

Page 74: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 74

Page 75: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 75

Tools

• hostname– The name of computer

• domainname– Name of domain

• nslookup– Network and Server Information Tools from

Myloca (Telekom Malaysia)http://www.myloca.net/cgi-bin/trace/index.pl

Page 76: Introduction of Computer Networking Technoloy

04/10/2023 MTN 2013 76

3. Data Communication: Data Standard

• Layer • Common Standards

• 5. Application layer • HTTP, HTML (Web)• MPEG, H.323 (audio/video)• IMAP, POP (e-mail)

• 4. Transport layer • TCP (Internet)• SPX (Novell LANs)

• 3. Network layer • IP (Internet)• IPX (Novell LANs)

• 2. Data link layer • Ethernet (LAN)• PPP (dial-up via modem)

• 1. Physical layer • RS-232c cable (LAN)• Category 5 twisted pair (LAN)• V.92 (56 kbps modem)