Professional Documents
Culture Documents
Connectivity
Corporate networks Internet (scalability) Links , Nodes and Clouds Circuit Switched: establishes the dedicated circuit across a sequence of links Packet Switched : store and forward Addressing Routing
4 users
frequency time
Key requirement for computer networks is efficiency (Packet switching is the choice) A node when connected can send message to any other node at network What if all nodes want to exchange messages at same time ANS : Multiplexing
statistical multiplexing
1.5 Mbs
Sequence of A & B packets does not have fixed pattern statistical multiplexing.
Presentation Session
Transport
Network Data link Physical
Transport: Break up data into chunks, send them down the protocol stack, receive chunks, put them in the right order, pass them up.
Session: Establish connections between different users and different hosts. Presentation: Handle syntax and semantics of the info, such as encoding, encrypting. Application: Protocols commonly needed by applications (cddb, http, ftp, telnet, etc).
Encapsulation
sender
data
Application
Presentation Session Transport Network
AH
PH
SH TH NH DH
Data link
Physical
data
BITS
DT
Application
Application
Presentation
Presentation
Transport
Transport
Network
Network
Network
Network
Data link
Data link
Data link
Data link
Phy sical
Phy sical
Phy sical
Phy sical
Transport
ICMP IGMP
TCP
UDP
Network
IP
ARP RARP
take data from app add addressing, reliability check info to form datagram send datagram to peer wait for peer to ack receipt analogy: post office
data application transport transport network link physical application transport network link physical
ack data network link physical data application transport transport network link physical
message
segment datagram frame
Key requirement for computer networks is efficiency (Packet switching is the choice) A node when connected can send message to any other node at network What if all nodes want to exchange messages at same time ANS : Multiplexing
(b) 1
We can talk about bandwidth at the physical level, but we can also talk about logical process-to-process bandwidth.
Latency: time taken for a message to travel from one end of the network to the other.
Again, we can consider a single-link or an end-to-end channel.
Latency
Latency Propagation Transmit Queue Propagation Distance / Speed of light
Delay x Bandwidth
Delay
Bandwidth
This product is analogous to the volume of a pipe or the number of bits it holds. It corresponds to how many bits the sender must transmit before the first bit arrives at the receiver.
Delay may be thought of as one-way latency or round-trip time (RTT) depending on the context.
Throughput
Jitter
Interpacket gap 4 Packet source 3 2 1 4 3 2 1 Packet sink
Network
Jitter is a variation (somewhat random) of the latency from packet to packet. Jitter is most often observed when packets traverse multiple hops from source to destination.
Cache
Network adaptor
(To network)
Spectrum
f(Hz) 10
10
10
10
10
10
10
10
12
10
14
10 UV
16
10
18
10
20
10
22
10
24
Radio
Microwav e
Inf rared
X ray
Gamma ray
10
10
10
10
10
10
10
10
10
11
10
12
10
13
10
14
10
15
10
16
Fiber optics
NRZ: Encode 0s and 1s using two different levels. Problem 1: The signal is synchronous; that is, theres a reference clock marking the length of each bit.
Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0
NRZ
Clock recovery depends on transitions. To keep clocks in sync, the more transitions the better; too few and clocks will drift. NRZI: Encode 1s using transitions; 0s keep current level. Manchester: low to high signals a 0, high to low signals a 1.
Summary
NRZ: Clock recovery is problem. NRZI: 0s have no transitions and thus they wont help with clock recovery. Manchester: Doubles the rate of transitions making clock recovery easier, on the other hand, it doubles the rate of transitions. Since there are 2 transitions for every single bit, the efficiency (information per unit of time) drops by 50%.
4B/5B Encoding
Basic idea: Insert extra bits into the stream to break up long sequences of 0s and 1s. Doesnt allow more than one leading 0 and no more than two trailing 0s.
4 bits
5 bits
4B/5B Encoding
4-bit Data Symbol 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 5-bit Code 11110 01001 10100 10101 01010 01011 01110 01111 10010 10011 10110 10111
24 16 25 32
16 codes are left over and some can be used for purposes other than encoding data. For instance: 11111 = idle line
1100
1101 1110 1111
11010
11011 11100 11101
Framing
Bits Node A Adaptor Adaptor Node B
Frames
Problem description: A sequence of bits is sent from node A to node B over a point-to-point link. The network adaptor on node B must recognize exactly what set of bits constitutes a frame, that is, it must determine where the frame begins and ends.
Protocol Headers
Data Link Header IP Header TCP Header
Trailer
Protocol
0x0800 Internet Protocol, Version 4 (IPv4) 0x0806 Address Resolution Protocol (ARP) 0x8100 IEEE 802.1Q-tagged frame 0x86DD Internet Protocol, Version 6 (IPv6) 0x8847 MPLS unicast 0x8848 MPLS multicast