SlideShare a Scribd company logo
1 of 27
RTOS
CASE STUDY OF CODING FOR SENDING
APPLICATION LAYER BYTE STREAMS ON
A TCP/IP NETWORK USING RTOS VX
Works
1/25/2015 J.SUDARSHANREDDY
1. Specifications
TCP/IP Stack
 In TCP/IP suite of protocols,
application layer transfers the
data with appropriate header
words to transport layer.
 At transport layer, either UDP
or TCP protocol is used and
additional header words placed.1/25/2015 J.SUDARSHANREDDY
TCP/IP Stack transmitting subsystem
1/25/2015 J.SUDARSHANREDDY
TCP/IP Stack
 UDP is connection-less protocol for
datagram transfer of total size including
headers of less than 216 Byte.
 TCP is connection oriented protocol, in
which data of unlimited size can be
transferred in multiple sequences to the
internet layer
 At internet layer, the IP protocol is used and
IP packets are formed, each packet with an
IP header transfers to the network through
network driver subsystem.
1/25/2015 J.SUDARSHANREDDY
TCP/IP stack
 Since the objective of case study is to
learn the use of IPCs in multitasking
RTOS through a case study.
 However, the present case study,
without resorting to the network socket
driver APIs in VxWorks, the required
software to be embedded in the system
is described to understand applications
of IPC functions in VxWorks.1/25/2015 J.SUDARSHANREDDY
2. Requirements
Purpose
 To generate the byte stream for
sending on the network using TCP
or UDP protocol at transport layer
and IP protocol at network layer
Signals, Events and Notifications
 After forming the packets at IP layer,
SemPktFlag for network driver task
1/25/2015 J.SUDARSHANREDDY
Inputs
 Bytes from application layer
 Notification Sem TCPFlag or
SemUDPFlag in case of TCP
sequences or UDP datagram,
respectively
Outputs
 TCP or UDP Byte stream to
destination socket
1/25/2015 J.SUDARSHANREDDY
Functions of the system
 An HTTP application data is sent after
encoding headers at transport and
network
layers.
 Tasks are scheduled in five sequences
1. Task_StrCheck,
2. Task_OutStream,
3. Task_TCPSegment or ask_UDPDatagram,
4. Task_IPPktStream
5. Task_NetworkDrv1/25/2015 J.SUDARSHANREDDY
Test and validation conditions
 A loop back from destination socket
should enable retrieval of application
data stream as originally sent
 Buffer Memory over flow tests
1/25/2015 J.SUDARSHANREDDY
3. Classes and Objects
Tasks and their scheduling sequence in TCP/IP
Stack
transmitting subsystem
1/25/2015 J.SUDARSHANREDDY
Classes for TCP or UDP byte tream on TCP/IP
network:
 Task_TCP is an abstract class
 Extended class(es) is derived to create objects TCP or UDP
packet
streams to a network.
 Task_StrCheck is to check and get the string.
 Task_OutStream extends from the two classes Task_StrCheck and
Task_TCP.
 Task_TCPSegment creates a stream from TCP segment for IP layer.
When datagram is to be sent then Task_UDPDatagram creates a
stream using from Task_OutStream output bytes.1/25/2015 J.SUDARSHANREDDY
Class Task_OutStream
1/25/2015 J.SUDARSHANREDDY
task objects
 The task objects are instances of the
classes
1. Task_StrCheck,
2. Task_OutStream,
3. Task_TCPSegment or
Task_UDPDatagram,
4. Task_IPPktStream
5. Task_NetworkDrv.
1/25/2015 J.SUDARSHANREDDY
Object task_OutStreamAppl
1/25/2015 J.SUDARSHANREDDY
4. Class diagrams
Class diagram for sending TCP/IP stacka
1/25/2015 J.SUDARSHANREDDY
5. Hardware architecture
Hardware
 TCP stack will run on same hardware as for
the system which is networked with other
system.
 Only additional hardware needed is memory
for codes, data and queue for data streams,
packets and sockets.
 A single TCP packet or UDP datagram is of
maximum 216 bytes.
 2 MB (512 × 216 bytes) RAM can be taken
