Anda di halaman 1dari 10

Algoritma Cara Kerja Jaringan Server Operator Indosat XL Axis Telkomsel

Option:

Jaringan Server Operator Indosat XL Axis Telkomsel Option: Berikut adalah info seputar Algoritma Cara Kerja Jaringan

Berikut adalah info seputar Algoritma Cara Kerja Jaringan Server Operator Indosat XL Axis Telkomsel terbaru 2015, dan sebelumnya kami juga sudah share seputar Kumpulan Bug Tsel 2015 ok pada pembahasan kali ini kami hanya mau share seputar konsep konsep algoritmannya saja dan untuk protokol bentuk lajur secara sistematisnnya atau perangkat kerasnnya nanti akan kami bahas juga dan untuk konsep programnnya nanti juga akan kami bahas jadi ini adalah lebih ke algoritma bagaimana server operator bekerja dan mohon maaf jika penjelasan ini tidak begitu lengkap atau mungkin membingungkan bagi anda yang baru mengenalnnya, jika anda ingin algoritma lengkapnnya tentang konsep jaringan silahkan anda cari rpc pendukungnnya tentang konsep jaringan,algoritma jaringan adalah sebuah algoritma pendukung untuk konsep konsep pembuatan programnnya dimana kita tahu ada hardware ada juga software, dan berikut adalah algoritma server operator dengan server apachennya:

Sebenarnya list dibawah ini bukanlah kebentuk atau skema cara kerjanya tetapi lebih ke penjelasan algoritma servernya, mungkin lain kali akan kami tambahkan penjelasnnya.

ifmodule for fail safe .htaccess

-enable-module=expires

-enable-module=headers

Apache .htaccess Caching Kode

# 1 Tahun

Header set Cache-Control "max-age=29030400, public"

# 1 Minggu

Header set Cache-Control "max-age=604800, public"

# 2 Hari

Header set Cache-Control "max-age=172800, proxy-revalidate"

# 1 Jam

Header set Cache-Control "max-age=60, private, proxy-revalidate"

Caching Database Konsep

Cache-Control: no-strore, cache tidak disimpan dalam bentuk cache apapun Cache-Control: no-cache, cache ada di tempat lain tetapi harus di validasi ulang kembali Cache-Control: private, cache di simpan dalam browser tetapi tidak publik dan hanya tunggal saja Cache-Control: must-revalidate, harus divalidasi ulang tetapi melalui Cache-Control: proxy-revalidate

Caching Dengan Mode Expires contoh:

ExpiresActive On ExpiresByType image/gif A604800 ExpiresByType application/x-shockwave-flash A604800 ExpiresByType application/pdf A604800 Perhatikan nilai A604800 pada Apache .htaccess Caching Kode

Caching Dengan Mode Headers contoh:

# 1 Tahun

Header set Cache-Control "max-age=29030400"

# 1 Minggu

Header set Cache-Control "max-age=604800"

# 45 Menit

Header set Cache-Control "max-age=2700"

# NONE

Header unset Cache-Control Header unset Expires Header unset Last-Modified FileETag None Header unset Pragma

Waktu Cheatsheet pada .htaccess

# WAKTU CHEAT SHEET

# 300 5 Menit

# 600 10 Menit

# 900 15 Menit

# 1800 30 Menit

# 2700 45 Menit

# 3600 1 Hari

# 7200 2 Hari

# 10800 3 Hari

# 14400 4 Hari

# 18000 5 Hari

# 36000 10 Hari

# 39600 11 Hari

# 43200 12 Hari

# 46800 13 Hari

# 50400 14 Hari

# 54000 15 Hari

# 86400 24 Hari

# 86400 1 Hari

# 172800 2 Hari

# 259200 3 Hari

# 345600 4 Hari

# 432000 5 Hari

# 518400 6 Hari

# 604800 7 Hari

# 604800 1 Minggu

# 1209600 2 Minggu

# 1814400 3 Minggu

# 2419200 4 Minggu

# 2419200 1 Bulan

# 4838400 2 Bulan

# 7257600 3 Bulan

# 9676800 4 Bulan

# 12096000 5 Bulan

# 14515200 6 Bulan

# 16934400 7 Bulan

# 19353600 8 Bulan

# 21772800 9 Bulan

# 24192000 10 Bulan

# 26611200 11 Bulan

# 29030400 12 Bulan

Cache Control Header

Cache-Control

= "Cache-Control" ":" 1#cache-directive

