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

Packet radio protocol
Packet radio protocolPacket radio protocol
Packet radio protocolPriya Kaushal
 
Wireless routing protocols
Wireless routing protocolsWireless routing protocols
Wireless routing protocolsbarodia_1437
 
Device drivers and interrupt service mechanism
Device drivers and interrupt service mechanismDevice drivers and interrupt service mechanism
Device drivers and interrupt service mechanismVijay Kumar
 
Case study of Adaptive Cruise Control
Case study of Adaptive Cruise ControlCase study of Adaptive Cruise Control
Case study of Adaptive Cruise ControlPAVANKUMARSDESAI
 
vehicular communications
vehicular communicationsvehicular communications
vehicular communicationsSaikiran Guduri
 
ARM Exception and interrupts
ARM Exception and interrupts ARM Exception and interrupts
ARM Exception and interrupts NishmaNJ
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)Ramola Dhande
 
EC8004 - Wireless Networks Question Bank
EC8004 - Wireless Networks Question BankEC8004 - Wireless Networks Question Bank
EC8004 - Wireless Networks Question BankKannanKrishnana
 
2. block diagram and components of embedded system
2. block diagram and components of embedded system2. block diagram and components of embedded system
2. block diagram and components of embedded systemVikas Dongre
 
IoT Communication Protocols
IoT Communication ProtocolsIoT Communication Protocols
IoT Communication ProtocolsPradeep Kumar TS
 
Routing protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layerNitesh Singh
 
Embedded system in Smart Cards
Embedded system in Smart CardsEmbedded system in Smart Cards
Embedded system in Smart CardsRebecca D'souza
 
Task communication
Task communicationTask communication
Task communication1jayanti
 
2.8 bluetooth ieee 802.15
2.8 bluetooth   ieee 802.152.8 bluetooth   ieee 802.15
2.8 bluetooth ieee 802.15JAIGANESH SEKAR
 

What's hot (20)

Packet radio protocol
Packet radio protocolPacket radio protocol
Packet radio protocol
 
Wireless routing protocols
Wireless routing protocolsWireless routing protocols
Wireless routing protocols
 
Device drivers and interrupt service mechanism
Device drivers and interrupt service mechanismDevice drivers and interrupt service mechanism
Device drivers and interrupt service mechanism
 
Case study of Adaptive Cruise Control
Case study of Adaptive Cruise ControlCase study of Adaptive Cruise Control
Case study of Adaptive Cruise Control
 
vehicular communications
vehicular communicationsvehicular communications
vehicular communications
 
ARM Exception and interrupts
ARM Exception and interrupts ARM Exception and interrupts
ARM Exception and interrupts
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
EC8004 - Wireless Networks Question Bank
EC8004 - Wireless Networks Question BankEC8004 - Wireless Networks Question Bank
EC8004 - Wireless Networks Question Bank
 
2. block diagram and components of embedded system
2. block diagram and components of embedded system2. block diagram and components of embedded system
2. block diagram and components of embedded system
 
IoT Communication Protocols
IoT Communication ProtocolsIoT Communication Protocols
IoT Communication Protocols
 
Routing protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layer
 
Transponder
Transponder Transponder
Transponder
 
Earth Station Subsystem
Earth Station SubsystemEarth Station Subsystem
Earth Station Subsystem
 
Embedded system in Smart Cards
Embedded system in Smart CardsEmbedded system in Smart Cards
Embedded system in Smart Cards
 
Multicast routing
Multicast routingMulticast routing
Multicast routing
 
Pn sequence
Pn sequencePn sequence
Pn sequence
 
Task communication
Task communicationTask communication
Task communication
 
Pulse Doppler Radar
Pulse Doppler RadarPulse Doppler Radar
Pulse Doppler Radar
 
Satellite Subsystems
Satellite SubsystemsSatellite Subsystems
Satellite Subsystems
 
2.8 bluetooth ieee 802.15
2.8 bluetooth   ieee 802.152.8 bluetooth   ieee 802.15
2.8 bluetooth ieee 802.15
 

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 MonitoringSOHAM ADHYA
 
War field spying robot
War field spying robotWar field spying robot
War field spying robotARUN S L
 
Wireless Bomb Disposal Robot
Wireless Bomb Disposal RobotWireless Bomb Disposal Robot
Wireless Bomb Disposal RobotAbhishek Gupta
 
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 & GPSJOLLUSUDARSHANREDDY
 
Zeroth Review Model Slide
Zeroth Review Model SlideZeroth Review Model Slide
Zeroth Review Model Slideenggshankar
 