as additional memory requirement
1/25/2015 J.SUDARSHANREDDY
6. Modeling of State diagram for of TCP/IP
stack tasks
State diagram for synchronization of TCP/IP
stack tasks- Part 1
1/25/2015 J.SUDARSHANREDDY
State diagram for synchronization of TCP/IP
stack tasks- Part 2
1/25/2015 J.SUDARSHANREDDY
7. Software architecture
Software architecture TCP/IP Stack
1/25/2015 J.SUDARSHANREDDY
8. Multiple tasks and their synchronization model
Multiple tasks and their synchronization model
using
semaphores and mailbox messages
1/25/2015 J.SUDARSHANREDDY
9. Tasks and their priority, action and IPCs
Application Layer Task_StrCheck
 Priority─ 120
 Action─ Get a string from the application
 IPC pending: ─
 IPC posted: SemFlag1
1/25/2015 J.SUDARSHANREDDY
Transmission Control (Transport)
Task_TCPSegment
 Priority ─ 122
 Action─ Insert TCP header to the stream
 IPC pending: SemTCPFlag,
 SemMKey1, QStreamInputID
 IPC posted: QStreamInputID and
SemMKey1
1/25/2015 J.SUDARSHANREDDY
Transmission Control (Transport)
Task_UDPDatagram
 Priority ─ 122
 Action─ Insert UDP header to the
stream sent as a datagram
 IPC pending: SemUDPFlag,
SemMKey1, QStreamInputID
 IPC posted: QStreamInputID, SemMKey1
1/25/2015 J.SUDARSHANREDDY
internet (network) layer
Task_IPPktStream
 Priority ─ 124
 Action─ Form the packets of
maximum 216 bytes
 IPC pending: SemMKey1,
QStreamInputID
 IPC posted: SemMKey1, SemPktFlag,
QPktInputID
1/25/2015 J.SUDARSHANREDDY
Task_NetworkDrv
 Priority ─ 124
 Action─ Send the packets as the
frames
 IPC pending: SemPktFlag,
QPktInputID, SemMKey1
 IPC posted: SemFinishFlag, SemFlag2
1/25/2015 J.SUDARSHANREDDY
10.Coding using VxWorks RTOS IPCfunctions
Coding using VxWorks RTOS
 Refer Example 11.2 in Section 11.3.4
 At each step the explanation for the set
of statements given there.
1/25/2015 J.SUDARSHANREDDY
We learnt
 VxWorks RTOS used for embedded
system codes for driving a network
card
 after generating the TCP/IP stack.
Exemplary codes show a method of
code designing for sending the byte
streams on a network
Thank You1/25/2015 J.SUDARSHANREDDY

More Related Content

What's hot

RF transmitter & receiver
RF transmitter & receiverRF transmitter & receiver
RF transmitter & receiver
codexdesign
 

What's hot (20)

Case study of digital camera
Case study of digital cameraCase study of digital camera
Case study of digital camera
 
RT linux
RT linuxRT linux
RT linux
 
DTH System
DTH SystemDTH System
DTH System
 
PRESENTATION ON SATELLITE COMMUNICATION
PRESENTATION ON SATELLITE COMMUNICATIONPRESENTATION ON SATELLITE COMMUNICATION
PRESENTATION ON SATELLITE COMMUNICATION
 
telemetry tracking and command systems
telemetry tracking and command systemstelemetry tracking and command systems
telemetry tracking and command systems
 
RF transmitter & receiver
RF transmitter & receiverRF transmitter & receiver
RF transmitter & receiver
 
Properties of dft
Properties of dftProperties of dft
Properties of dft
 
6lowpan
6lowpan6lowpan
6lowpan
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systems
 
Two cavity klystron
Two cavity klystronTwo cavity klystron
Two cavity klystron
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture
 
Satellite communications ppt
Satellite communications pptSatellite communications ppt
Satellite communications ppt
 
Antenna
AntennaAntenna
Antenna
 
Watch dog
Watch dogWatch dog
Watch dog
 
LED and LASER source in optical communication
LED and LASER source in optical communicationLED and LASER source in optical communication
LED and LASER source in optical communication
 
Ec8791 lpc2148 pwm
Ec8791 lpc2148 pwmEc8791 lpc2148 pwm
Ec8791 lpc2148 pwm
 
Spread spectrum
Spread spectrumSpread spectrum
Spread spectrum
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
War field spying robot
War field spying robotWar field spying robot
War field spying robot
 
Introduction to embedded systems
Introduction  to embedded systemsIntroduction  to embedded systems
Introduction to embedded systems
 

Viewers also liked

CIEC16_PPT_Iot Based Smart Solar Monitoring
CIEC16_PPT_Iot Based Smart Solar MonitoringCIEC16_PPT_Iot Based Smart Solar Monitoring
CIEC16_PPT_Iot Based Smart Solar Monitoring
SOHAM ADHYA
 
Wireless Bomb Disposal Robot
Wireless Bomb Disposal RobotWireless Bomb Disposal Robot
Wireless Bomb Disposal Robot
Abhishek Gupta
 
Zeroth Review Model Slide
Zeroth Review Model SlideZeroth Review Model Slide
Zeroth Review Model Slide
enggshankar
 
Wireless robot ppt
Wireless robot pptWireless robot ppt
Wireless robot ppt
Varun B P
 
WIRELESS ROBOT PPT
WIRELESS ROBOT PPTWIRELESS ROBOT PPT
WIRELESS ROBOT PPT
AIRTEL
 

Viewers also liked (11)

Second review presentation
Second review presentationSecond review presentation
Second review presentation
 
CIEC16_PPT_Iot Based Smart Solar Monitoring
CIEC16_PPT_Iot Based Smart Solar MonitoringCIEC16_PPT_Iot Based Smart Solar Monitoring
CIEC16_PPT_Iot Based Smart Solar Monitoring
 
Wireless Bomb Disposal Robot
Wireless Bomb Disposal RobotWireless Bomb Disposal Robot
Wireless Bomb Disposal Robot
 
BOMB DETECTION ROBOT BY USING GSM & GPS
BOMB DETECTION ROBOT BY USING GSM & GPSBOMB DETECTION ROBOT BY USING GSM & GPS
BOMB DETECTION ROBOT BY USING GSM & GPS
 
Zeroth Review Model Slide
Zeroth Review Model SlideZeroth Review Model Slide
Zeroth Review Model Slide
 
Zeroth review presentation
Zeroth review presentationZeroth review presentation
Zeroth review presentation
 
Wireless robot ppt
Wireless robot pptWireless robot ppt
Wireless robot ppt
 
First Review(Ppt)
First Review(Ppt)First Review(Ppt)
First Review(Ppt)
 
Final Year Project Presentation
Final Year Project PresentationFinal Year Project Presentation
Final Year Project Presentation
 
Os security issues
Os security issuesOs security issues
Os security issues
 
WIRELESS ROBOT PPT
WIRELESS ROBOT PPTWIRELESS ROBOT PPT
WIRELESS ROBOT PPT
 

Similar to RTOS CASE STUDY OF CODING FOR SENDING APPLICATION LAYER BYTE STREAMS ON A TCP/IP NETWORK USING RTOS VX Works

User Datagram protocol For Msc CS
User Datagram protocol For Msc CSUser Datagram protocol For Msc CS
User Datagram protocol For Msc CS
Thanveen
 
Cisco discovery d homesb module 6 - v.4 in english.
Cisco discovery   d homesb module 6 - v.4 in english.Cisco discovery   d homesb module 6 - v.4 in english.
Cisco discovery d homesb module 6 - v.4 in english.
igede tirtanata
 

Similar to RTOS CASE STUDY OF CODING FOR SENDING APPLICATION LAYER BYTE STREAMS ON A TCP/IP NETWORK USING RTOS VX Works (20)

TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
07 coms 525 tcpip - udp
07    coms 525 tcpip - udp07    coms 525 tcpip - udp
07 coms 525 tcpip - udp
 
User Datagram protocol For Msc CS
User Datagram protocol For Msc CSUser Datagram protocol For Msc CS
User Datagram protocol For Msc CS
 
unit 3 ns.ppt
unit 3 ns.pptunit 3 ns.ppt
unit 3 ns.ppt
 
UDP Report
UDP ReportUDP Report
UDP Report
 
CCNA RS_NB - Chapter 5
CCNA RS_NB - Chapter 5CCNA RS_NB - Chapter 5
CCNA RS_NB - Chapter 5
 
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...
 
Master Class : TCP/IP Mechanics from Scratch to Expert
Master Class : TCP/IP Mechanics from Scratch to ExpertMaster Class : TCP/IP Mechanics from Scratch to Expert
Master Class : TCP/IP Mechanics from Scratch to Expert
 
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol Support
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol SupportCloud Foundry Summit 2015: Cloud Foundry and IoT Protocol Support
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol Support
 
Computer networks Module 3 Transport layer
Computer networks Module 3 Transport layerComputer networks Module 3 Transport layer
Computer networks Module 3 Transport layer
 
Transport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingTransport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And Demultiplexing
 
Presentation on TCP\IP protocols
Presentation on TCP\IP protocolsPresentation on TCP\IP protocols
Presentation on TCP\IP protocols
 
