ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Entertainment and Media»
  • Radio

Never Easier Online Radio : Part 2 - Using TCP protocol for online audio streaming

Updated on November 25, 2012
A real, professional looking radio station... But, You can have ALL THAT - in ONE!
A real, professional looking radio station... But, You can have ALL THAT - in ONE! | Source

New Era of Radio

Here and now. We are witnesses of the, so called, new era of Information Technology. IT sector influenced on all sectors of society, global society. It's no longer a question of getting the information, but what to do with it.

"Never easier and FREE your internet station,how to set up step-by-step guide"

hub - that had an enormous success among HubPages readers, and beyond HubPage community (thanks to search engines, good SEO, and social network sharing), and the last comment on it, inspired me to go further and make an detailed hub describing "how it all works".

What also can be a good background knowledge source, is the "TechShortcut" blog of mine - where I'm writing relevant IT informations regarding networking, communications and everything, in general, about Network Infrastructure.

Sequence ID

TCP protocol makes smaller data packages, by implementing the small 8-bit information into the header of the data package. That 8-bit information in header, is called Sequence ID. Sequence ID is essential for TCP protocol. In the header, where Sequence ID is placed, the information WHERE AND BY WHAT ORDER should data be collected and built.

Sequence ID

The picture of data package, made by TCP protocol.
The picture of data package, made by TCP protocol. | Source

What kind of connection protocol is best for my online radio?

  • Connection and non-connection oriented protocols

- For starters, You all should know - there are two types of connection protocols between computers. "Connection-oriented", and "Non-connection oriented". Probably many of You are now wondering, what is the difference?

Connection oriented protocols:

- These connections are oriented on right way of data delivery. By this, I mean that connections that are started trough this kind of protocols are focused on: right addressing of data, separating data on smaller packages and collecting them on right way, by right order on the right address.

- The best, and most common type of this kind of protocol is TCP protocol. (Transmission Control Protocol) TCP protocol is a "three way hand-shake" type of protocol, which means that connection session can only be started if all three responses of TCP "layers" are "positive". This would mean that if just one of the "response" of each side ( either PC1 or PC2), that has to have TCP protocol installed, is "negative" (no) - whole session will be stopped, and connection will be dropped.

How does it works?

Imagine situation where You have installed, already, all necessary software for Your radio and that is "PC 1". The music, covered to data, is trying to make an connection session with "PC 2" - that is server that deploys data, to all computers that request from him from the specific port - registered just for PC 1.


BASIC TCP PROTOCOL LOOKS LIKE THIS:


Layer/Step I
PC1 sends request for starting session --> PC2

Layer/Step II
PC2 (SERVER) sends CONFIRMATIONabout getting the request --> PC1


Layer/Step III
PC1(Client, Your RADIO) sends a CONFIRMATION to start session --> PC2
(CONFIRMATION has been sent after getting the CONFIRMATION from PC1, rationally)



VULNERABILITY: Denial of Service attacks

DDoS attacks represent the most common hack-attacks of connection made trough the TCP "made" connections.
-Denial of Service or (DDoS) hack attacks are happening between Layer II , and Layer III of TCP protocol. Hackers are using the fact that in this case, connection can only be started by sending/getting the confirmation from Layer II to Layer III. Now, overload of requests, servers (PC2) are going down, and hackers have "achieved their goal".

But, DoS - can be prevented ONLY by You!

Every single broadcaster/streamer of his online radio - should have basic knowledge of System Network Administration.
- This hub, and following sentences will give You instructions how to PREVENT DDoS attacks.
By specifying the time between processes in Layer II and Layer III, You can prevent these attacks that are/can bringing Your server or You as a broadcaster down, by sending 10.000 of request for confirmation. The server gets overloaded, and imagine the server resources being used, for sending 10.000 confirmations. Automatically Your connection will get dropped and Your fine tunes will get terminated.

SPECIFYING THE TIME BETWEEN RECEIVING CONFIRMATION, AND RECEIVING THE SAME - YOU CAN PREVENT HACKERS AND THEIR "LITTLE GAMES".

Time-Offset
/ is something that is must be configured. By ignoring this, You are totally exposed. Be smart - and FOLLOW and READ CAREFULLY AGAIN whole hub.


Please, let me note if You want "PART 3". I would write about U.D.P (User Diagram Protocol), and/or x.25 protocols that could be used in Your radio streaming. By reading and learning these things, You are not just capable of leading an online radio - but You will gain basic Network System Administrator knowledge.

Shema of DDoS attacks

Master sends, usually an e-mail of victims IP address. Numerous "zombies" are recruited for sending "requests" for "confirmation". It is enough that Master has 10 "zombies" just to send, each of them, 1000 requests. That is 10.000 REQUESTS!! DDoS
Master sends, usually an e-mail of victims IP address. Numerous "zombies" are recruited for sending "requests" for "confirmation". It is enough that Master has 10 "zombies" just to send, each of them, 1000 requests. That is 10.000 REQUESTS!! DDoS | Source

Comments

    0 of 8192 characters used
    Post Comment

    No comments yet.

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: "https://hubpages.com/privacy-policy#gdpr"

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)