Wireless robot ppt
Wireless robot pptWireless robot ppt
Wireless robot pptVarun B P
 
First Review(Ppt)
First Review(Ppt)First Review(Ppt)
First Review(Ppt)smjagadish
 
Final Year Project Presentation
Final Year Project PresentationFinal Year Project Presentation
Final Year Project PresentationSyed Absar
 
WIRELESS ROBOT PPT
WIRELESS ROBOT PPTWIRELESS ROBOT PPT
WIRELESS ROBOT PPTAIRTEL
 

Viewers also liked (12)

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
 
War field spying robot
War field spying robotWar field spying robot
War field spying robot
 
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 CSThanveen
 
CCNA RS_NB - Chapter 5
CCNA RS_NB - Chapter 5CCNA RS_NB - Chapter 5
CCNA RS_NB - Chapter 5Irsandi Hasan
 
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...IRJET Journal
 
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 ExpertAbhishek Sagar
 
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 SupportVMware Tanzu
 
Computer networks Module 3 Transport layer
Computer networks Module 3 Transport layerComputer networks Module 3 Transport layer
Computer networks Module 3 Transport layerclaudle200415
 
Transport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingTransport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingKeyur Vadodariya
 
Presentation on TCP\IP protocols
Presentation on TCP\IP protocolsPresentation on TCP\IP protocols
Presentation on TCP\IP protocolssabanoor40
 
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
 
UDP and TCP header.ppt
UDP and TCP header.pptUDP and TCP header.ppt
UDP and TCP header.pptnehayarrapothu
 
Open Networking through Programmability
Open Networking through ProgrammabilityOpen Networking through Programmability
Open Networking through ProgrammabilityTal Lavian Ph.D.
 
PowerPoint_merge.ppt
PowerPoint_merge.pptPowerPoint_merge.ppt
PowerPoint_merge.pptssuser3b47e6
 
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 Technologyijsrd.com
 

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

Basic functions & types of RTOS ES
Basic functions & types of  RTOS ESBasic functions & types of  RTOS ES
Basic functions & types of RTOS ESJOLLUSUDARSHANREDDY
 
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 MANAGEMENTJOLLUSUDARSHANREDDY
 
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 TASKJOLLUSUDARSHANREDDY
 
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 CALLSJOLLUSUDARSHANREDDY
 
RTOS MICRO CONTROLLER OPERATING SYSTEM-2
RTOS MICRO CONTROLLER OPERATING SYSTEM-2RTOS MICRO CONTROLLER OPERATING SYSTEM-2
RTOS MICRO CONTROLLER OPERATING SYSTEM-2JOLLUSUDARSHANREDDY
 
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 usingJOLLUSUDARSHANREDDY
 
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...JOLLUSUDARSHANREDDY
 
SOLAR TRACKING SYSTEM BY USING MICROCONTROLLER
 SOLAR  TRACKING  SYSTEM  BY  USING  MICROCONTROLLER SOLAR  TRACKING  SYSTEM  BY  USING  MICROCONTROLLER
SOLAR TRACKING SYSTEM BY USING MICROCONTROLLERJOLLUSUDARSHANREDDY
 
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 LDRJOLLUSUDARSHANREDDY
 
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 ...JOLLUSUDARSHANREDDY
 
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 TECHNOLOGYJOLLUSUDARSHANREDDY
 
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 RFIDJOLLUSUDARSHANREDDY
 
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 AREASJOLLUSUDARSHANREDDY
 
MOBILE MONITORNG SYSTEM FOR SMART HOMES
MOBILE  MONITORNG  SYSTEM FOR SMART HOMES MOBILE  MONITORNG  SYSTEM FOR SMART HOMES
MOBILE MONITORNG SYSTEM FOR SMART HOMES JOLLUSUDARSHANREDDY
 
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 detectionJOLLUSUDARSHANREDDY
 

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

Risk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectRisk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectErbil Polytechnic University
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfRajuKanojiya4
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Sumanth A
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
chpater16.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMM
chpater16.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMMchpater16.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMM
chpater16.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMMNanaAgyeman13
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxachiever3003
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptbibisarnayak0
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptxmohitesoham12
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadaditya806802
 

Recently uploaded (20)

Risk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectRisk Management in Engineering Construction Project
Risk Management in Engineering Construction Project
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdf
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
chpater16.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMM
chpater16.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMMchpater16.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMM
chpater16.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMM
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptx
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.ppt
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
 

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