Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 26

Bulk RJ45 Crimpable Connectors for CAT-6

RJ-45 Crimping tool


Total time taken to send is,
Ttotal = Tt(data) + Tp + Tq + Tprocess + Tt(ack) + Tp
( since, Tq and Tprocess = 0)
Ttotal = Tt(data) + 2Tp + Tt(ack)
Ttotal = Tt(data) + 2Tp
(when Tt(ack) is negligible)
Efficiency
= useful time / total cycle time
= Tt / (Tt+2Tp)
= 1 / (1+2a) [a = Tp/Tt]
Output

Enter window size: 3


Enter number of frames to transmit: 5
Enter 5 frames: 12 5 89 4 6
With sliding window protocol the frames will be sent in the following manner (assuming no
corruption of frames)
After sending 3 frames at each stage sender waits for acknowledgement sent by the receiver
12 5 89
Acknowledgement of above frames sent is received by sender
46
Acknowledgement of above frames sent is received by sender
The figure shows the sequence of system calls for a connectionless communication. No
connection is established prior to data transfer. The recvfrom call returns when a Complete
UDP data gram has been received.
Simple Echo Client Server Using UDP:

stdin fgets Send to recvfrom


UDP Client UDP
Server
stdout fput recvfromsendto
Sample Output:
Sample Output:
Output:

[root@localhost~]#rpcgen -C square.x
[root@localhost~]#cc -c client.c -o client.o
[root@localhost~]#cc -c square_clnt.c -o square_clnt.o
[root@localhost~]#cc -c square_xdr.c -o square.xdr.o
[root@localhost~]#cc -o client client.o square_clnt.o square_xdr.o
[root@localhost~]#cc -c client.c server.c square_xdr.c
[root@localhost~]#cc -c server.c -o server.o
[root@localhost~]#cc -c square_svc.c -o square_svc.o
[root@localhost~]#cc -o server server.o square_svc.o square_xdr.o
[root@localhost~]#./server &
[1] 2264
[root@localhost~]#./client localhost 4
result is: 16
Sample Output:
Sample Output:
Sample Output:
Sample Output:

Sample Output:

Hardware: x86 Family 6 Model 23 Stepping 10 AT/AT COMPATIBLE

– Software: Windows 2000 Version 5.1 (Build 2600 Multiprocessor

Free)
Ex-14
Examples:

To display the ARP cache tables for all interfaces use following command

arp -a

To display the ARP cache table for the interface that is assigned the IP address
192.168.42.171
Packet Tracer’s drag-and-drop interface allows students to configure and validate
system architecture

You might also like