Coding and Formatting Data for Network Use Syntax – Format (2-bytes for port number) Semantics – Meaning of Allowed Content (binary 16-bit number, Port.

Slides:



Advertisements
Similar presentations
TFTP (Trivial File Transfer Protocol)
Advertisements

COE Computer Organization & Assembly Language
Representing Data Elements Gayatri Gopalakrishnan.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2: Introduction to C++ Starting Out with C++ Early Objects Sixth.
Source Port # (16)Destination Port # (16) Sequence Number (32 bits) Acknowledgement Number (32 bits) Hdr Len (4) Flags (6)Window Size (16) Options (if.
Guide To UNIX Using Linux Third Edition
Chapter 2: Introduction to C++.
Computer Arithmetic: Binary, Octal and Hexadecimal Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
CIS 234: Character Codes Dr. Ralph D. Westfall April, 2011.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
Computers Organization & Assembly Language
Aloha Aloha What you see: What the computer sees: binary number columns binary number columns
Primitive Data Types and Operations Identifiers, Variables, and Constants Primitive Data Types Byte, short, int, long, float, double, char, boolean Casting.
Input & Output: Console
February 1 & 31 Csci 2111: Data and File Structures Week4, Lectures 1 & 2 Fundamental File Structure Concepts & Managing Files of Records.
Fundamental File Structure Concepts & Managing Files of Records
Internet Forms and Database Bob Kisel Amgraf, Inc.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
1 Introduction Chapter 1 n What is Assembly Language? n Data Representation.
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
File Systems Long-term Information Storage Store large amounts of information Information must survive the termination of the process using it Multiple.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 2-1 Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Databases The Kingsway School. Database Systems Databases are programs which store information in a logical way. Databases have a structure which helps.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
Operators & Identifiers The Data Elements. Arithmetic Operators exponentiation multiplication division ( real ) division ( integer quotient ) division.
Operating Systems COMP 4850/CISG 5550 File Systems Files Dr. James Money.
1 Kyung Hee University Chapter 18 Domain Name System.
What it is and how it works
CS2910 Week 1, Class 2 Today Announce Prof. Michael Vieau’s S-341 6p Thurs Wk 2 Assignment for tomorrow Data Encoding, Part 1 Parsing Data Muddiest Point.
Introducing Python CS 4320, SPRING Lexical Structure Two aspects of Python syntax may be challenging to Java programmers Indenting ◦Indenting is.
BAI513 - PROTOCOLS ARP BAIST – Network Management.
Data types  CHAR (size): This data type is used to store character strings values of fixed length. The size in brackets determines the number of characters.
Chapter-4 Managing input and Output operation.  Reading, processing and writing of data are three essential functions of a computer program.  Most programs.
Number Systems Denary Base 10 Binary Base 2 Hexadecimal Base 16
HFS+. Linus Torvlads [smh.com.au] When asked about which is better Windows or Mac OS: I don't think they're equally flawed. I think Leopard is a much.
It consists of two parts: collection of files – stores related data directory structure – organizes & provides information Some file systems may have.
NUMBER SYSTEMS AND CODES. CS Digital LogicNumber Systems and Codes2 Outline Number systems –Number notations –Arithmetic –Base conversions –Signed.
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
Characters CS240.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Introduction to C++
1 IP Checksum Calculation At the sender r Set the value of the checksum field to 0. r Divide the header into 16-bit words m Add all segments using one’s.
DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical OrganisationLogical Organisation 4) File OrganisationFile.
17-Mar-16 Characters and Strings. 2 Characters In Java, a char is a primitive type that can hold one single character A character can be: A letter or.
Madhuri Gollu Id: 207. Agenda Agenda  Records with Variable Length Fields  Records with Repeating Fields  Variable Format Records  Records that do.
NXT File System Just like we’re able to store multiple programs and sound files to the NXT, we can store text files that contain information we specify.
CS480 Cryptography and Information Security Huiping Guo Department of Computer Science California State University, Los Angeles 13.Message Authentication.
Programming with Java. Chapter 1 Focuses on: –components of a computer –how those components interact –how computers store and manipulate information.
Pointers as arrays C++ Programming Technologies. Pointers vs. Arrays Pointers and arrays are strongly related. In fact, pointers and arrays are interchangeable.
THE CODING SYSTEM FOR REPRESENTING DATA IN COMPUTER.
Topic: Binary Encoding – Part 2
Number Systems.
Chapter 3 Data Representation Text Characters
Lec 3: Data Representation
Data Representation.
Chapter 1 Introduction to C Programming
Variables and Primative Types
Slide design: Dr. Mark L. Hornick
Section 3.2c Strings and Method Signatures
Basic notes on pointers in C
Binary Code  
File Structure 2018, Spring Pusan National University Joon-Seok Kim
LING 388: Computers and Language
Slide design: Dr. Mark L. Hornick
2.1 Parts of a C++ Program.
Binary Data representation
Comp Org & Assembly Lang
Data Types and Expressions
Modulo Arithmetic & Text Coding ECE Slides-03a John Copeland
SPL – PS13 Persistence Layer.
Presentation transcript:

Coding and Formatting Data for Network Use Syntax – Format (2-bytes for port number) Semantics – Meaning of Allowed Content (binary 16-bit number, Port number 0 to 65,535)

2 UTF-8 Since 2007 End-Line(s) Teletype, MSDOS, Internet: LF and CR UNIX: LF (^J, 0x0A) Mac OS Before OSX CR (^M,0x0D) After OSX Either CR or LF HTML... or... To type control characters. hold down Control Key and type the letter in 3 rd column. ( LF is typed as Control+J written as ^J )

Formatting (Delineating) Records 1. Fixed Field – Certain number of bits or bytes assigned. a. Fixed by convention b. Fixed by preceding length record 2. Starts at next byte, ends by control character (or control sequence) Can not include control character in data. Escape character needed for arbitrary bytes in data (variable length) Groups of records separated by another control character Padding – adding meaningless characters to match required length