100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Network Protocols - Computer Fundamentals (COMP1007)

Rating
-
Sold
-
Pages
11
Uploaded on
22-06-2023
Written in
2021/2022

Lecture notes of 11 pages for the course G51CSF - Computer Fundamentals at UON (Network protocols)

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Unknown
Course

Document information

Uploaded on
June 22, 2023
Number of pages
11
Written in
2021/2022
Type
Class notes
Professor(s)
Steve bagley
Contains
All classes

Subjects

Content preview

Protocols

● A protocol describes exactly how the communication should happen
● Necessary so the computer at the other end can understand the communication
● Remember no guaranteeing it will be the same type of computer
● Not necessarily complex, but must be precise..


Endianness
● Computer memory is addressed in bytes
● But often have to deal with things that are bigger than a byte
● How do the bits of these bigger entities get laid out into the bytes of memory
● Two approaches: Big Endian, and Little Endian
● Different machines have chosen different standards


Network Endianness
● The internet is standardised on being big-Endian
● Need to make sure the values in sin_port and sin_addr and big Endian (your machine may not be)
● Set of helper functions we can use to connect between network order and host order
● Basically, whenever you get a value in a network you use one of the ntohX() functions
● Whenever you set a value in network function, you use one of the htonX() function
● Designed to do nothing if not needed

, Initiating a connection from a client
Client server paradigm
● Connections are (generally) between two bits of software: the client and the server
● The server is software actively listening for a connection
● The client is software that connects to a server
● Need both to form an active connection


Creating a socket
● Create a socket using the socket() function
● Need to tell it what domain we want the socket in, the type of connection we want and the protocols
● Returns the file descriptor for the created socket or -1 if an error occurred
$28.33
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
jacekmitschke

Get to know the seller

Seller avatar
jacekmitschke The University of Nottingham
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions