Posts

network protocol and standard

Image
network protocol and standard   TCP - transmission control protocol defines how to set up and control the conversation over the network via an application program can exchange data. it works as IP, which defines how computer sends packets of data to each other. is a connection-oriented- connection in a fixed position and maintain the application program at each end has finished exchanging message. ( it guarantees that data will arrive in the proper sequence. ) miss:  use in internet  breaks data onto packets  each data have the ip of the sender and receiver  as long as they go to correct receiver nda kira way nya  IP - internet protocol is a method, in which that the data is transfer from one computer to another on the internet. each computer also knows as host, on the internet has a unique IP address from all other hosts on the internet. UDP - user data-gram protocol provide one to one or one to m...

Network Models and Access Method

Image
Access Method - rules of how data go in and how data go outside the cable. Two types of access data CSMA (carrier- sense" listening" Multiple access" multiple devices") and Token Ring . CSMA (carrier- sense" listening" Multiple access" multiple devices") two types: 1. CSMA/CD CD stands for Collision Detection Each computer on the network including the clients and servers, check the cable for network traffic. (listen - transfer - submit) data is sent on at a time if data is sent by 2 or more computer at a time, a collision will happen, in which no message will be sent 2. CSMA/AC collision Avoidance. Queuing to avoid a collision. example of queuing real life (queuing for a blood test, where the patient wait for their turn ) Token passing found in a ring topology. one token will go round and round (always) from one node to another. if a user wants to send a message, wait for the token pass then the user catches the token, ...

network typologies

Image
Network Topology - arrangement of internet where device supposed to be two type of network topology: 1. Logical - how device appear to be connected to each other example; packet tracer. 2. Physical- actual interconnection with wire and cables(actual connected). point-to-point:  two device directly connected together figure 1(point to point topologies) example; can be PC and PC, PC to switch + sending information is faster + no traffic - cannot connect more device - the cable broke will affect the others. BUS use (1 backbone) 1 cable connected to several devices (it can be PC, Printer, laptop)   figure 2(BUS topology) +not expensive because only use one cable +easy to install another device -if one PC is broke it will affect others, because of using 1 cable. -there will be traffic if many hosts want to send information at the same time. STAR it uses a switch, hub or a router in the middle to connect to any device   ...

LAN connection for Lab1

Image
The figures below show the LAN connection in Lab1, which include 26 Personal Computer, 2 switch, a printer and a router. Using Sisco Packet Tracer.

computer network

Image
LAN - Local Area Network DESCRIPTION: is a restricted network of a building or site. It’s a private network belong to manager or business HOW IS IT WORK :  the network can be use to communicate with each other using LAN. EXAMPLES :  Ethernet, building of a college, office, WiFi MAN-   Metropolitan Area Network DESCRIPTION:  convert 2 or more LAN in large area of city or places, MAN is in between LAN and WAN HOW IS IT WORK  :  to connect with some LAN through backbone EXAMPLES :   DST, Telbru WAN- Wide Area Network DESCRIPTION:  develop over large area by joining LAN together HOW IS IT WORK  : connect by using virtual private network (VPN) which provide protection and allow to transfer data over the internet EXAMPLES : telephone companies, satellite system PAN- P ersonal Area Network DESCRIPTION:  (Bluetooth) connect device that are nearb...

validation write and date time

from datetime import datetime def insertintofile (name , age , address): date = datetime.now() file= open ( "file.txt" , "w" ) file.write( "name:" + name + " \n " ) file.write( "age:" + age + " \n " ) file.write( "address:" + address + " \n " ) file.write( "date and time :" + str (date) + " \n " ) file.close def view (): file= open ( "file.txt" , "r" ) print (file.read()) file.close() valid_characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ " while True : name = input ( "enter your name " ) if all (char in valid_characters for char in name): print ( "your name is:" + name) break print ( "That's invalid, please try again. Please enter characters A-Z and space only" ) valid_characters = "1234567890" while True : age = input ( ...

data validation

how to do validation on python  code  # khairah, version python3, 24 Jannuary 2018 valid_characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ " while True : name = input ( "Enter Your Name" ) if all (char in valid_characters for char in name): print ( "your name is:" + name) break print ( "That's invalid, please try again. Please enter characters A-Z and space only" ) # validating numbers def input_age (message): while True : try : userInput= int ( input (message)) except ValueError : print ( "not an integer! Try again." ) continue else : return userInput break age= input_age( "How old are you?" ) print ( "you are" + str (age) + "years old" ) output Enter Your Name khairah your name is: khairah How old are you? 12 you are12years old Process finished with exit code 0 ...