Chap 14
Chap 14Chap 14
Chap 14
 
Cisco discovery d homesb module 6 - v.4 in english.
Cisco discovery   d homesb module 6 - v.4 in english.Cisco discovery   d homesb module 6 - v.4 in english.
Cisco discovery d homesb module 6 - v.4 in english.
 
UDP and TCP header.ppt
UDP and TCP header.pptUDP and TCP header.ppt
UDP and TCP header.ppt
 
TCP/IP Introduction
TCP/IP IntroductionTCP/IP Introduction
TCP/IP Introduction
 
Open Networking through Programmability
Open Networking through ProgrammabilityOpen Networking through Programmability
Open Networking through Programmability
 
IP Utilites
IP UtilitesIP Utilites
IP Utilites
 
PowerPoint_merge.ppt
PowerPoint_merge.pptPowerPoint_merge.ppt
PowerPoint_merge.ppt
 
Introduction to VIP with PCI Express Technology
Introduction to VIP with PCI Express TechnologyIntroduction to VIP with PCI Express Technology
Introduction to VIP with PCI Express Technology
 

More from JOLLUSUDARSHANREDDY

More from JOLLUSUDARSHANREDDY (20)

MEMORY MANAGEMENT
MEMORY MANAGEMENTMEMORY MANAGEMENT
MEMORY MANAGEMENT
 
Basic functions & types of RTOS ES
Basic functions & types of  RTOS ESBasic functions & types of  RTOS ES
Basic functions & types of RTOS ES
 
RTOS LINUX2.6.X & LINUX2.6.24
 RTOS    LINUX2.6.X & LINUX2.6.24 RTOS    LINUX2.6.X & LINUX2.6.24
RTOS LINUX2.6.X & LINUX2.6.24
 
OSEK / VDX
OSEK / VDXOSEK / VDX
OSEK / VDX
 
DEVICE FILE AND INPUT OUTPUT SUBSYSTEMS MANAGEMENT
DEVICE FILE AND INPUT OUTPUT SUBSYSTEMS MANAGEMENTDEVICE FILE AND INPUT OUTPUT SUBSYSTEMS MANAGEMENT
DEVICE FILE AND INPUT OUTPUT SUBSYSTEMS MANAGEMENT
 
INTERRUPT LATENCY AND RESPONSE OF THE TASK
INTERRUPT LATENCY AND RESPONSE OF THE TASKINTERRUPT LATENCY AND RESPONSE OF THE TASK
INTERRUPT LATENCY AND RESPONSE OF THE TASK
 
INTERRUPT ROUTINES IN RTOS EN VIRONMENT HANDELING OF INTERRUPT SOURCE CALLS
INTERRUPT ROUTINES IN RTOS EN VIRONMENT HANDELING OF INTERRUPT SOURCE CALLSINTERRUPT ROUTINES IN RTOS EN VIRONMENT HANDELING OF INTERRUPT SOURCE CALLS
INTERRUPT ROUTINES IN RTOS EN VIRONMENT HANDELING OF INTERRUPT SOURCE CALLS
 
Rt linux-lab1
Rt linux-lab1Rt linux-lab1
Rt linux-lab1
 
RTOS MICRO CONTROLLER OPERATING SYSTEM-2
RTOS MICRO CONTROLLER OPERATING SYSTEM-2RTOS MICRO CONTROLLER OPERATING SYSTEM-2
RTOS MICRO CONTROLLER OPERATING SYSTEM-2
 
WINDOWS-CE
WINDOWS-CEWINDOWS-CE
WINDOWS-CE
 
Automated system for fault analysis in industries using
Automated system for fault analysis  in industries usingAutomated system for fault analysis  in industries using
Automated system for fault analysis in industries using
 
CASE STUDY OF DIGITAL CAMERA HARDWARE AND SOFT WARE ARCHITECTURECASE STUDY OF...
CASE STUDY OF DIGITAL CAMERAHARDWARE AND SOFT WAREARCHITECTURECASE STUDY OF...CASE STUDY OF DIGITAL CAMERAHARDWARE AND SOFT WAREARCHITECTURECASE STUDY OF...
CASE STUDY OF DIGITAL CAMERA HARDWARE AND SOFT WARE ARCHITECTURECASE STUDY OF...
 
SOLAR TRACKING SYSTEM BY USING MICROCONTROLLER
 SOLAR  TRACKING  SYSTEM  BY  USING  MICROCONTROLLER SOLAR  TRACKING  SYSTEM  BY  USING  MICROCONTROLLER
