OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [before_ORP/] [uclinux/] [uClinux-2.0.x/] [Documentation/] [networking/] [tcp.txt] - Diff between revs 901 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 901 Rev 1765
How the new TCP output machine [nyi] works.
How the new TCP output machine [nyi] works.
Data is kept on a single queue. The skb->users flag tells us if the frame is
Data is kept on a single queue. The skb->users flag tells us if the frame is
one that has been queued already. To add a frame we throw it on the end. Ack
one that has been queued already. To add a frame we throw it on the end. Ack
walks down the list from the start.
walks down the list from the start.
We keep a set of control flags
We keep a set of control flags
        sk->tcp_pend_event
        sk->tcp_pend_event
                TCP_PEND_ACK                    Ack needed
                TCP_PEND_ACK                    Ack needed
                TCP_ACK_NOW                     Needed now
                TCP_ACK_NOW                     Needed now
                TCP_WINDOW                      Window update check
                TCP_WINDOW                      Window update check
                TCP_WINZERO                     Zero probing
                TCP_WINZERO                     Zero probing
        sk->transmit_queue              The transmission frame begin
        sk->transmit_queue              The transmission frame begin
        sk->transmit_new                First new frame pointer
        sk->transmit_new                First new frame pointer
        sk->transmit_end                Where to add frames
        sk->transmit_end                Where to add frames
        sk->tcp_last_tx_ack             Last ack seen
        sk->tcp_last_tx_ack             Last ack seen
        sk->tcp_dup_ack                 Dup ack count for fast retransmit
        sk->tcp_dup_ack                 Dup ack count for fast retransmit
Frames are queued for output by tcp_write. We do our best to send the frames
Frames are queued for output by tcp_write. We do our best to send the frames
off immediately if possible, but otherwise queue and compute the body
off immediately if possible, but otherwise queue and compute the body
checksum in the copy.
checksum in the copy.
When a write is done we try to clear any pending events and piggy back them.
When a write is done we try to clear any pending events and piggy back them.
If the window is full we queue full sized frames. On the first timeout in
If the window is full we queue full sized frames. On the first timeout in
zero window we split this.
zero window we split this.
On a timer we walk the retransmit list to send any retransmits, update the
On a timer we walk the retransmit list to send any retransmits, update the
backoff timers etc. A change of route table stamp causes a change of header
backoff timers etc. A change of route table stamp causes a change of header
and recompute. We add any new tcp level headers and refinish the checksum
and recompute. We add any new tcp level headers and refinish the checksum
before sending.
before sending.
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.