answersLogoWhite

0


Best Answer

Well its not too tough!We can do this in following way 1)For Physical layer define some file which will operate like system buffer and do include initial primitives that physical layer includes! Only write or something else 2)Data link layer functions should be defined in another file which will use physical layer structures as abstract data types. For this please physical level or any layer datastructures as structures and functionalities as pointer to function mapped with those correlated functions. 3)Network layer concerns are often related to subnet transport for this there is one requirement that you should use simple logical identification like define a dummy address that will be mapped as one particular record and can be identified with one particular host by running a same client program from different directories and primarily setting logical id like IP address and then retrieving only what is having 'myID:message ' lke structure ..................For other layers you can do same but I think one need some prior knowledge of Threading to define it more presentatively. I have made a simulation during my college days at MCA that was using a essential feature on WIN platforms that is NET command. I cannot write here in so short how can we do all that but If you feel above not helping write to me at rupesh_joshi@sify.com or rupesh.joshi@gmail.com Rupesh K Joshi

User Avatar

Wiki User

18y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you simulate a networking application in c with osi layers which part of the code represents the layers in the osi?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does networking happens in layers?

Yes, 3 levels: hardware, operating system, application


What are the layers of computer system and types of layers?

following are the different layers of computer1:APPLICATION PROGRAMS/USER2:UTILITY3:O.S4.HARDWARE


What is the most common method for illustrating the operations of a networking stack is the which consist of layers?

Open System Interconnection (OSI) reference model, Consists of seven layers


What do each of the candy bar layers represent?

the outer layer represents the crust and the middle part represents the mantle


At which OSI model layers do the application layer or upper layer protocols operate?

Application Presentation Session


What are the layers of network?

application,presentation,settion,transport,network.presentation


Switch and a router are they like devices?

Yes, they are devices that operate at different layers of the OSI model for networking.


Which is the most common method for illustrating the operations of a networking stack and how many layers does it have?

OSI Model, and it consists of 7 layers.1. Application2. Presentation3. Session4. Transport5. Network6. Data-Link7. Physical Layers


The application tcp-ip layer maps to which osi layers?

The Application layer The Presentation layer The Session layer


How do the layers of the internet model correlate to the l layers of OSI model?

The OSI model is a standard developed by ISO for designing of computer networks.OSI stands for Open Systems Interconnection and was created by ISO, the International Standards Organization.The OSI "reference model" divides particular networked processes into seven different layers:Application (Layer 7)Presentation (Layer 6)Session (Layer 5)Transport (Layer 4)Network (Layer 3)Data-Link (Layer 2) andPhysical (Layer 1)There are at least 2 ways (mnemonics) to help you remember the layers:1. Please Do Not Throw Sausage Pizza Away.2. All People Seem To Need Data Processing.OSI stands for Open System Interconnection model


What are the three main layers of an application program?

The three layers that I could think of are User interface, Client side, and server side.


Explain the benefits of layered architecture?

The Benefits of Layered ApplicationOther applications will be able to reuse the functionality exposed by your layers.You will be able to distribute your layers over multiple physical tiers. This can make a very good impact on your application byimproving performance (sometimes), scalability and fault tolerance.The maintenance of your application is easier because of the low coupling between layers.Adding more functionality to your application is made easier.Layers make your application more testable.Building a well formed layers makes the orientation in your application more easier.Having your application not layered means that you have to deal with all security threats in one place which is very difficult. Having your application distributed to layers makes it much easier for design and implementWithout a good deployment plan it is not trivial to distribute your layers over multiple physical tiers in distributed computing. You need to plan ahead your layers when you create a distributed application.