0% found this document useful (0 votes)
23 views28 pages

NetworkProgramming 2 2

past question

Uploaded by

ujjwalbhujel333
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
23 views28 pages

NetworkProgramming 2 2

past question

Uploaded by

ujjwalbhujel333
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 28
ae ee Semester — Fall volt Bachelor Year 2012 ove mmc: BE Full M pf rilnnes a A larks: 100 vee Network Programming Pass Marks: 45 ime + Shrs, sidates are required (0 give their answers in their Cand . * spre able, oo : she figures in the margin indicate full marks, he} - Anempt all the questions. own Words as far » Explain the role of protacol in communication? List out the some of 7 the Communication protocol you know. py) Explain the SPX protocol along with ils frame format, 8 a) Explain role of Ip and Port number in network programming? Write § syntax to convert the ip to network byte order. b) Why socket are called endpoint? Explain value result argument with 7 example. ) Explain descriptor passing and its importance in Unix network 8 programming. ) Explain how I/O multiplexing model make data available for you. 7 a) List out the address family that we have in windows .socket 7 APLExplain sockaddr_in Structure elements. ) Why we use WSAStartup ( ) and WSACleanup ( ) function in 8 windows network Programming ‘) Explain how you will communicate between, UNIX and windows 8 using socket and List out the call that is need for communication : ») What is importance of DLL in windows? Explain Winsock API and 7 ils importance, a aia Structure of ECB used by IPX/SPX. ; ; fi Me a function that open and close the socket in IPX/SPX network . Programming, ile Short notes on any two: ass 0) Socket (5 : hy WSAGetL as Remote Login sror () a) b) a) by b) ay hy POKHARA UNIVERSITy es Be Semester: Fall Year 52913 prow Nework Programming, Fu I 1 Maas i Time» Shr, Candidates ave required (o give their answer's in their own wordls as fur as practicable. The figures in the margin indicate full marks, Attempt all (he questions. Why protocol is necessary while exchanging data dynamically between two process with the help of suitable example. Compare & contrast between SNA and OSI model with suitable diagram. Why socket are called end point? Give syntax for creating end point and explain the parameter passed on to create different protocol end point. 7 What is File Descriptor? Explain the mechanism of passing file descriptor in UNIX Socket Programming. Write down the different models of I/O. Explain /O multiplexing with the help of select system calls. Explain struct sockaddr_in, Write down network byte order function. Niscuss the role of DDL file in winsock programming. Write the name of major § windows network dependent DLL files. OR hat do you mean by Intemet Domain Socket? Explain address structure WI we of Internet domain, i Me syntax for sending and receiving data over DGRAM socket " Case of Winsock Pr ‘ogramming and explain different arguments an Parameters used, Explai i ETP wil ine “plain the difference between FTP and TFTP with appropriat Mples, xplai i Pia the role and functions of fet! () and ioctl ()- 9 al are . i ransfer are the various “system call pairs” used in data transfer? 6. a) Compare IPX and SPX according to their frame format. b) Explain the closing and opening routine for IPX. Write short notes on; (Any two) : a) Novel Netware b) Windows extension socket API. . c) Port. w a) Briefly explain the various protocols involv FPOKHARA UNIVERSiTy Me ” Level: Bachelor Semester; Spring Programme: BE : Year 2013 Course: Network Programming Full Marks: "Pass Marke re Time Shrs, Candidates are required to give their answers in their own words as practicable, Is as far The figures in the margin indicate full marks, Attempt all the questions, ed in application layer of TCRIP. .b) List out some of the interesting features a) Explain how TCP client server establ with the help of various system calls, b) What do you mean by value result ar; argument with suitable syntax. a) Explain the use of Select example Provided by Novel Netware. ish and terminate connection gument? Explain value result function with suitable programming 5) Briefly explain the data structures to represent an open file in UNIX system with suitable diagram a) Explain Windows Socket architecture with the help of figure. b) How API are implemented in Windows Socket? Explain why we used WSACleanup () function despite of closesocket (). 4) Explain the Winsock function that we use for data transmission and Connection termination, b) Briefly explain the types of Novell Netware DOS/Window driver and importance of the ECB. , 4) Draw the timeline diagram of socket system eas for eonneston less Protocols jn Novell Netware, ‘ 4) Explain the role of IPX and SPX data structure in Network . Programming, 2 Write short notes ont (Any two) fT , Uucp Data Manipulation Functions Remote Login, POKHARA UNIVERSITY 1, Bachelor Semester: Fall Year: 2014 eve ymme: BE : Full Marks: 100 Progr. Network programming Pass Marks: 45 om Time 3hrs, Candidates are required lo give their answers in their own words as far as practicable. The figures in the margin indicate full marks. Attempt all the questions, Explain the concept of IBM-APPN Networking nodes and Services with suitable diagram, What do you mean by network programming and socket 7 programming? When do you prefer the stream and datagram protocols? What do you mean by Berkley Socket? Explain the sockaddr_in 5 structure elements, Write a program to create concurrent streaming server using Berkeley 10 Sockets. Explain different functions that are used for connectionless client 8 Server communication. What do you mean by VO Multiplexing? When do you need VO 10 multiplexing in programming? Explain the function that we use for VO. thultiplexing. Briefly describe the Windows Blocking, Non-blocking and 7 Asynchronous VO. low does AFD.SYS file handle buffer management in Windows 8 Network Application? Write syntax for sendi Case of Winsock Parameters used, ng and receiving data over DGRAM socket in 7 Programming and Explain different arguments and - at are the functions of Winsock API and DLL? Briefly explain'the 8 "Sock kernel archit Explai | Eoin the datagram service provided -by IPX. Explain the ’atlon and termination process in IPX. lecture, “b) Compare IPX and SPX Protocol with their frame formats, 7, Write short notes on: (Any two) . a) FTPand TFTP. b) Shutdown Vs Closecket function c) SPX functions. 5 a) i a) 5 Wr a) 7 9 POKHARA UNIVERSITY vel: Bachelor Semester: Spring Year £2014 pram Me: BE . Full Marks: 190 es Network Programming Pass Marks: 45 a Time +: Shrs. Candidates are required to give their answers in their own words as far as practicable. m The figures in the margin indicate full marks, fall th uestions. . . Attempt all the q What do you mean by process to process communication? Explain the need of TCP/IP protocol in network programming. Explain the basic concept related to SNA (System Network Architecture) nodes, terminals and its services. How message is exchange using UNIX domain protocol? Write the syntax to group Socket, end point with UNIX address. Write small piece of code to make socket to Non blocking mode and explain how Non Blocking I/O differs from the Blocking I/O model, How do you specify different socket options in internet sockets? Explain the need of SO_KEEPALIVE and SO_ LINGER socket Options. Define socket descriptor. Differentiate between socket descriptor return from socket () and accept ( ) system call along with its syntax. Explain Windows Socket architecture with suitable diagram along with its Helpers DLLs and Interface implemented. Compare ioctlsocket( ) and fentl() in windows. . at are the advantages of using windows asynchronous 1/0? Write Plece of code for asynchronously receiving and writing data to and from Network, . meee you mean by I/O Multiplexing? How is overlapped I/O _ Implemented in winsock? Discuss the Structures What is rite ttre. Non MA on: (Any 10) : R login X - ‘alue Result Argument. and functioning of IPX Protocol. ‘ovel Netware? Explain the role of ECB with necessary » a) b) . a) ) I. a) - a ») by POKHARA UNIVERSITY . Bachelor Semester: Fall Year 22015 Level ne: BE . Full Marks: 100 roe? . Network Programming, Pass Marks: 45 Course: Time : 3hrs, Candidates are required to give their answers in their own-words as far jan ‘ as practicable. The figures in the margin indicate full marks. Attempt all the questions. What is Network Programming? What is the difference between concurrent and iterative server? Compare IP, UDP and TCP protocol features. What do you understand by system calls used with sockets? Briefly describe any two of them. Write a TCP socket program to implement an Echo server/Echo client. 5 5 OR Discuss the following scenario of server operations. I Crashing of server host IL Crashing and rebooting of server host Compare Blocking 1/O, Nan-blocking /O, Signal Driven I/O and Asynchronous 1/O. . Explain the function of fnct!and ioctl Write a program to determine host byte order in C. What is the similarity and difference between connect () and bind () function? Explain with function signature. Briefly describe Blocking, Non-blocking and Overlapped I/O in Winsock Programming, : What is a file descriptor? Explain the mechanism of passing file oer in Unix socket programming? ; , Progra are the steps to create server program in Winsock Compare in, Write a complete server program to illustrate. © IPX and SPX protocol with their frame format .. Write short notes on: (Any two) a) Ping Program b) Application of Reserve Ports c) Socket function (in UXIX) 5 POKHARA UNIVERSITY Level: Bachelor Semester: Spring : Year. Programme: BE , £2015 Course: Network Programming (New) Pon Minis 100 2 atks: 45 ime: hrs, Candidates are required to give their answers in theiy as practicable. eir own words as far The figures in the margin indicate full marks, Attempt all the questions, a) Discuss about the different ways for making Remote Procedure Call, 7 Provide an overview of TCP state transition with supporting diagrams wherever necessary, ‘ 8 a) Discuss about the different constituents of the UNIX Socket Address 8 Structures. b) How is the Socket address structure passed from process to kernel. 7 Explain a) .How do you implement a Concurrent Servers. Provide a stepwise 7 overview, >). Compare and contrast synchronous and asynchronous /O,modes for UNIX programming, : a) Why are the getsockopt and setsockopt used. Provide a comparison 8 with the help of relevant 5) Compare eo contrast the UNIX domain socket with the INTERNET ; domain socket, . ) Discuss about the Winsock architecture. Point out the necessity of the + winsock DLL, . 7 ®) Differentiate between reev and WSARecv. Explain with their syatex and parameters, i 9 How do you implement stream communication in Winsock. Describe 1 ach steps with the help of relevant APIs . 5 Tovide a code et for Sending and Receiving Data over 8 Wiig tion using Winsock Programming. 2x5 © short notes on: (Any two) a) Socket’System Calls . b) WSAStartup c) Netsat d) ifconfig vs ipconfig . a) me as ££ fs as = & b a b) 9 POKHARA UNIVERSITY Semester: Fall Bachelor Year 2 Level: “BE - 12016 me: 3 Full Marks: rere Network Programming, Pass Mate s Time : Shrs, Candidates are required to give their answers in their own words as far “s practicable. a, | The figures inthe margin indicate full marks: Attempt all the questions. “protocol js needed for network communication.” Justify with client and server as two communicating parties. Explain TCP state transition with a supporting diagram. Compare UNIX domain socket address structure and Internet domain : socket address structure with necessary codes. What-is a concurrent server? Explain the use of fork() function in developing a concurrent server? Compare TCP and UDP sockets on the basis of the socket call and /O function. : List /O models in UNIX system. And, elaborate any three of them. Discuss why we need syslog. List and explain various syslog priority levels, Elucidate the mechanism of passing the file descriptor in the UNIX System. Illustrate Windows Socket architecture by drawing a suitable diagram along with helper DLLs and their interfaces. What is an overlapped /O? Explain how wSASocket() and WSASend() can be used to implement asynchronous /O. . Clarify the role of Startup() in Winsock programming. Also explain Send() and recv() functions. Writ Describe the use of connect() function with non-blocking socket. short not . Ping les on: (Any two) Remote log} TRIP login poKHARA UNIVERSITY ester: Fall Year 22017 pelot Sem Full Marks: 100 evel! Be BE in Pass Marks: 45 pas work programming : Time : Shes. cous quired t0 give their answers in their own words as far 7 are re : oni pte the margin indicate full marks. fig ' auerpt all the questions. Fi rt level rotocols. will you usé to exchange control 7 Which tans rewind, forward; etc.) and real-time « tmation (play, pause, 7 i ideo data between client and server in the movie streaming audi0-' lication. Justify your answers. 1) Poin TCP state transition with a supporting diagram. - -8 1 2) What are the different socket structures used in Unix system to make « 8 system calls such as connect and bind independent of IP versions. t) Discuss the use of fork function to develop a concurrent server with 7 the help of pseudo-code? What is /O multiplexing? Explain the use of select function in the 7 context of /O multiplexing in detail. 4) Write a program to create a TCP echo server. 8 What are the socket options? Which functions are used to set and get a 8 value of socket options? Explain them in detail. ») i . B 7 , Ly at * mechanism of passing file descriptor in the Unix System. 7 a ¢ Winsock architecture. What are the different Winsock 8 ) ae database functions? tig eo input wa between tecv and WSARecv based on their uses, © 7 8) How dg vou geumeants and return values. i ®ach step yi ioe stream communication in Winsock? Describe 8 Enein vith the nae of relevant APIs, | yi SUCh thatthe P Of pseudo-code the use of accept with select 7 ite gh accept funct > ; pon tt Notes on: ction doesn’t block. 6) eta : (Any two) i fey 2x5 Tey Pipcontig 1 ee fs 2£& = ow pr Write ) pOKHARA UNIVERSE fr Semester: Spring Year : 2017 . Bachelo! Full Marks: 100 pever- ne: BE i Pass Marks: 45 nme gramming rks: sae network Prog Time —: 3hrs, i give their answers in their own words as far ihe margin indicate full marks. me figures a : item all the questions. Explain relationship between Socket, Port and IP with help of outline xp an network programming model with help of suitable diagram. What do you mean by byte manipulation function? List out same for the ANSIC with suitable syntax and parameter supplied. What is UNIX domain socket? Explain how message is exchange between UNIX domains Socket with help of suitable code. How Blocking I/O model ,TCP and UDP socket read and write message toand from The Kernel Buffer with the help Of suitable piece of code. What are advantages of UNIX domain Protocol? Explain with the help of code how fentl() function set blocking socket to non-blocking socket. What is Socket Descriptor? Under what condition descriptor is said to be ready? Why. log management is important in programming. Explain how UNIX provide log management facility to network based application. What are the advancement that is done by WINSOCK over BSD socket. Dis 5 0 how you use select in conjunction with accept call in Winsock. Sendo OeKetOWSAAccept(), WSAConnect(), WSARECV),WSA hat is oy roaming ee VO socket? Explain its advantages in windows Short no 7 Talent eS Om: (Any two) Mote log; Detstat gin 8 oo eaters se OO) POKHARA UNIVERSITY Level! Bachelor Semester: Fal] Veer Ov ramme: BE 220 programm k Programmin, Full Marks: | a Course: Network Prog iB Pass Marks io ‘ 45 4 —_— 7 ired to give their ans) H ndidates are require ‘Wers in their oy, Crpracticable N Words as fay ‘The figures in the margin indicate full marks, = ) . a) ») ) 2S s ) ) 5) Attempt all the questions. Justify TCP and IP is needed for exchangin, in ee Paradigm. Bing message between process TCP Client/Server socket are in ESTABLISHED sta itch call the close () function. Explain the state of TCP Clienisne et after close call is issued, What are the different types of communication address used by Socket? Explain how you use this code with help of suitable code. Explain Generic socket address structure with help of code along with its importance. List out and Explain TCP server socket listen () function along with its completed and Pending queue with suitable outline code. Give your reason why we required to use getsockname () and getpeername () Functions. Write simple program to display source ip,port and destination ip ,port using the TCP Server Socket. Compare ioctl() and fentl() function along with their code used. Explain widows socket architecture with help of suitable diagram along with helper DLLs and their interfaces. Explain the types of DLLs File in windows? Explain WSAStartup 0, WSACleanup () Function in windows with suitable out line code. ‘h Explain with help of code how select can be used conjunction wi accept call, ' end and Outline the simple UDP windows olient program which can set . Teceive the data without establishing the connection with the server. Tite short notes on; (Any two) 2) Compare netstat and telnet Ping(icmp request and reply) °) ©) Remote Login POKHARA UNIVERSITY 5 achelor Semester: Spring Year :2018 Le ramme! BE : Full Marks: 100 Pose Network Programming Pass Marks: 45 Time : Shrs, candidates are required to give their answers in their own words ay far at s as practicable. ‘The figures in the margin indicate full marks. Attempt all the questions. Compare TCP, UDP and SCTP. Explain 3-way and 4-way handshake for connection establishment and connection termination mechanisms with supporting diagrams. Explain TCP state transition diagram with suitable diagram. What do you mean by socket descriptor? What are the different arguments /parameters for socket () function call in Barkley socket API? What is byte ordering? Explain the following function: bzero(),bemp(), bcopy(),inet_aton(),inet_addr(),inet_ntoa(), inet_pton() and inet_ntop(). a) What is a connection queue? What are the possible circumstances that might cause connect () function to return an error? o b) What is a concurrent server? Explain how fork ( ) identifies child anc parent process with suitable code. 2) Compare Synchronous I/O Multiplexing with Nonblocking I/O mode. What are the different functions used to implement these /O models in Berkeley socket API? 5) Write a simple UDP server program using Berkeley socket API? % What are the major differences between Berkeley socket API and Winsock API? Explain windows Socket Architecture with suitable diagram. 3) a ; ! an different 1/O handling modes in windows socket API? Which ae from Winsock API are used to provide each of these V/O Co, ig modes? What parameters do they expect? Apreete how error handling facility in implemented in Berkeley socket and Windows Socket API? 1 te 7. Write short notes on (Any Two): a) Network Diagnostic Tools b). TFTP c) IP Packet Format POKHARA UNIVERSITY vel: Bachelor Semester: Fall Year evel: © es BE i ramme: : Full Marks: } n 100 eee Network Programming . Pass Mares. Time + Shrs, Candidates are required to give their answers in theip own words as far as practicable. The figures in the margin indicate full marks, Attempt all the questions. a) What is network programming? Explain different communication protocols used in networking. Explain the client/server mode of communication. Also draw the TCP state transition diagram. a) Why do we need byte ordering in network programming? Differentiate litle endian and big endian. Explain different address conversion function with prototype and return type of respective functions. What is socket API? Explain socket address structure for IPv4 and IPv6. Write outlines code to create listen descriptor and connected descriptor in case of TCP and explain their importance in program. b) What is input/output model? Explain asynchronous model. a) What are the major differences of wait () and waitpid ()? Explain the mechanism to handle multiple client in Unix network programing with suitable sample code (consider simple client server chat) 4) Compare close() function and shutdown() function with outline code. 7 Explain windows SOCKE library along with suitable diagram. What are the differences between Unix socket and windows socket? agin the Significance of setup and cleanup Sere Pea 2) What with function prototype and required structure ° aan that su 'S overlapped 10? Explain different winsoc! 4 ports synchronous and asynchronous 10. ; Pare static and dynamic link library in case of windows. Short notes on: (Any two) elnet and tlogin ifconfig, 9) epg Peontig b a) Write T 2x5 POKHARA UNIVERSITY Level: Bachelor Semester: Spring Year 99 “BE R 2019 Programme: B ; ull Marks: Course: Network Programming Pass Marker at Time + Shes, Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks, Attempt all the questions. 1. a)Define Computer network and network Programming? Explain the various states used in TCP state transition diagram with supporting figure, b) What do you mean by Active Network Model? Compare peer to peer and Client/Server based Model on the basis of. communication, cost and b) What is socket API? Explain socket address structure for IPv4 and IPv6. a) What is YO model? Compare Blocking and nonblocking 1/O model with diagram, b) What is the purpose of bind () function? What will be the outcomes if we do not specify IP address, port, both, or neither. 3) What is file descriptor passing? Explain advantages of UNIX Domain Protocol, 5) What is daemon Process’ a) Explain WSAData »WS, help of suitable code, Dd ‘ A d eet load time dynamic linking and run time dynamic linking. 6 4 What are a architecture. Explain WSAAsyncSelect() function. Explain the erences between Unix socket and windows socket? Socket with feemieance of setup and cleanup functions in windows 5) What ig ove unction prototype and required structure definition? crlapped socket? Compare overlapped socket system call ket System call along with the help of Outline code. security. y a) What is value result argument? Compare bzero () with memset (). ? Explain how to demonize a process. ACleanUP, WSAStartup and closesocket() with With blocking soc Write short notes on: (Any two) a) rlogin b) ipconfig/ifconfig and netstat ¢) Concurrent server in unix POKHARA UNIVERSITY el; Bachelor Semester:Fal Year 2020 feves: 5 2 ‘gramme: . Full Marks: 100. Pore Network Programming Pass Marks: 45 ‘ime : 3hrs, Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks. Attempt all the questions. a) Which function is responsible for sendin; ig SYN segment during TCP connection establishment phase? Illustrat te the TCP 3-way and TCP 4- way handshake mechanism with suitable state transition diagram, b) Compare TCP and UDP on the basis of frame format. . a) Explain the statement: fork () is called once and it returns twice. How can you identify parent and child process after fork call? What will happened when close () is called in Ti CP socket during the implementation of concurrent server? Ss What do you mean by descriptor passing? Explain how we pass socket between user process and kemel. What is the purpose of bind () function? What will be the outcomes if we do not specify IP address, port, both, or neither in bind ( function. Explain non-blocking I/O model with suitable diagram. Which fu nction is used to convert socket into non-blocking mode? Write Syntax of the function. 3) ee Can a server handle multiple clients without using fork function? nite such a server application using select function (1/0 Multipluxing), What is syslogd? Write simple program to set and get the KEEPALIVE on socket, *) Differentiate windows socket with Unix socket. Explain Winsock architecture, Explain WSAAsyncSelect() function. , a Why WSAGetLasterror) function is requiied in _ programming? Explain the significance of setup and clea re ‘ocket with function prototype and required si gs ™ windows 5 definition? ‘ference between synchronous IO and Asynchronous 10? a) What is the di between recv() and WSARecv() based on their uses, 2 Differentiate input/output arguments and return values. b) Write simple TCP windows server to send and receive message. Write short notes on: (Any two) a) Netstat and ping b) rlogin c) Unix socket Level: Ba m; BEIT o: Network Programming Program Courts can rhe figures in th jules are required to answer in thelr own words as far as practicable males 7 POKHARA UNIVERSITY Fi Semester ~ Sprit chelor "~ Spring Year: 2029 Full Marks: 79 Pass Marks: 3) 5 he margin indicate full marks. Attempt all the questions. Qn. Seetion- A: (5x10=50) Explain relationship between TCP 3 way handshake and 4 way termination in network programming with suitable diagram. Briefly describe CLOSED, LISTEN, SYN_SENT, SYN_RECVD, ESTABLISHED based on socket implementation sp client/server architecture for using TCP protocol, Explain the role of IP, PORT and PROTOCOL (TCP/UDP/P) in network based program. Explain value result argument with suitable diagram along with socket functions. What do you mean by socket descriptor? Explain cach arguments used by socket, listen and accept, close call of socket system calls in details. OR What do you mean by passing descriptor? Explain ioctl, font! and sylog with suitable outline code a What is use of DLL in Winsock?. Explain relationship between WSAStartup, WSACleanUp, WSAGetLastError, WSA SetLastError() in winsock along with parameter required, What do you mean by Non-Blocking Socket in windows?. Explain select function with suitable piece of outline code Section - B: (1x20=20) Nepal Government under their digital governance wants to established transaction Processing system through Nepal Clearing House (NCHL) as central Si for aging Debit/Credit card system. Government has hired Mr A as consultant for building the application to process application based on eee uae oF which will be handling transaction through the network. For your ease be the hints for you to design the system. Part-I: Central ‘itch(UNIX System) 1. Handle at least one ATM 2. Use streaming data control, guarantee for data delivery. n0 duplication, 3. Should able to send and receive $00 bytes of data Parl-2; Automated Teller Machine (A'TM Windows System). '. Request Service From Central Switch no data boundary, 4 Time: as 20 2. Use same communication protocol use by switching system 3. Should able to send and receive 300 bytes of data Design the Network based application for NCHL as suggested by above point. KHARA UNIVERSITY mester: Fall Year 22021 ielor oa Full Marks: 100 3 ming Pass Marks: 45 re vork program Time : 3hrs. or uired to give their answers in their own words as far req 5 jdotes O° 0 lcable- : in indi ul marks. pf zs in the margin indicate fu ia all: the. questions. dpe the application of Network Programming? Describe different Describe its iD TCP state transition diagram. st mpare different communication protocols based on fragmentation, : ony, flow control and sequencing. OR Describe different internet layer protocols in detail. 2) Dots getaddrinfo() is blocking or non-blocking? List out the different, system call used to. create TCP and UDP client server on the basis of blocking and non-blocking in nature. Also explain them. iii very short. ') What does it. means forkQ is called once but it returns twice? What are the major differences between wait () and waitpid()? Explain the Possible option values that you can: supply in waitpid( system call. ) oe the use-of byte ordering in network programming? Describe at ast 5 byte manipulation functions with their uses. 4) What i syet logd()? What is the technique for logging messages from a daemon process? Explain with sample-code, . 2 What wi Situation Happened if you call bind() in tep client program? Explain the reigin cae relevant example code where you can use send() and ie ang ‘i Socket and: Sendto() and reevfrom() intop socket. . utli we Berkeley gpcune TCP server that can handle multiple clients ato during genet, Nthout doing fork() system call. Consider the been, What ta exchange in TCP socket, one site call close() wa reise el happened to data in network? Is it still possible to "28 perform igo oid Packet after calling close() furiction? What are the 7 ww ou mean by static and dynamic link libraries? p, 7 d in. winsosk program. escribe 7 What do (linvx) socket implementation with th. ie 8 a) different DLLs use Differentiate winsock and unix b) help of respective functions. asynchronous JO is preferred than. synchronous 10? ay In which situations Explain different Asynchrondus LO functions in Winsock programmi ; ets ae ing. b) Explain select() function.in conjunction with accept() call in ee Write short notes on: (Any two) ‘ 5 ® : a) Telnet and Remote Login b) Ping c) File descriptor and its importance . a) » . a) b, . a) ) . a) b) . a) POKHARA U NIVERSITYy revel Bachelor Semester: Spring, Year 22021 programme: ; Full Marks: 100 Course: Network Programming Pass Marks Pe Time : hrs, Candidates are required to give their answers in their own words as far as practicable, The figures in the margin indicate full marks, Attempt all the questions, What is maximum segment lifetime (MSL)? Explain each states in TCP state transition along with suitable diagram. : Describe TCP, UDP and SCTP. What do you mean by Socket address structure? Explain generic and internet socket address structure with suitable code. Describe different socket system calls used in TCP server with outline code. Does getaddrinfo() is blocking or non-blocking? List out the different system call used to create TCP and UDP client server on the basis of blocking and non-blocking in nature. Also explain them in very short. What does it means forkQ) is called once but it returns twice? What are the major differences between wait () and waitpid()? Explain the Possible option values that you can supply in waitpid() system call. Explain VO multiplexing and Non-Blocking I/O. Explain the concept of Value result argument. Differentiate static and dynamic link library in case of windows. Compare how error handling facility is implemented in Berkeley socket APL and Windows Socket API ? + In Which situations asynchronous IO is preferred than synchronous JO *plain different Asynchronous 1O functions in Winsock saan In which approach of communication, windows socket provide ell ctionalities than UNIX socket? What will happen erent from Shutdown) and close() function? Do these functions are ¢v Cleanup() function? Example how/how not. oa 3 © he Write short notes on: (Any two) a) TFTP b) . ipconfig and ifconfig c) File descriptor and its importance

You might also like