SOLAR TRACKING SYSTEM BY USING MICROCONTROLLER
 
Zigbee Based Solar Light System By Using LDR
Zigbee Based Solar Light System By Using LDRZigbee Based Solar Light System By Using LDR
Zigbee Based Solar Light System By Using LDR
 
Design of smart nodes for wireless sensor network ...
Design of smart nodes for wireless sensor network                            ...Design of smart nodes for wireless sensor network                            ...
Design of smart nodes for wireless sensor network ...
 
ATM USER ACCOUNT SECURE BY USING GSM TECHNOLOGY
ATM USER ACCOUNTSECURE BYUSING GSM TECHNOLOGYATM USER ACCOUNTSECURE BYUSING GSM TECHNOLOGY
ATM USER ACCOUNT SECURE BY USING GSM TECHNOLOGY
 
STUDENT DATA LOGGING SYSTEM INTO COLLEGE WEBSITE BASED ON RFID
STUDENT DATA LOGGING SYSTEM INTO COLLEGE WEBSITE BASED ON RFIDSTUDENT DATA LOGGING SYSTEM INTO COLLEGE WEBSITE BASED ON RFID
STUDENT DATA LOGGING SYSTEM INTO COLLEGE WEBSITE BASED ON RFID
 
SOLAR BASED MOBILE CHARGER IN RURAL AREAS
SOLAR BASED MOBILE CHARGER IN RURAL AREASSOLAR BASED MOBILE CHARGER IN RURAL AREAS
SOLAR BASED MOBILE CHARGER IN RURAL AREAS
 
MOBILE MONITORNG SYSTEM FOR SMART HOMES
MOBILE  MONITORNG  SYSTEM FOR SMART HOMES MOBILE  MONITORNG  SYSTEM FOR SMART HOMES
MOBILE MONITORNG SYSTEM FOR SMART HOMES
 
wireless security control system and sensor network for smoke and fire detection
wireless security control system and sensor network for smoke and fire detectionwireless security control system and sensor network for smoke and fire detection
wireless security control system and sensor network for smoke and fire detection
 

Recently uploaded

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Recently uploaded (20)

School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 

