CE257 Data Communication and
Networking
Presented by: Dr. Ritesh Patel
CE Dept, CSPIT, CHARUSAT
[email protected] 1
STUDENTS WILL LEARN
Propagation Delay
Different ways of transmission
Type of Communication
Simplex, Half and full duplex
2
3
4
PARAMETERS TO DECIDE ROUTE
Distance
Time
Type of road
Cost (Toll Tax)
Type of Vehicle
5
WAY OF TRANSMITTING DATA
6
WAY OF TRANSMITTING DATA
wire
7
WAY OF TRANSMITTING DATA
wireless
8
WAY OF TRANSMITTING DATA
fiber
9
SENDING (PARCEL/PERSON) DATA FROM A-B
MAPPING WITH RESPECT TO SIGNALS
11
SIGNAL PROPAGATION DELAY
Let PD=X
12
SIGNAL PROPAGATION DELAY
PD=X+Y
PD=X+2Y
PD=X+3Y
13
SIGNAL PROPAGATION DELAY
Ref:https://www.open.edu/openlearn/science-maths-technology
14
TYPES OF TRANSMISSION
15
TYPE OF WAY
16
MAPPING
One way, one track: One Wire, data carries in
one direction →
Two way , one track: Two Wire, data carries in
both the direction at the same time →
One way, multiple track: multiple wire carries
data in same direction→→
Two way, multiple track: multiple wire carries
data in both the direction →→
One wire=one Channel
17
TYPE OF TRANSMISSION
18
SIMPLEX COMMUNICATION
19
FULL DUPLEX COMMUNICATION
20
HALF DUPLEX
21
SUMMARY OF TYPE OF COMMUNICATIONS
Simplex
Full Duplex
Half Duplex
22
ENSURES
How one can ensure, standing at Ahmedabad
station, that all passengers reach safely at
baroda?
23
CONCLUSION
Propagation Delay
Delay depends of distance
Different ways of transmission
Wire, Wireless and Fiber
Type of Communication
Simplex, Half and full duplex
Reliability can be achieved using back message
24
Thank you
25
CE257 Data Communication and
Networking
Presented by: Dr. Ritesh Patel
CE Dept, CSPIT, CHARUSAT
[email protected] 26
STUDENTS WILL LEARN
Communication Models form programmers
point of view
27
NETWORK TOPOLOGY
Characteristic of Network
Two Computers
Connected with Cable
Wires ??
Topology
Point-to-point
Distance between two
machine
<1000 mtr: LAN
<40,000 and >1000
mtr: MAN
>40,000: WAN
Distance is 5 Mtr
What kind of network?
Names of the machine.
PC0 and PC1
28
29
30
WHAT HAPPENS WHEN DATA IS RECEIVED BY NIC
Graphics Area
OS Area
Main()
{ Rec_PHY(Data) }
101010..
User Area
TCP/IP Protocol Stack
Rec_App Send_App 101010..
Rec_TP Send_TP
Rec_NW Send_NW
Rec_PHY Send_PHY
31
WHAT HAPPENS WHEN DATA IS RECEIVED BY NIC
TCP/IP Protocol Stack
Rec_App Send_App Rec_PHY(DATA)
{
Struct Header=Data;
Rec_TP Send_TP Char DATA-phy[]=extract(DATA);
<<Operations…using header….>>
Rec_NW Send_NW
If(error)
{ Printf(“error at Phy Layer”); exit(0);}
Rec_PHY Send_PHY Rec_NW(DATA-phy);
}
32
WHAT HAPPENS WHEN DATA IS RECEIVED BY NIC
TCP/IP Protocol Stack
Rec_App Send_App Rec_NW(DATA)
{
Struct Header=Data;
Rec_TP Send_TP Char DATA-nw[]=extract(DATA);
<<Operations…using header….>>
Rec_NW Send_NW
If(error)
{ Printf(“error at NW Layer”); exit(0);}
Rec_PHY Send_PHY Rec_TP(DATA-nw);
}
33
WHAT HAPPENS WHEN DATA IS RECEIVED BY NIC
TCP/IP Protocol Stack
Rec_App Send_App Rec_TP(DATA)
{
Struct Header=Data;
Rec_TP Send_TP Char DATA-tp[]=extract(DATA);
<<Operations…using header….>>
Rec_NW Send_NW
If(error)
{ Printf(“error at TR Layer”); exit(0);}
Rec_PHY Send_PHY Rec_App(DATA-tp);
}
34
WHAT HAPPENS WHEN DATA IS RECEIVED BY NIC
Graphics Area
OS AreaBrowser
Main()
{ Rec_PHY(Data) }
101010..
User Area
TCP/IP Protocol Stack
Rec_App Send_App 101010..
Rec_TP Send_TP
Rec_NW Send_NW
Rec_PHY Send_PHY
35
WHAT HAPPENS WHEN DATA IS SENT
TCP/IP Protocol Stack
Rec_App Send_App Send_TP(DATA-app)
{
Struct Header;
Rec_TP Send_TP Char DATA;
<<Prepare…header….>>
Data=strcat(Header, DATA-app);
Rec_NW Send_NW
If(error)
{ Printf(“error at TR Layer”); exit(0);}
Rec_PHY Send_PHY Send_NW(DATA);
}
36
ACTUAL PROGRAMMING SCENARIO
Application Layer()
{ Rec_App() {…………}
Send_App() {…………} }
Transport Layer()
{Rec_TP() {…………}
Send_TP() {…………} }
Network Layer()
{ Rec_NW() {…………}
Send_NW() {…………} }
Physical Layer()
{ Rec_PHY() {…………}
Send_PHY() {…………} }
37
Thank you
38