cache-directive = cache-request-directive | cache-response-directive

cache-request-directive = "no-cache"

| "no-store"

| "max-age" "=" delta-seconds

| "max-stale" [ "=" delta-seconds ]

| "min-fresh" "=" delta-seconds

| "no-transform"

| "only-if-cached"

| cache-extension

cache-response-directive = "public"

| "private" [ "=" <"> 1#field-name <"> ]

| "no-cache" [ "=" <"> 1#field-name <"> ]

| "no-store"

| "no-transform"

| "must-revalidate"

| "proxy-revalidate"

| "max-age" "=" delta-seconds

| "s-maxage" "=" delta-seconds

| cache-extension

cache-extension = token [ "=" ( token | quoted-string ) ]

Rewrite Kode Pada .htacces

# Jika halaman html statis ada

RewriteCond %{DOCUMENT_ROOT}/$1.html -f

# Permintaan berkas menulis ulang php untuk itu RewriteRule ^(php-file)\.php$ /$1.html [L]

Pengiriman Header HTTP Tanpa Mode Expires

=====> index.html

1

HTTP/1.1 2 Date: Thu, 23 July 2015 21:00:39 GMT

4

X-Powered-By: PHP/4.4.2

5

Keep-Alive: timeout=5, max=5

7

Content-Type: text/html

=====> robots.txt

1

HTTP/1.1 2 Date: Thu, 23 July 2015 21:00:39 GMT

4

Last-Modified: Wed, 22 Feb 2006 23:23:13 GMT

5

ETag: "129ba06"

6

Accept-Ranges: bytes

7

Content-Length: 31

10

Content-Type: text/plain; charset=iso-8859-1

=====> favicon.ico

1

HTTP/1.1 2 Date: Thu, 23 July 2015 21:00:39 GMT

4

Last-Modified: Tue, 13 Dec 2005 12:20:26 GMT

5

ETag: "17c22bd"

6

Accept-Ranges: bytes

7

Content-Length: 894

10

Content-Type: image/x-icon

=====> example.css

1

HTTP/1.1 2 Date: Thu, 23 July 2015 21:00:39 GMT

4

Last-Modified: Thu, 23 Feb 2006 02:55:10 GMT

5

ETag: "b57d48"

6

Accept-Ranges: bytes

7

Content-Length: 17547

10

Content-Type: text/css

=====> script.js

1

HTTP/1.1 2 Date: Thu, 23 July 2015 21:00:39 GMT

4

Last-Modified: Wed, 22 Feb 2006 11:50:47 GMT

5

ETag: "1cb6dc7"

6

Accept-Ranges: bytes

7

Content-Length: 3898

10

Content-Type: application/x-javascript

=====> btn-send.png

1

HTTP/1.1 2 Date: Thu, 23 July 2015 21:00:39 GMT

4

Last-Modified: Thu, 16 Feb 2006 12:07:03 GMT

5

ETag: "b57d55"

6

Accept-Ranges: bytes

7

Content-Length: 608

10

Content-Type: image/png

Pengiriman Header HTTP Dengan Mode Expires

=====> robots.txt

1

HTTP/1.1 2 Date: Thu, 23 July 2015 21:00:39 GMT

4

Cache-Control max-age=2592000

5

Expires: Mon, 27 Mar 2016 20:59:12 GMT

6

Last-Modified: Wed, 22 Feb 2016 23:23:13 GMT

7

ETag: "129ba06"

8

Accept-Ranges: bytes

9

Content-Length: 31

12

Content-Type: text/plain; charset=iso-8859-1

=====> favicon.ico

1

HTTP/1.1 2 Date: Thu, 23 July 2015 21:00:39 GMT

4

Cache-Control max-age=2592000

5

Expires: Mon, 27 Mar 2016 20:59:12 GMT

6

Last-Modified: Tue, 13 Dec 2016 12:20:26 GMT

7

ETag: "17c22bd"

8

Accept-Ranges: bytes

9

Content-Length: 894

11

Connection: Keep-Alive

12

Content-Type: image/x-icon

=====> example.css

1

HTTP/1.1 2 Date: Thu, 23 July 2015 21:00:39 GMT

4

Cache-Control: max-age=17200

5

Expires: Sun, 26 Feb 2016 01:45:59 GMT

6

Last-Modified: Thu, 23 Feb 2016 02:55:10 GMT

7

ETag: "b57d48"

8

Accept-Ranges: bytes

9