RTOS CASE STUDY OF CODING FOR SENDING APPLICATION LAYER BYTE STREAMS ON A TCP/IP NETWORK USING RTOS VX Works

  • 1. RTOS CASE STUDY OF CODING FOR SENDING APPLICATION LAYER BYTE STREAMS ON A TCP/IP NETWORK USING RTOS VX Works 1/25/2015 J.SUDARSHANREDDY
  • 2. 1. Specifications TCP/IP Stack  In TCP/IP suite of protocols, application layer transfers the data with appropriate header words to transport layer.  At transport layer, either UDP or TCP protocol is used and additional header words placed.1/25/2015 J.SUDARSHANREDDY
  • 3. TCP/IP Stack transmitting subsystem 1/25/2015 J.SUDARSHANREDDY
  • 4. TCP/IP Stack  UDP is connection-less protocol for datagram transfer of total size including headers of less than 216 Byte.  TCP is connection oriented protocol, in which data of unlimited size can be transferred in multiple sequences to the internet layer  At internet layer, the IP protocol is used and IP packets are formed, each packet with an IP header transfers to the network through network driver subsystem. 1/25/2015 J.SUDARSHANREDDY
  • 5. TCP/IP stack  Since the objective of case study is to learn the use of IPCs in multitasking RTOS through a case study.  However, the present case study, without resorting to the network socket driver APIs in VxWorks, the required software to be embedded in the system is described to understand applications of IPC functions in VxWorks.1/25/2015 J.SUDARSHANREDDY
  • 6. 2. Requirements Purpose  To generate the byte stream for sending on the network using TCP or UDP protocol at transport layer and IP protocol at network layer Signals, Events and Notifications  After forming the packets at IP layer, SemPktFlag for network driver task 1/25/2015 J.SUDARSHANREDDY
  • 7. Inputs  Bytes from application layer  Notification Sem TCPFlag or SemUDPFlag in case of TCP sequences or UDP datagram, respectively Outputs  TCP or UDP Byte stream to destination socket 1/25/2015 J.SUDARSHANREDDY
  • 8. Functions of the system  An HTTP application data is sent after encoding headers at transport and network layers.  Tasks are scheduled in five sequences 1. Task_StrCheck, 2. Task_OutStream, 3. Task_TCPSegment or ask_UDPDatagram, 4. Task_IPPktStream 5. Task_NetworkDrv1/25/2015 J.SUDARSHANREDDY
  • 9. Test and validation conditions  A loop back from destination socket should enable retrieval of application data stream as originally sent  Buffer Memory over flow tests 1/25/2015 J.SUDARSHANREDDY
  • 10. 3. Classes and Objects Tasks and their scheduling sequence in TCP/IP Stack transmitting subsystem 1/25/2015 J.SUDARSHANREDDY
  • 11. Classes for TCP or UDP byte tream on TCP/IP network:  Task_TCP is an abstract class  Extended class(es) is derived to create objects TCP or UDP packet streams to a network.  Task_StrCheck is to check and get the string.  Task_OutStream extends from the two classes Task_StrCheck and Task_TCP.  Task_TCPSegment creates a stream from TCP segment for IP layer. When datagram is to be sent then Task_UDPDatagram creates a stream using from Task_OutStream output bytes.1/25/2015 J.SUDARSHANREDDY
  • 13. task objects  The task objects are instances of the classes 1. Task_StrCheck, 2. Task_OutStream, 3. Task_TCPSegment or Task_UDPDatagram, 4. Task_IPPktStream 5. Task_NetworkDrv. 1/25/2015 J.SUDARSHANREDDY
  • 15. 4. Class diagrams Class diagram for sending TCP/IP stacka 1/25/2015 J.SUDARSHANREDDY
  • 16. 5. Hardware architecture Hardware  TCP stack will run on same hardware as for the system which is networked with other system.  Only additional hardware needed is memory for codes, data and queue for data streams, packets and sockets.  A single TCP packet or UDP datagram is of maximum 216 bytes.  2 MB (512 × 216 bytes) RAM can be taken as additional memory requirement 1/25/2015 J.SUDARSHANREDDY
  • 17. 6. Modeling of State diagram for of TCP/IP stack tasks State diagram for synchronization of TCP/IP stack tasks- Part 1 1/25/2015 J.SUDARSHANREDDY
  • 18. State diagram for synchronization of TCP/IP stack tasks- Part 2 1/25/2015 J.SUDARSHANREDDY
  • 19. 7. Software architecture Software architecture TCP/IP Stack 1/25/2015 J.SUDARSHANREDDY
  • 20. 8. Multiple tasks and their synchronization model Multiple tasks and their synchronization model using semaphores and mailbox messages 1/25/2015 J.SUDARSHANREDDY
  • 21. 9. Tasks and their priority, action and IPCs Application Layer Task_StrCheck  Priority─ 120  Action─ Get a string from the application  IPC pending: ─  IPC posted: SemFlag1 1/25/2015 J.SUDARSHANREDDY
  • 22. Transmission Control (Transport) Task_TCPSegment  Priority ─ 122  Action─ Insert TCP header to the stream  IPC pending: SemTCPFlag,  SemMKey1, QStreamInputID  IPC posted: QStreamInputID and SemMKey1 1/25/2015 J.SUDARSHANREDDY
  • 23. Transmission Control (Transport) Task_UDPDatagram  Priority ─ 122  Action─ Insert UDP header to the stream sent as a datagram  IPC pending: SemUDPFlag, SemMKey1, QStreamInputID  IPC posted: QStreamInputID, SemMKey1 1/25/2015 J.SUDARSHANREDDY
  • 24. internet (network) layer Task_IPPktStream  Priority ─ 124  Action─ Form the packets of maximum 216 bytes  IPC pending: SemMKey1, QStreamInputID  IPC posted: SemMKey1, SemPktFlag, QPktInputID 1/25/2015 J.SUDARSHANREDDY
  • 25. Task_NetworkDrv  Priority ─ 124  Action─ Send the packets as the frames  IPC pending: SemPktFlag, QPktInputID, SemMKey1  IPC posted: SemFinishFlag, SemFlag2 1/25/2015 J.SUDARSHANREDDY
  • 26. 10.Coding using VxWorks RTOS IPCfunctions Coding using VxWorks RTOS  Refer Example 11.2 in Section 11.3.4  At each step the explanation for the set of statements given there. 1/25/2015 J.SUDARSHANREDDY
  • 27. We learnt  VxWorks RTOS used for embedded system codes for driving a network card  after generating the TCP/IP stack. Exemplary codes show a method of code designing for sending the byte streams on a network Thank You1/25/2015 J.SUDARSHANREDDY