Networking Forums

Networking Forums > Computer Networking > Linux Networking > Adding a compression & decompression func. at the network layer?

Reply
Thread Tools Display Modes

Adding a compression & decompression func. at the network layer?

 
 
Kathy
Guest
Posts: n/a

 
      12-02-2004, 03:01 AM
Hi, all,

I get some random thought about our current network protocol.
I wonder if adding a compression & decompression func at the
network layer can improve performance.

Rough idea:
1. network layer has its own compression & decompression func;
2. at the source end, files are compressed and sent out;
3. at the dest. end, files are decompressed;
4. in the middle, packages are not modified and processed;

Advantages:
1. (?) If files are big, e.g. media data, time to compress,
decompress, and transmit compressed data may be smaller
than the time needed to transmit original files.
2. Will introduce less traffic on the internet.
3. Computing resources are more powerful than that on the
internet. (A PC or laptop can do the compression/decp
easily, while we don't know what will happen on the
internet.)

What do you think about it? (critical comments preferred)

Thanks.
Kathy
 
Reply With Quote
 
 
 
 
Peter T. Breuer
Guest
Posts: n/a

 
      12-02-2004, 09:00 AM
Kathy <(E-Mail Removed)> wrote:
> I get some random thought about our current network protocol.


Which is? (the protocol, that is).

> I wonder if adding a compression & decompression func at the
> network layer can improve performance.


Sometimes it can. But you mean transport layer, no? Anyway, try it and
see. Use an ssl or ssh channel. Ssl certainly compresses each packet
sent (and signs each compressed packet). If you like you can elect to
use zero encryption.

Or use a cipe tunnel or other tunnel. They all do encryption and/or
compression.

> 1. network layer has its own compression & decompression func;


What? I really think you mean "transport layer">

> 2. at the source end, files are compressed and sent out;


Why? I thought you said you wanted the "network" layer to do the
compressing?

> 3. at the dest. end, files are decompressed;


Sure, what would one expect!

> 4. in the middle, packages are not modified and processed;


Well, of course not. Uh, you mean no fragmentation? Wll, normally one
doesn't care because one is running over IP.

> Advantages:
> 1. (?) If files are big, e.g. media data, time to compress,
> decompress, and transmit compressed data may be smaller
> than the time needed to transmit original files.


In fact video files ARE compressed, heavily, to start with. They'd be
enormous if not. Ditto audio.

> 2. Will introduce less traffic on the internet.


You are confused about the target area. It would be uncompressed "files"
that would benefit, like text messages :-). Yes, SMS messages really
should be compressed and encoded. But the poor old chip in the mobile
telephone or smart card only goes at a few KHz (well, I guess the phone
may make a MHz, but the smartcard will be down in the low KHz).

> 3. Computing resources are more powerful than that on the
> internet. (A PC or laptop can do the compression/decp
> easily, while we don't know what will happen on the
> internet.)


Yes you do - nothing. In case you haven't noticed, ethernet cables,
hubs, routers, etc. do not contain "computing resources". That is
beginning to change with the advent of smart routers and packets are
beginning to contain little programs to be run as they pass through
these, but that's far ahead of us.


> What do you think about it? (critical comments preferred)


I think you don't understand that this is already the way things
happen if you use the right transport protocol. Perhaps you are hoping
that it be done at a more profound level, say at the hardware level?
Buut as you say, nbody is going to be decompressing and recompressing
those packets ÷n route, so why bther ding it at a more profound layer
than transprt? As for your idea of compressing files, that is the
APPLICATION layer, not the transport layer, and any server client pair
is free to chose to do that. Ftp does that, if you ask it to.



Peter
 
Reply With Quote
 
Alexander Clouter
Guest
Posts: n/a

 
      12-02-2004, 08:13 PM
On 2004-12-02, Kathy <(E-Mail Removed)> wrote:
> Hi, all,
>

Evening.

> I get some random thought about our current network protocol.
> I wonder if adding a compression & decompression func at the
> network layer can improve performance.
>
> [snipped]
>
> What do you think about it? (critical comments preferred)
>

Its called IPComp :P

http://www.faqs.org/rfcs/rfc2393.html
http://www.faqs.org/rfcs/rfc2394.html

If you are talking about level three on your OSI diagram (ie a replacement
for IP) compression already can exist.

Cheers

Alex
 
Reply With Quote
 
Kathy
Guest
Posts: n/a

 
      12-02-2004, 09:12 PM
Thanks for your commenting, Peter!
(Sorry for my confusing post.)

1. Yes, I mean on the transport layer.
2. I mean other than applications' different compression
& decompression algorithms, we add an transport-specific
cmpr/decmpr func as a general-purpose func for all kinds
of data.

Does it make sense?

Thanks.
Kathy
 
Reply With Quote
 
Peter T. Breuer
Guest
Posts: n/a

 
      12-03-2004, 12:00 AM
Kathy <(E-Mail Removed)> wrote:
> Thanks for your commenting, Peter!
> (Sorry for my confusing post.)
>
> 1. Yes, I mean on the transport layer.
> 2. I mean other than applications' different compression
> & decompression algorithms, we add an transport-specific
> cmpr/decmpr func as a general-purpose func for all kinds
> of data.
>
> Does it make sense?


No .

Please check out ssh ssl cipe tunnels, etc.

Peter
 
Reply With Quote
 
Kathy
Guest
Posts: n/a

 
      12-03-2004, 08:59 AM
Thanks everyone!
I'll look at your provided info.

Kathy
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configure Gateway func between 2 ifaces, one with static IP,other with DHCP b_dutta Linux Networking 2 07-31-2008 12:18 AM
multicast at the data layer (layer 2) non-flooding ? George Nychis Linux Networking 4 01-30-2006 02:09 PM
Effect of link-layer compression on TCP bandwidth Shashank Khanvilkar Linux Networking 1 02-05-2004 03:50 AM
Network traffic capture, and rotating files with compression Richard Gunn Linux Networking 6 01-30-2004 10:20 PM
Process context for low-layer network protocols? Atit Linux Networking 5 12-15-2003 12:46 PM



1 2 3 4 5 6 7 8 9 10 11