Content-Length: 17547

11

Connection: Keep-Alive

12

Content-Type: text/css

=====> script.js

1

HTTP/1.1 2 Date: Thu, 23 July 2015 21:00:39 GMT

4

Cache-Control max-age=2592000

5

Expires: Mon, 27 Mar 2016 20:59:28 GMT

6

Last-Modified: Wed, 22 Feb 2016 11:50:47 GMT

8

Accept-Ranges: bytes

9

Content-Length: 3898

11

Connection: Keep-Alive

12

Content-Type: application/x-javascript

=====> btn-send.png

1

HTTP/1.1 2 Date: Thu, 23 July 2015 21:00:39 GMT

4

Cache-Control max-age=2592000

5

Expires: Mon, 27 Mar 2016 20:59:28 GMT

6

Last-Modified: Thu, 16 Feb 2016 12:07:03 GMT

7

ETag: "b57d55"

8

Accept-Ranges: bytes

9

Content-Length: 608

11

Connection: Keep-Alive

12

Content-Type: image/png

Mengatur Header Tanpa Pengaturan Apache response.setHeader("P3P","policyref="http://www.contoh.com/index.php" CP="ALL DSP COR CUR OUR IND PUR"");

Koneksi Header Connection = "Connection" ":" 1#(connection-token) connection-token = token

Konten MD5

Content-MD5

= "Content-MD5" ":" md5-digest

md5-digest

=

Pragma

Pragma

= "Pragma" ":" 1#pragma-directive

pragma-directive = "no-cache" | extension-pragma extension-pragma = token [ "=" ( token | quoted-string ) ]

Php Konsep Untuk Jaringan Internet

<?php

$file = getFileFromDB();

// Menghasilkan unik ID $hash = md5($file);

$headers = getallheaders();

// Jika Browser mengirim ID, Server Akan Memeriksanya apakah Cocok atau tidak if (ereg($hash, $headers['If-None-Match']))

{

header('HTTP/1.1 304 Not Modified');

}

else

{

header("ETag: $hash"); header("Accept-Ranges: bytes"); header("Content-Length: ".strlen($file)); header("Content-Type: $mime");

header("Content-Disposition: inline; filename=$filename;"); echo $file;

}

exit();

?>

Algoritma Perhitungan Cache Yang diterima Server Jaringan Operator

apparent_age = max(0, response_time - date_value); corrected_received_age = max(apparent_age, age_value); response_delay = response_time - request_time;

corrected_initial_age = corrected_received_age + response_delay; resident_time = now - response_time;

current_age

= corrected_initial_age + resident_time;

Header Hop By Hop dan Non Modifikasi

Hop By Hop Contoh:

Connection

Keep-Alive

Proxy-Authenticate

Proxy-Authorization

TE

Trailers

Transfer-Encoding

Upgrade

Non Modifikasi contoh:

Content-Location

Content-MD5

ETag

Last-Modified

Content-Encoding

Content-Range

Content-Type

accept konsep

Accept

#( media-range [ accept-params ] )

= "Accept" ":"

media-range

= ( "*/*"

| ( type "/" "*" )

| ( type "/" subtype )

) *( ";" parameter ) accept-params = ";" "q" "=" qvalue *( accept-extension ) accept-extension = ";" token [ "=" ( token | quoted-string ) ]

accept encoding konsep

Accept-Encoding = "Accept-Encoding" ":" 1#( codings [ ";" "q" "=" qvalue ] )

codings

= ( content-coding | "*" )

contoh:

Accept-Encoding: compress, gzip Accept-Encoding:

Accept-Encoding: * Accept-Encoding: compress;q=0.5, gzip;q=1.0 Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0

accept language konsep

Accept-Language = "Accept-Language" ":" 1#( language-range [ ";" "q" "=" qvalue ] ) language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )

accept Ranges konsep

Accept-Ranges

acceptable-ranges = 1#range-unit | "none"

= "Accept-Ranges" ":" acceptable-ranges

Dan kami mohon maaf jika masih banyak kekurangan dalam penulisan maupun dalam penyampaiannya karena ini hanya sekedar berbagi ilmu saja dan admin juga masih juga belajar dalam pengenalan

jaringan jaringan komputer untuk operator dan terima kasih sudah membaca Algoritma Cara Kerja

Jaringan

itnewbie.

Server

Operator

Indosat

XL

Axis

Telkomsel

2015

salam

Selanjutnya: Cara Buat Inject Terbaru 2016