Chapter1 Introduction ModNTG
Chapter1 Introduction ModNTG
References
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Computer
A computer networkNetworks
is a system that connects two or more
computing devices for transmitting and sharing information.
Computing devices include everything from a mobile phone to
a server. These devices are connected using physical wires such
as fiber optics, but they can also be wireless.
A Tier 1 network is an Internet Protocol network that can reach every other
network on the Internet solely via settlement-free interconnection. Tier 1
networks can exchange traffic with other Tier 1 networks without paying any
fees for the exchange of traffic in either direction.
Tier 1 ISPs own and manage their operating infrastructure, including the routers
and other intermediate devices (e.g., switches) that make up the Internet
backbone. Key Tier 1 ISPs include AT&T, Verizon, Sprint, NTT, Singtel, PCCW,
Telstra, Deutsche Telekom and British Telecom.
Tier-1 providers
interconnect (peer) Tier 1 ISP
privately
Peering
point Peering
point
Uses of Computer Networks
• Business Applications
• Home Applications
• Mobile Users
• Social Issues
Business Applications (1)
Resource sharing
Powerful communication medium-
e-mail, Telephone calls by comp networks(VoIP), Desktop sharing
Business electronically (e-commerce)
• Network neutrality
• Digital Millennium Copyright Act
• Profiling users
• Phishing
Network Hardware (1)
Transmission technology- Broadcast links and Point-to-point links
Point-to-point links- 1 sender 1 receiver---- unicasting
Broadcast network- communication channel is shared by all machine on the
network, packets sent by any machine are received by all others. Wireless network
Multicast- subset of machines.
30
The OSI Reference Model
End
to
End
Hop
To
Hop
32
The Physical Layer
The physical layer is concerned with transmitting raw bits over a
communication channel.
The design issues have to do with making sure that when one side
sends a 1 bit it is received by the other side as a 1 bit, not as a 0 bit.
Typical questions here are what electrical signals should be used to
represent a 1 and a 0, how many nanoseconds a bit lasts, whether
transmission may proceed simultaneously in both directions, how
the initial connection is established, how it is torn down when both
sides are finished, how many pins the network connector has, and
what each pin is used for.
These design issues largely deal with mechanical, electrical, and
timing interfaces, as well as the physical transmission medium,
which lies below the physical layer.
33
The Data Link Layer
34
The Data Link Layer
Responsibilities of the data link layer include the following:
Framing. The data link layer divides the stream of bits received
from the network layer into manageable data units called frames.
Flow control: If the rate at which the data are absorbed by the
receiver is less than the rate at which data are produced in the sender,
the data link layer imposes a flow control mechanism to avoid
overwhelming the receiver. 35
The Data Link Layer
Error control. The data link layer adds reliability to the physical layer
by adding mechanisms to detect and retransmit damaged or lost
frames. It also uses a mechanism to recognize duplicate frames. Error
control is normally achieved through a trailer added to the end of the
frame.
Access control. When two or more devices are connected to the same
link, data link layer protocols are necessary to determine which device
has control over the link at any given time.
36
The Data Link Layer
37
The Network Layer
The network layer controls the operation of the subnet. A key
design issue is determining how packets are routed from source to
destination.
If too many packets are present in the subnet at the same time, they
will get in one another’s way, forming bottlenecks. Handling
congestion is also a responsibility of the network layer, in
conjunction with higher layers that adapt the load they place on the
network.
38
The Network Layer
39
The Transport Layer
40
The Transport Layer
41
Reliable process-to-process delivery of a message
42
The Transport Layer
Other responsibilities of the transport layer include the following:
Service-point addressing. Computers often run several programs at the same time.
For this reason, source-to-destination delivery means delivery not only from one
computer to the next but also from a specific process (running program) on one
computer to a specific process (running program) on the other. The transport layer
header must therefore include a type of address called a service-point address (or
port address). The network layer gets each packet to the correct computer; the
transport layer gets the entire message to the correct process on that computer.
43
The Transport Layer
Connection control. The transport layer can be either connectionless or connection
oriented. A connectionless transport layer treats each segment as an independent
packet and delivers it to the transport layer at the destination machine. A connection
oriented transport layer makes a connection with the transport layer at the
destination machine first before delivering the packets. After all the data are
transferred, the connection is terminated.
Flow control. Like the data link layer, the transport layer is responsible for flow
control. However, flow control at this layer is performed end to end rather than
across a single link.
Error control. Like the data link layer, the transport layer is responsible for error
control. However, error control at this layer is performed process-to-process rather
than across a single link. The sending transport layer makes sure that the entire
message arrives at the receiving transport layer without error (damage, loss, or
duplication).
44
The Session Layer
The session layer allows users on different machines to establish sessions between
them. Sessions offer various services, including dialog control (keeping track of
whose turn it is to transmit) and synchronization (check pointing long
transmissions to allow them to pick up from where they left off in the event of a
crash and subsequent recovery).
45
The Session Layer
Dialog control. The session layer allows two systems to enter into a dialog. It
allows the communication between two processes to take place in either half
duplex (one way at a time) or full-duplex (two ways at a time) mode.
Synchronization. The session layer allows a process to add checkpoints, or
synchronization points, to a stream of data. For example, if a system is sending a
file of 2000 pages, it is advisable to insert checkpoints after every 100 pages to
ensure that each 100-page unit is received and acknowledged independently. In
this case, if a crash happens during the transmission of page 523, the only pages
that need to be resent after system recovery are pages 501 to 600. Pages previous
to 501 need not be resent.
46
The Presentation Layer
Unlike the lower layers, which are mostly concerned with moving bits around, the
presentation layer is concerned with the syntax and semantics of the information
transmitted.
47
The Presentation Layer
Encryption. To carry sensitive information, a system must be able to ensure
privacy. Encryption means that the sender transforms the original information to
another form and sends the resulting message out over the network. Decryption
reverses the original process to transform the message back to its original form.
48
The Application Layer
49
The Layers
50
TCP/IP PROTOCOL SUITE
The layers in the TCP/IP protocol suite do not exactly match those in the OSI
model. The original TCP/IP protocol suite was defined as having four layers: host-
to-network, internet, transport, and application. However, when TCP/IP is
compared to OSI, we can say that the TCP/IP protocol suite is made of five layers:
physical, data link, network, transport, and application
51
TCP/IP PROTOCOL SUITE
52
Physical layer and Data Link layer
At the physical and data link layers, TCPIIP does not define any
specific protocol. It supports all the standard and proprietary
protocols. A network in a TCPIIP internetwork can be a local-area
network or a wide-area network.
53
Network layer
The internet layer is the linchpin that holds the whole architecture together. Its
job is to permit hosts to inject packets into any network and have them travel
independently to the destination (potentially on a different network). They may
even arrive in a completely different order than they were sent, in which case it is
the job of higher layers to rearrange them, if in-order delivery is desired.
The internet layer defines an official packet format and protocol called IP
(Internet Protocol), plus a companion protocol called ICMP (Internet Control
Message Protocol) that helps it function. The job of the internet layer is to deliver
IP packets where they are supposed to go. Packet routing is clearly a major issue
here, as is congestion (though IP has not proven effective at avoiding congestion).
54
Transport layer
The layer above the internet layer in the TCP/IP model is called the transport
layer. It is designed to allow peer entities on the source and destination hosts to
carry on a conversation, just as in the OSI transport layer.
Two end-to-end transport protocols have been defined here. The first one, TCP
(Transmission Control Protocol), is a reliable connection-oriented protocol that
allows a byte stream originating on one machine to be delivered without error on
any other machine in the internet. It segments the incoming byte stream into
discrete messages and passes each one on to the internet layer. At the destination,
the receiving TCP process reassembles the received messages into the output
stream. TCP also handles flow control to make sure a fast sender cannot swamp a
slow receiver with more messages than it can handle.
55
Transport layer Cont.
The second protocol in this layer, UDP (User Datagram Protocol), is unreliable,
connectionless protocols for applications that do not want TCP’s sequencing or
flow control and wish to provide their own. It is also widely used for one-shot,
client-server-type request-reply queries and applications in which prompt delivery
is more important than accurate delivery, such as transmitting speech or video.
56
Application layer Cont.
The TCP/IP model does not have session or presentation layers. No need for them
was perceived. Instead, applications simply include any session and presentation
functions that they require. Experience with the OSI model has proven this view
correct: these layers are of little use to most applications.
On top of the transport layer is the application layer. It contains all the higher-
level protocols. The early ones included virtual terminal (TELNET), file transfer
(FTP), and electronic mail (SMTP). Many other protocols have been added to these
over the years. Some important ones include the Domain Name System (DNS), for
mapping host names onto their network addresses, HTTP, the protocol for fetching
pages on the World Wide Web, and RTP, the protocol for delivering real-time media
such as voice or movies.
57
Connection-Oriented Versus Connectionless Service
Logical connections
Identical objects in the TCP/IP protocol suite
Packet
Multiplexing and demultiplexing
Internet protocol stack
• Bad timing.
• Bad technology.
• Bad implementations.
• Bad politics.
Network Standardization
The 802 working groups. The important ones are marked with *.
The ones marked with are hibernating. The one marked with †
gave up and disbanded itself.
Who’s Who in International Standards (2)
The 802 working groups. The important ones are marked with *.
The ones marked with are hibernating. The one marked with †
gave up and disbanded itself.
Baseband vs Broadband Transmission
Type of Signals
Uses digital signals Uses analog signals
Number of Signals
Sends one signal at a time Sends multiple signals simultaneously
Signal Range
Signals travel a long distance without much
Signals travel a short distance
attenuation
Transmission Type
Bidirectional Unidirectional
Multiplexing
Uses Time Division Multiplexing Uses Frequency Division Multiplexing
Examples
Cable TV, Wi-Fi, and Power Line
Ethernet is an example
communication are some examples