2G1316
Data Communications and Computer Networks Peter Sjödin KTH School of Electrical Engineering Laboratory for Communication Networks
Introduction • Goal • Related courses • Planning and rules Lectures Recitations Laboration
• Material Book Exercises with solutions Lab instructions
• Responsabilities of participants 2
Goal • Basics Data communications o
How information can be transfered
Protocols o
How system functions are performed
Services o
How the networks are used
Network architectures o
How the pieces are put together
Design principles and methods
• Introduction to TCP/IP and the Internet 3
Related Courses 2E1624 (5p) Performance Analysis of Communication Networks
2E1623 (5p) Data links and local area networks
2G1305/2E1605 (4p) Internetworking (2D1392 Protocols and Principles of the Internet)
2E1632 (5p) Management of networks and networked systems
2G1318 (4p) Queuing theory and teletraffic systems
Laboratory for Communication Systems, www.s3.kth.se/lcn
2E1633 (5p) Network services and Internet-based applications
4
Course Planning • Twelve lectures • Nine recitations • One laboration Homework Preparation for the laboration
5
Teachers • Lectures
Peter Sjödin (Swedish)
• Recitation assistants György Dan (English/Swedish) Vladimir Vukadinovic (English) Fetahi Wuhib (English)
• Laborations Jing Fu Mikael Rudholm 6
Students • Please meet… D3, D4 E3, E4 I2 MEDIA2 Medicinsk Informatik o
Karolinska institutet
Enstaka kurser… 7
Please Note! • Exam March 13 • Important messages through Bilda bilda.kth.se Also at the lectures You are responsible for staying updated!
8
Lectures and Recitations • •
F1: Introduction F2: Layered models
•
F3 and F4 + Ö1 and Ö2: Physical layer and data transfer
•
Modulation Coding Link technologies
F5 + Ö3: Data link layer
•
Internet OSI
Flow control Error control Data link protocols
•
F7 + Ö5: Wide Area Networks
• •
F8 and F9 + Ö6 and Ö7: Internetworking and IP F10 and F11 + Ö8: End-to-end communication
• •
Circuit switching Packet switching Virtual circuits
Transport protocols Applications
F12: — (spare) F13 + Ö9: Summary
F6 + Ö4: Local Area Networks
Multiple Access Ethernet (IEEE 802.3)
9
Laboration • Purpose Design and configuration of a computer network Work with modern Internet equipment
• Laboratorium LQ303, Osquldas väg 10 • Groups with two students • Sign up for lab sessions (more details later)
• Homework Must be completed in order to do the lab! Deadline February 2 Hand in at lecture or recitation
10
Recitations • There are two parallel recitation groups for 2E1623 and 2G1316 • You do not need to register • Recommendation: MEDIA, Medicinsk Informatik o
Track 1 (György)
D, E, and I o
Track 2 (Vladimir and Fetahi) 11
Course Material • Book
Behrouz A Forouzan, Data Communications and Networking, 3rd edition, McGraw-Hill. ISBN 007-123241-9.
• Exercises with solutions • Lab instructions • Summary of course modules Background material
• All material (except for the book) is available on the course web http://www.s3.kth.se/courses/2G1316
• There will be a printed version of exercises and lab instructions, which you can buy
12
Your Responsibilities • Registration for exams and labs S3 booking system, see the web
• Course registrations No separate course registration When you register for the labs, you also register for the course If you for some reason are not going to register for the labs, please contact Peter!
• Search the web Most information available on the course web Course administration
• Course evaluation • Course responsible can be reached through Bilda Make sure your Bilda profile is up to date
• Be on time for the laborations And keep the deadline for the homework
13
Course Committee (Kursnämnd) • Volounteers? • Meetings Mid-course End of course
14
Today’s Lecture • Definitions • Signals • Requirements on communication • Communication networks Connections and topologies Network types
• Examples of networks 15
Illustrations in this material are collected from Behrouz A Forouzan, Data Communications and Networking, 3rd edition, McGraw-Hill.
16
Information and Data • Information—many meanings Wikipedia (http://www.wikipedia.org) lists five meanings: o o o
1. Negative entropy—the instructions that are needed to produce order or reduce uncertainty ... 5. Any type of pattern that influences the formation or transformation of other patterns
• Data Representation of information o
Symbols with a certain syntax
17
Information • Technical definition Context known by sender and receiver o
The alternatives are well defined
Information represents one alternative o
To represent one of N alternatives requires ⎡log2N⎤ bits
o
Example: The letters in the Swedish alphabet can be represented by 5 bits (25 = 32)
18
Information • Time dependent information Has a certain bit rate or data rate (measured in bits per second, b/s, bit/s, bps)
• Time independent information Consists of a certain amount of bits
19
Communication • Sharing or transfer of information • “Telecommunication” Communication at a distance o
”Tele” is ”far” in Greek
Traditionally speach Sound, pictures, text, ...
• “Communications” With an ’s’ at the end! “The branch of technology concerned with the representation, transfer, interpretation, and processing of data among persons, places, and machines also known as information systems.” o
From http://www.wikipedia.org
• ”Data communications” ”[...] the exchange of data between two devices over some form of transmission medium” o
Forouzan
20
Network Functions • Ways to transfer information on a link Signal format
• Addressing Identify sender and receiver
• Routing Find a path between sender and receiver
• Buffering Compensate for differences in speed Variations in traffic load
• Error detection and control If data is lost or corrupted
• Congestion control To protect the network from being overloaded
• Management and network operations
21
Signals • Analog signals Continuous in time Infinitely many levels o
Continuously varying
• Digital signals Limited number of levels o o
Discrete Often binary (0 and 1)
Discrete in time
22
Sine Wave • Fully described by s(t) = A sin(2πft + φ) A is amplitude, f is frequency, φ is phase
23
Time and Frequency Domains • A signal can be represented as A function of time A function of frequency
24
Composite Signals
25
Fourier Analysis • Any composite signal can be represented as a sum of simple sine waves
26
Bandwidth • Important property of a medium Difference between highest and lowest frequency that can pass through the medium Measured in Hertz [Hz] Limits the channel’s capacity
27
Capacity • Transmission capacity Measured in bits per second [b/s, bit/s, bps]
• Increased bandwidth can give higher capacity A noiseless analogous channel has infinite capacity
• Larger units kilo (k) 103, mega (M) 106, giga (G) 109, tera (T) 1012, peta (P) 1015, exa (E) 1018, zetta (Z) 1021, yotta (Y) 1024, … googol 10100, … googolplex 1010100
28
Data Communications • All information is represented as digital data Analog information is converted to digital o
Sampling
• Data is transferred using electromagnetic waves Light, electricity, radio o
Analog signal
o
Modulation
• Information is recreated at the receiver Errors are corrected or hidden
29
Requirements on Communication • Quality Delay Information loss and distortion Reliability Security
• Connectivity One-way and twoway o
• Cost Information Service o o
Resources (time, capacity) Management — Booking — Directory services — Security
Simplex/duplex
One to one, one to many
30
Connectivity Duplex
Half duplex
Simplex
31
Point-to-point Connections
32
Multipoint Connection
33
Networks • Need devices between sender and receiver Signals regeneration and amplification Different equipment, formats, etc Sharing of links Routing, addressing, traffic control, ...
• A set of nodes connected by links Hosts, switches, routers, stations, …
• Links form a topology • Distributed processing Tasks are divided among multiple units (computers)
34
Physical Topologies
Topology Topology Mesh Mesh
Star Star
Bus Bus
Ring Ring
35
Mesh Topology • One link between every pair of nodes • Advantages Reliable and robust High capacity
• Disadvantages High cost o
Installation
o
Cabling
o
Number of I/O ports
36
Star Topology • All links to a central node (hub) • Common office installation today • Advantages Less costly than mesh Easy to install and maintain
• Disadvantages Hub is single point of failure One cable from each node to hub
37
Bus Topology • Point-to-multipoint • Advantages Ease of installation Cost
• Disadvantages Limited size Maintainance o
Reconfiguration
o
Fault isolation
38
Ring Topology •
Point-to-point links
• •
Between neighbours
Signals rotate around the ring Advantages
Easy to install and reconfigure Cost
• Disdvantages Robustness
• Dual ring improves robustness and capacity
39
Network Types Network Network Local LocalArea AreaNetwork Network (LAN) (LAN)
Metropolitan MetropolitanArea AreaNetwork Network (MAN) (MAN)
Wide WideArea AreaNetwork Network (WAN) (WAN)
• Classification depends on: Ownership Size and distance Physical architecture 40
Local Area Networks (LANs) • Single organization Office, building, campus, etc
• Resource sharing Printers, file servers, Internet connection
• One type of medium Ethernet most common o
10, 100, 1000 Mb/s
Wireless LANs
41
Metropolitan Area Network (MAN) • Connect LANs together • Provide access to WAN • Different kinds of ownership private company public company o o
Network operator ”Stadsnät, kommuner, energibolag”
42
Wide Area Network (WAN) • International networks • Use different kinds of equipment Public, leased, private equipment
• International operators (carriers) • Private WAN ”Enterprise networks”
43
Telephone Network • Built for analog voice traffic Suscriber access via simple pair cable o
Analog signals with low bandwidth, about 3 kHz
Low delay, low loss Data transfer with modem (fax) ISDN – multiservice network, is available but outdated
• Simple terminals with “intelligence in the network” • Services mainly related to connection establishment (“plustjänster") Call waiting Call transfer Group calls
• xDSL—Higher data rate over existing telephone cables
44
Cable TV • One-way distribution (simplex) of TV signals • Cabling with high quality Coaxial cable or optical cable Bus or star topology
• Alternative Internet access Higher capacity down link (up to 2000 kb/s today) Lower capacity uplink (up to 400 kb/s today)
• Owned and operated independently of the telephone network Competition in the local access networks
45
The Internet • Most important computer network Note: capital I in Internet!
• Many interconnected (independent) networks • Common addressing and transmission format Internet Protocol (IP)
• Access via telephone network, cable TV, fiber, … Internet Service Provider (ISP) Limited access speed
• Information primarily not time-dependent Mainly text and pictures
• Time-dependent traffic increases Streaming media (for example Web radio) IP telephony (“Voice over IP”)
46
Internet Today
47