Distributed airline reservation system

26
Distributed Airline Reservation System KARTHIK SIDDALINGAPPA NAGTHEJ MANANGI PRAMOD PRAKASH 0 6 / 1 0 / 2 0 2 2 G r o u p 1 4 1

Transcript of Distributed airline reservation system

Page 1: Distributed airline reservation system

05/01/2023 Group 14

1

Distributed Airline Reservation System

KARTHIK SIDDALINGAPPANAGTHEJ MANANGIPRAMOD PRAKASH

Page 2: Distributed airline reservation system

05/01/2023 Group 14

2Overview of our Presentation

Design of our project The Project Implementation The Customer Part Database Customer Demo System Admin Commercial Airliner Hurdles Enhancements Learnings

Page 3: Distributed airline reservation system

05/01/2023 Group 14

3Design

TCP Concurrent Server Multithreaded Server 3 layers Distributed System Mutex / Semaphore Database : Backups and Restore File system – Display page: with forwards and backwards

traversing C programming BSD sockets

Page 4: Distributed airline reservation system

05/01/2023 Group 14

4ImplementationDistributed

Airline Reservation

System

Customer System Admin

Commercial Airliner

Client

Server Database

Page 5: Distributed airline reservation system

05/01/2023 Group 14

5Control Flow Diagram

Page 6: Distributed airline reservation system

05/01/2023 Group 14

6The Customer

The Distributed Systems Main

Page

Customer Login (New and

existing Users with

Authentication)

Customer Main Page

Page 7: Distributed airline reservation system

05/01/2023 Group 14

7Customer contd.

Cust

omer

Op

tions

Book Flights

Cancel Booking

Book Hotels

Book your rides

Update user Info

Contact us

Page 8: Distributed airline reservation system

05/01/2023 Group 14

8The Flow Chart

Client is constantly reading the command line and writing it to the server

Server will process the information depending the input given

Dynamic data processing

Database

Customer?

Existing Customer? New Customer?

•Book Flights•Cancel Flights•Book Hotels•Book Cabs•Update personal Info•Contact us

Process the Selected option

Stop

Start

Page 9: Distributed airline reservation system

05/01/2023 Group 14

9Customer (Demo)

Page 10: Distributed airline reservation system

05/01/2023 Group 14

10Database

DatabaseSqlite 3

Flights Database

Customer Database

Airliner Database

Page 11: Distributed airline reservation system

05/01/2023 Group 14

11Customer Database

Customer information Add new Customer Update customer information

Page 12: Distributed airline reservation system

05/01/2023 Group 14

12Customer Database (Demo)

Page 13: Distributed airline reservation system

05/01/2023 Group 14

13The System Admin

The sysadmin handles both the flights and the airliner data to meet efficient services

Adding, removing, or updating flights/airliner

adding, deleting and backup the database.

Page 14: Distributed airline reservation system

05/01/2023 Group 14

14Block Diagram:The

Distributed Systems Main

Page

Administrator Login and

Authentication

Administrator Main Page

Page 15: Distributed airline reservation system

05/01/2023 Group 14

15

Adm

in O

ptio

ns

Flight databaseAirliner

databasedatabase backup

Flig

ht d

atab

ase

opt

ions

Create flight database

Add flights

Update flights

Delete flights

Display flights

Airli

ner

data

base

opt

ions

Create Airliner database

Add Airliner

Delete Airliner

Display Airliner

Page 16: Distributed airline reservation system

05/01/2023 Group 14

16System Admin (Demo)

Page 17: Distributed airline reservation system

05/01/2023 Group 14

17Multithreading (Demo)

Page 18: Distributed airline reservation system

05/01/2023 Group 14

18Semaphore (Demo)

Page 19: Distributed airline reservation system

05/01/2023 Group 14

19The Commercial Airliner

Acts as a flight customer service agents.

Notifies System admin if there are any changes in Flight details.

Has the authority to add flights, Update, delete and display flight details.

Provides information about Seat availability, Baggage information and on-board facilities.

Page 20: Distributed airline reservation system

05/01/2023 Group 14

20Flow Chart:USER

AUTHENTICATION

SERVICE OPTIONS FOR AIRLINER

1. ADD FLIGHTS2. UPDATE FLIGHTS 3. DELETE FLIGHTS4. DISPLAY FLIGHT

DETAILS

AUTHENTICATED?

YES

NO

Page 21: Distributed airline reservation system

05/01/2023 Group 14

21Airliner implementation:

Database handling is done using SQLite 3.

Database includes Itinerary comprising the flight number, Seat availability, Travel class, Baggage info, and on-board facilities.

Provides the database to sysadmin and notifies if there is any update in flight details.

Page 22: Distributed airline reservation system

05/01/2023 Group 14

22Airliner Demo

Page 23: Distributed airline reservation system

05/01/2023 Group 14

23Hurdles:

Figuring out the “\n" terminated string, had to be read correctly. “The While problem” Moving on from File based implementation: “The Database” “Backward Traversing” Databases + BSD socket program : “The Merge” “Bringing it all together”

Page 24: Distributed airline reservation system

05/01/2023 Group 14

24Enhancements planned:

IPV6 Encryption Winsock State information

Page 25: Distributed airline reservation system

05/01/2023 Group 14

25We learnt! • Learnt programming using BSD sockets.BSD Sockets

• Concept of threading.• Memory and resources sharing.Multithreading

• Communication between them.• Design and implementation.Client-Server

• Implementing a client-server at an enterprise level, takes a lot of planning and design, this project gave us an overview as to how a client server model can be implemented at an enterprise level.Implementation

• Learnt about the behaviour of the model at different hierarchyMutex/Semaphore

• Learnt about the difference between different calls in IPV4 and IPV6IPV4 vs IPV6

• Got to learn about creating and passing queries to the database using SQL.Database

• The most important task of all is to work as a team effectively, we managed to emerge as a better team.Team Work

Page 26: Distributed airline reservation system

05/01/2023 Group 14

26Thank You!

Questions?